Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_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.001066/0.001066, 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.001277/0.001277, allocations: 192 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 290.6 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9645/0.9645, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 92.23 kB / 0.5954 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1419, allocations: 86.98 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03567/0.1776, allocations: 32.59 MB / 0.7121 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01605/0.1937, allocations: 10.27 MB / 0.7222 GB, free: 5.637 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.1964, allocations: 147.3 kB / 0.7223 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.009026/0.2054, allocations: 3.721 MB / 0.7259 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005207/0.2107, allocations: 1.858 MB / 0.7277 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006261/0.217, allocations: 2.133 MB / 0.7298 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008828/0.2258, allocations: 7.318 MB / 0.737 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01273/0.2386, allocations: 9.482 MB / 0.7462 GB, free: 12.83 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004747/0.2433, allocations: 3.159 MB / 0.7493 GB, free: 9.66 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004886/0.2482, allocations: 3.485 MB / 0.7527 GB, free: 6.164 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001976/0.2502, allocations: 0.6445 MB / 0.7533 GB, free: 5.52 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004681/0.2549, allocations: 1.775 MB / 0.7551 GB, free: 3.742 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00373/0.2587, allocations: 2.55 MB / 0.7576 GB, free: 1.188 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006025/0.2647, allocations: 2.898 MB / 0.7604 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.2775, allocations: 10.04 MB / 0.7702 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.2775, allocations: 0 / 0.7702 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2775, allocations: 0 / 0.7702 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.000332/0.2779, allocations: 0 / 0.7702 GB, free: 4.207 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.3142/0.5921, allocations: 5 MB / 0.7751 GB, free: 86.75 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.5922, allocations: 9.5 kB / 0.7751 GB, free: 86.75 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001322/0.5935, allocations: 0.6853 MB / 0.7758 GB, free: 86.42 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00515/0.5986, allocations: 0.9545 MB / 0.7767 GB, free: 86.14 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/0.6033, allocations: 2.855 MB / 0.7795 GB, free: 84.72 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.6036, allocations: 347.7 kB / 0.7798 GB, free: 84.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007708/0.6043, allocations: 466.8 kB / 0.7803 GB, free: 84.42 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.6155, allocations: 7.663 MB / 0.7877 GB, free: 81.11 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.6156, allocations: 27.95 kB / 0.7878 GB, free: 81.1 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004281/0.6161, allocations: 205.2 kB / 0.788 GB, free: 80.96 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002782/0.6164, allocations: 314.5 kB / 0.7883 GB, free: 80.92 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008582/0.625, allocations: 5.707 MB / 0.7938 GB, free: 78.93 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02718/0.6522, allocations: 35.09 MB / 0.8281 GB, free: 47.1 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002151/0.6544, allocations: 2.151 MB / 0.8302 GB, free: 45.64 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.6555, allocations: 1.264 MB / 0.8314 GB, free: 44.97 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.896e-05/0.6556, allocations: 17.69 kB / 0.8315 GB, free: 44.97 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.6556, allocations: 43.84 kB / 0.8315 GB, free: 44.92 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=133): time 3.277e-06/0.6556, allocations: 4 kB / 0.8315 GB, free: 44.92 MB / 0.5606 GB Notification: Performance of matching and sorting (n=136): time 0.0109/0.6665, allocations: 7.087 MB / 0.8384 GB, free: 40.18 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.6666, allocations: 64.72 kB / 0.8385 GB, free: 40.11 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.6679, allocations: 1.488 MB / 0.8399 GB, free: 38.57 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.085e-05/0.668, allocations: 53.27 kB / 0.84 GB, free: 38.52 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006326/0.6686, allocations: 2.003 MB / 0.842 GB, free: 36.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.6689, allocations: 487.9 kB / 0.8424 GB, free: 36.03 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000386/0.6692, allocations: 355.1 kB / 0.8428 GB, free: 35.68 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.024e-05/0.6693, allocations: 301.1 kB / 0.843 GB, free: 35.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009622/0.6703, allocations: 0.9174 MB / 0.8439 GB, free: 34.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.6714, allocations: 1.597 MB / 0.8455 GB, free: 32.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/0.6737, allocations: 2.737 MB / 0.8482 GB, free: 29.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.6737, allocations: 4 kB / 0.8482 GB, free: 29.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.004615/0.6784, allocations: 3.534 MB / 0.8516 GB, free: 25.92 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.6784, allocations: 13.72 kB / 0.8516 GB, free: 25.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.6784, allocations: 27.94 kB / 0.8517 GB, free: 25.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/0.6806, allocations: 0.8961 MB / 0.8525 GB, free: 24.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009873/0.6816, allocations: 351.4 kB / 0.8529 GB, free: 24.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/0.696, allocations: 23.12 MB / 0.8755 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.6975, allocations: 99.97 kB / 0.8756 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.6977, allocations: 83.98 kB / 0.8756 GB, free: 15.65 MB / 0.5762 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 (185): * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002349/0.7, allocations: 1.617 MB / 0.8772 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003046/0.7003, allocations: 205.5 kB / 0.8774 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00479/0.7051, allocations: 2.986 MB / 0.8803 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.7051, allocations: 12 kB / 0.8803 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.7052, allocations: 12 kB / 0.8803 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.7052, allocations: 7.969 kB / 0.8804 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.7156, allocations: 7.35 MB / 0.8875 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.7156, allocations: 4 kB / 0.8875 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007816/0.7164, allocations: 176.3 kB / 0.8877 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/0.7187, allocations: 0.8257 MB / 0.8885 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.741e-05/0.7188, allocations: 31.94 kB / 0.8885 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01803/0.7368, allocations: 21.95 MB / 0.91 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/0.7369, allocations: 4 kB / 0.91 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005152/0.742, allocations: 3.023 MB / 0.9129 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008874/0.743, allocations: 466.5 kB / 0.9134 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002426/0.7432, allocations: 28.78 kB / 0.9134 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007854/0.744, allocations: 71.91 kB / 0.9135 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003526/0.7444, allocations: 128.7 kB / 0.9136 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.194e-05/0.7445, allocations: 36 kB / 0.9136 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001214/0.7457, allocations: 0.9756 MB / 0.9146 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7457, allocations: 0 / 0.9146 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002602/0.7483, allocations: 0.793 MB / 0.9154 GB, free: 4.836 MB / 0.6075 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00494/0.7532, allocations: 3.614 MB / 0.9189 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00659/0.7599, allocations: 4.649 MB / 0.9234 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.7599, allocations: 7.938 kB / 0.9234 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003515/0.7634, allocations: 2.73 MB / 0.9261 GB, free: 9.43 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/0.7668, allocations: 0.7339 MB / 0.9268 GB, free: 8.738 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03333/0.8002, allocations: 23.84 MB / 0.9501 GB, free: 15.2 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003544/0.8037, allocations: 3.112 MB / 0.9531 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001385/0.8051, allocations: 458 kB / 0.9536 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/0.8068, allocations: 1.534 MB / 0.9551 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of SimCode: time 7.01e-07/0.8068, allocations: 0 / 0.9551 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/0.927, allocations: 60.33 MB / 1.014 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.716/10.64, allocations: 16.3 kB / 1.014 GB, free: 14.42 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1)