Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",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.00473/0.00473, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.001222/0.001223, allocations: 196.2 kB / 16.67 MB, free: 6.352 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.253/1.253, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 282.5 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9123/0.9123, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 100.2 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1394, allocations: 86.97 MB / 0.7659 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.006977/0.1464, allocations: 6.141 MB / 0.7719 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.2829/0.4293, allocations: 3.157 MB / 0.775 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005432/0.4299, allocations: 33.09 kB / 0.775 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.432, allocations: 0.9317 MB / 0.7759 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009334/0.433, allocations: 488 kB / 0.7764 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.434, allocations: 0.5054 MB / 0.7769 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001011/0.435, allocations: 1.11 MB / 0.778 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000783/0.4358, allocations: 0.6368 MB / 0.7786 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004777/0.4363, allocations: 448.7 kB / 0.779 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.4368, allocations: 474.8 kB / 0.7795 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.241e-05/0.4369, allocations: 57.62 kB / 0.7795 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006907/0.4376, allocations: 487.5 kB / 0.78 GB, free: 7.938 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.4378, allocations: 288.1 kB / 0.7803 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003165/0.4381, allocations: 402.6 kB / 0.7807 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.4391, allocations: 1.189 MB / 0.7818 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.4391, allocations: 0 / 0.7818 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4392, allocations: 0 / 0.7818 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.655e-05/0.4392, allocations: 0 / 0.7818 GB, free: 7.598 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001328/0.4405, allocations: 1.084 MB / 0.7829 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.4405, allocations: 9.875 kB / 0.7829 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.4407, allocations: 117.3 kB / 0.783 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/0.4421, allocations: 229.1 kB / 0.7832 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000864/0.443, allocations: 0.5997 MB / 0.7838 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.443, allocations: 44.59 kB / 0.7838 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.4431, allocations: 64.8 kB / 0.7839 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.4443, allocations: 1.033 MB / 0.7849 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.4444, allocations: 14.86 kB / 0.7849 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.4444, allocations: 26.48 kB / 0.785 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-05/0.4445, allocations: 71.59 kB / 0.785 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008553/0.4454, allocations: 0.6945 MB / 0.7857 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003916/0.4493, allocations: 5.74 MB / 0.7913 GB, free: 16.51 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006864/0.45, allocations: 0.6016 MB / 0.7919 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007088/0.4507, allocations: 430.9 kB / 0.7923 GB, free: 16 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.4508, allocations: 6.375 kB / 0.7923 GB, free: 16 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.4508, allocations: 37.69 kB / 0.7923 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=41): time 1.744e-06/0.4508, allocations: 0 / 0.7923 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.003929/0.4547, allocations: 2.025 MB / 0.7943 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.4548, allocations: 59.33 kB / 0.7944 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/0.4552, allocations: 460.8 kB / 0.7948 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.4552, allocations: 36.11 kB / 0.7949 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.4554, allocations: 398.5 kB / 0.7952 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.761e-05/0.4555, allocations: 153.5 kB / 0.7954 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.4557, allocations: 114 kB / 0.7955 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4558, allocations: 362.7 kB / 0.7958 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.456, allocations: 242.7 kB / 0.7961 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.4564, allocations: 461.1 kB / 0.7965 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007968/0.4572, allocations: 0.7448 MB / 0.7972 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4572, allocations: 1.312 kB / 0.7972 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001682/0.4589, allocations: 1.045 MB / 0.7983 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.4589, allocations: 11.61 kB / 0.7983 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.459, allocations: 7.562 kB / 0.7983 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009635/0.4599, allocations: 323.9 kB / 0.7986 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.4603, allocations: 101.6 kB / 0.7987 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00702/0.4673, allocations: 7.475 MB / 0.806 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/0.4678, allocations: 28.95 kB / 0.806 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.259e-05/0.4679, allocations: 26.77 kB / 0.806 GB, free: 5.895 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * 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): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003851/0.4683, allocations: 246.6 kB / 0.8063 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.4684, allocations: 66.33 kB / 0.8063 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.47, allocations: 0.9065 MB / 0.8072 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.47, allocations: 6.469 kB / 0.8072 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4701, allocations: 3.594 kB / 0.8072 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.4701, allocations: 2.203 kB / 0.8072 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.4727, allocations: 1.68 MB / 0.8089 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.4727, allocations: 2.047 kB / 0.8089 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.4729, allocations: 42.72 kB / 0.8089 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008839/0.4738, allocations: 309.5 kB / 0.8092 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.4738, allocations: 8.156 kB / 0.8092 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006471/0.4803, allocations: 7.464 MB / 0.8165 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.4803, allocations: 13.98 kB / 0.8165 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.482, allocations: 0.9958 MB / 0.8175 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003051/0.4823, allocations: 175.5 kB / 0.8177 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.19e-05/0.4824, allocations: 8 kB / 0.8177 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.4827, allocations: 24.23 kB / 0.8177 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.4828, allocations: 43.45 kB / 0.8177 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.4829, allocations: 14.39 kB / 0.8177 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003597/0.4832, allocations: 310.8 kB / 0.818 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4833, allocations: 3.938 kB / 0.818 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000816/0.4841, allocations: 193.2 kB / 0.8182 GB, free: 13.09 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * 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): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001843/0.4859, allocations: 1.544 MB / 0.8197 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001824/0.4878, allocations: 1.203 MB / 0.8209 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4878, allocations: 0 / 0.8209 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.4889, allocations: 0.8636 MB / 0.8218 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.4899, allocations: 211.6 kB / 0.822 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008138/0.4981, allocations: 5.886 MB / 0.8277 GB, free: 7.18 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.4987, allocations: 0.9911 MB / 0.8287 GB, free: 6.449 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002937/0.499, allocations: 101.5 kB / 0.8288 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.4992, allocations: 227.5 kB / 0.829 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of SimCode: time 5.51e-07/0.4992, allocations: 0 / 0.829 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04319/0.5424, allocations: 15.4 MB / 0.844 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.265/9.808, allocations: 22.5 kB / 0.844 GB, free: 14.88 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_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_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1)