Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004975/0.004975, allocations: 99.66 kB / 15.73 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 196.7 kB / 16.68 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002635/0.002635, allocations: 273.3 kB / 290.8 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.034/1.034, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 95.84 kB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1651, allocations: 86.97 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004697/0.1698, allocations: 3.074 MB / 0.7689 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003029/0.1729, allocations: 1.902 MB / 0.7707 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.173, allocations: 7.938 kB / 0.7707 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008876/0.1739, allocations: 285.2 kB / 0.771 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004192/0.1744, allocations: 199.1 kB / 0.7712 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.175, allocations: 239.2 kB / 0.7714 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00039/0.1754, allocations: 326.7 kB / 0.7717 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.1757, allocations: 181 kB / 0.7719 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.1759, allocations: 135.5 kB / 0.772 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.1762, allocations: 151.4 kB / 0.7722 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.809e-05/0.1763, allocations: 24 kB / 0.7722 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006284/0.1769, allocations: 403.2 kB / 0.7726 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.177, allocations: 91.78 kB / 0.7727 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.1772, allocations: 119.4 kB / 0.7728 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006639/0.1778, allocations: 498.3 kB / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1779, allocations: 0 / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.332e-06/0.1779, allocations: 0 / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.778e-06/0.1779, allocations: 0 / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009014/0.1788, allocations: 0.5646 MB / 0.7738 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1788, allocations: 12.03 kB / 0.7738 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.052e-05/0.1789, allocations: 58.72 kB / 0.7739 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007954/0.1797, allocations: 112.7 kB / 0.774 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.1801, allocations: 262 kB / 0.7743 GB, free: 280 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.1801, allocations: 16.75 kB / 0.7743 GB, free: 264 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.1802, allocations: 28.36 kB / 0.7743 GB, free: 236 kB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3242/0.5044, allocations: 348.5 kB / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.5044, allocations: 0.75 kB / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.5045, allocations: 5.656 kB / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-05/0.5046, allocations: 29.27 kB / 0.7747 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005273/0.5051, allocations: 290.3 kB / 0.7749 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.507, allocations: 1.738 MB / 0.7766 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.5074, allocations: 322.5 kB / 0.7769 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.5076, allocations: 110 kB / 0.777 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-05/0.5077, allocations: 87.06 kB / 0.7771 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.5077, allocations: 38 kB / 0.7772 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 1.723e-06/0.5077, allocations: 0.9844 kB / 0.7772 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.002433/0.5102, allocations: 0.9651 MB / 0.7781 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.5102, allocations: 84.27 kB / 0.7782 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.5104, allocations: 214.1 kB / 0.7784 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.5104, allocations: 32.47 kB / 0.7784 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.268e-05/0.5105, allocations: 173.1 kB / 0.7786 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.276e-05/0.5106, allocations: 85.55 kB / 0.7787 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.5107, allocations: 65.02 kB / 0.7787 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.5107, allocations: 333.4 kB / 0.7791 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.5109, allocations: 132.9 kB / 0.7792 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.5111, allocations: 210.7 kB / 0.7794 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.5116, allocations: 368.8 kB / 0.7797 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5116, allocations: 4.406 kB / 0.7797 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008188/0.5124, allocations: 0.5014 MB / 0.7802 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.5124, allocations: 10.89 kB / 0.7802 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.5124, allocations: 3.719 kB / 0.7802 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00051/0.513, allocations: 152.9 kB / 0.7804 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.5132, allocations: 63.94 kB / 0.7804 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.5154, allocations: 4.188 MB / 0.7845 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.5156, allocations: 23.02 kB / 0.7846 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.5156, allocations: 14.5 kB / 0.7846 GB, free: 7.594 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.5158, allocations: 168.1 kB / 0.7847 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.685e-05/0.5158, allocations: 22.59 kB / 0.7848 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007861/0.5166, allocations: 481.1 kB / 0.7852 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.5166, allocations: 2.625 kB / 0.7852 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.5166, allocations: 1.312 kB / 0.7852 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.5167, allocations: 5.281 kB / 0.7852 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.518, allocations: 1.004 MB / 0.7862 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.518, allocations: 2.531 kB / 0.7862 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.5181, allocations: 36.05 kB / 0.7862 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004592/0.5186, allocations: 137 kB / 0.7864 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.5186, allocations: 8.438 kB / 0.7864 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.5206, allocations: 4.162 MB / 0.7904 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5206, allocations: 3.438 kB / 0.7904 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008062/0.5214, allocations: 0.6263 MB / 0.7911 GB, free: 18.05 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.5216, allocations: 125.9 kB / 0.7912 GB, free: 17.94 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.5216, allocations: 9.484 kB / 0.7912 GB, free: 17.93 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.5218, allocations: 19.97 kB / 0.7912 GB, free: 17.93 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.5219, allocations: 29.7 kB / 0.7912 GB, free: 17.92 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.5219, allocations: 15.94 kB / 0.7913 GB, free: 17.91 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.0001663/0.5221, allocations: 159.3 kB / 0.7914 GB, free: 17.81 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5221, allocations: 1.031 kB / 0.7914 GB, free: 17.81 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0005218/0.5226, allocations: 88.72 kB / 0.7915 GB, free: 17.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/0.5237, allocations: 1.202 MB / 0.7927 GB, free: 16.82 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0008405/0.5246, allocations: 0.5793 MB / 0.7932 GB, free: 16.47 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5246, allocations: 0 / 0.7932 GB, free: 16.47 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.525, allocations: 405.7 kB / 0.7936 GB, free: 16.19 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.5256, allocations: 42.11 kB / 0.7937 GB, free: 16.17 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003863/0.5295, allocations: 3.323 MB / 0.7969 GB, free: 13.83 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.53, allocations: 0.7849 MB / 0.7977 GB, free: 13.12 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.0001903/0.5302, allocations: 60.67 kB / 0.7977 GB, free: 13.11 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.5303, allocations: 71.22 kB / 0.7978 GB, free: 13.06 MB / 0.5763 GB Notification: Performance of SimCode: time 5.61e-07/0.5303, allocations: 0 / 0.7978 GB, free: 13.06 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05044/0.5807, allocations: 6.725 MB / 0.8044 GB, free: 12.35 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.51, allocations: 8.656 kB / 0.8044 GB, free: 12.34 MB / 0.5763 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)