Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",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.00129/0.00129, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002493/0.002493, allocations: 286.6 kB / 290.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.109/1.109, allocations: 178.6 MB / 0.5073 GB, free: 4.562 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002689/0.002689, allocations: 103 kB / 0.6066 GB, free: 24.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1676, allocations: 89.15 MB / 0.6936 GB, free: 4.191 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.04645/0.2141, allocations: 34.83 MB / 0.7276 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02033/0.2344, allocations: 11.5 MB / 0.7389 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003089/0.2376, allocations: 163.2 kB / 0.739 GB, free: 5.582 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0114/0.249, allocations: 4.249 MB / 0.7432 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006246/0.2553, allocations: 1.99 MB / 0.7451 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007013/0.2623, allocations: 2.407 MB / 0.7474 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01217/0.2745, allocations: 8.456 MB / 0.7557 GB, free: 4.438 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3204/0.5949, allocations: 11.22 MB / 0.7667 GB, free: 16.96 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00623/0.6012, allocations: 3.722 MB / 0.7703 GB, free: 16.86 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007158/0.6084, allocations: 4.185 MB / 0.7744 GB, free: 16.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002449/0.6109, allocations: 0.7804 MB / 0.7751 GB, free: 16.39 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004715/0.6156, allocations: 2.027 MB / 0.7771 GB, free: 16.39 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004541/0.6201, allocations: 3.054 MB / 0.7801 GB, free: 16.19 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006865/0.627, allocations: 3.4 MB / 0.7834 GB, free: 15.38 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.6418, allocations: 11.92 MB / 0.7951 GB, free: 14.05 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.6418, allocations: 0 / 0.7951 GB, free: 14.05 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6418, allocations: 0 / 0.7951 GB, free: 14.05 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003447/0.6422, allocations: 4 kB / 0.7951 GB, free: 14.04 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01509/0.6573, allocations: 5.796 MB / 0.8007 GB, free: 11.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.6573, allocations: 9.625 kB / 0.8007 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001325/0.6587, allocations: 0.8039 MB / 0.8015 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005731/0.6644, allocations: 1.055 MB / 0.8026 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004991/0.6694, allocations: 3.261 MB / 0.8057 GB, free: 8.758 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.6696, allocations: 414.3 kB / 0.8061 GB, free: 8.578 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008395/0.6705, allocations: 0.5439 MB / 0.8067 GB, free: 8.395 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01275/0.6832, allocations: 9.072 MB / 0.8155 GB, free: 2.895 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/0.6834, allocations: 34.23 kB / 0.8156 GB, free: 2.883 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005531/0.6839, allocations: 236.8 kB / 0.8158 GB, free: 2.715 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002674/0.6842, allocations: 349.1 kB / 0.8161 GB, free: 2.641 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009485/0.6937, allocations: 6.827 MB / 0.8228 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05162/0.7453, allocations: 40.11 MB / 0.862 GB, free: 5.762 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00429/0.7496, allocations: 3.117 MB / 0.865 GB, free: 2.512 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00287/0.7525, allocations: 1.969 MB / 0.8669 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.617e-05/0.7526, allocations: 18 kB / 0.8669 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.7527, allocations: 52.56 kB / 0.867 GB, free: 484 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=179): time 3.497e-06/0.7527, allocations: 4 kB / 0.867 GB, free: 480 kB / 0.5919 GB Notification: Performance of matching and sorting (n=182): time 0.02523/0.7779, allocations: 9.975 MB / 0.8767 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.7781, allocations: 73.41 kB / 0.8768 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002213/0.7803, allocations: 1.522 MB / 0.8783 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001505/0.7805, allocations: 57.7 kB / 0.8783 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.7821, allocations: 2.254 MB / 0.8805 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006183/0.7827, allocations: 0.6342 MB / 0.8812 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007354/0.7835, allocations: 407.9 kB / 0.8816 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.7836, allocations: 305.1 kB / 0.8818 GB, free: 1.148 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001821/0.7854, allocations: 1.177 MB / 0.883 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002324/0.7878, allocations: 1.884 MB / 0.8848 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004464/0.7922, allocations: 3.365 MB / 0.8881 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.7923, allocations: 12 kB / 0.8881 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007989/0.8002, allocations: 4.582 MB / 0.8926 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.8003, allocations: 16 kB / 0.8926 GB, free: 5.746 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/0.8003, allocations: 20.94 kB / 0.8926 GB, free: 5.727 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003875/0.8042, allocations: 1.595 MB / 0.8942 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.8055, allocations: 358.7 kB / 0.8945 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02547/0.831, allocations: 18.6 MB / 0.9127 GB, free: 0.7031 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/0.833, allocations: 119.9 kB / 0.9128 GB, free: 0.5859 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/0.8332, allocations: 103.5 kB / 0.9129 GB, free: 500 kB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003797/0.837, allocations: 1.89 MB / 0.9148 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/0.8375, allocations: 225.4 kB / 0.915 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00738/0.8449, allocations: 4.093 MB / 0.919 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.845, allocations: 20 kB / 0.919 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.253e-05/0.845, allocations: 16 kB / 0.919 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.459e-05/0.845, allocations: 15.33 kB / 0.919 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/0.8615, allocations: 9.478 MB / 0.9283 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.8615, allocations: 4 kB / 0.9283 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008341/0.8624, allocations: 185 kB / 0.9285 GB, free: 0.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003557/0.8659, allocations: 1.353 MB / 0.9298 GB, free: 15.14 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001523/0.8661, allocations: 36 kB / 0.9298 GB, free: 15.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/0.8896, allocations: 17.37 MB / 0.9468 GB, free: 13.23 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.8897, allocations: 10.81 kB / 0.9468 GB, free: 13.22 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007474/0.8971, allocations: 4.076 MB / 0.9508 GB, free: 9.109 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.8984, allocations: 0.5295 MB / 0.9513 GB, free: 8.559 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002917/0.8987, allocations: 32 kB / 0.9513 GB, free: 8.527 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.8997, allocations: 87.89 kB / 0.9514 GB, free: 8.441 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004577/0.9002, allocations: 160.9 kB / 0.9516 GB, free: 8.285 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.9003, allocations: 48 kB / 0.9516 GB, free: 8.238 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001479/0.9018, allocations: 1.005 MB / 0.9526 GB, free: 7.211 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9018, allocations: 0 / 0.9526 GB, free: 7.211 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00316/0.905, allocations: 0.9883 MB / 0.9536 GB, free: 6.223 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007479/0.9125, allocations: 4.666 MB / 0.9581 GB, free: 1.527 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.009292/0.9218, allocations: 5.191 MB / 0.9632 GB, free: 12.37 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.9218, allocations: 0 / 0.9632 GB, free: 12.37 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.004653/0.9265, allocations: 2.661 MB / 0.9658 GB, free: 9.688 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/0.93, allocations: 0.7838 MB / 0.9665 GB, free: 8.941 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04681/0.9768, allocations: 28.66 MB / 0.9945 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005546/0.9824, allocations: 3.573 MB / 0.998 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001577/0.984, allocations: 467.9 kB / 0.9985 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002281/0.9863, allocations: 1.78 MB / 1 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of SimCode: time 9.42e-07/0.9863, allocations: 0 / 1 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4011/1.387, allocations: 72.52 MB / 1.071 GB, free: 285.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/12.22, allocations: 4.281 kB / 1.071 GB, free: 285.5 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_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_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1)