Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",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.001246/0.001246, allocations: 105.4 kB / 15.7 MB, free: 24 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.0011/0.0011, allocations: 196.1 kB / 16.64 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.598/1.598, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 69.2 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2071, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.007927/0.215, allocations: 6.766 MB / 0.7903 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004773/0.2198, allocations: 3.091 MB / 0.7933 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005211/0.2204, allocations: 27.81 kB / 0.7933 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002314/0.2227, allocations: 0.9336 MB / 0.7942 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001164/0.2239, allocations: 0.5128 MB / 0.7947 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.225, allocations: 446 kB / 0.7951 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001116/0.2261, allocations: 1.228 MB / 0.7963 GB, free: 236 kB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007867/0.2269, allocations: 0.6625 MB / 0.797 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004683/0.2274, allocations: 474.2 kB / 0.7974 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005901/0.228, allocations: 0.5215 MB / 0.7979 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 8.7e-05/0.2281, allocations: 72 kB / 0.798 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006271/0.2287, allocations: 375.3 kB / 0.7984 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002705/0.229, allocations: 307.2 kB / 0.7987 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0003673/0.2294, allocations: 457.7 kB / 0.7991 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.2304, allocations: 1.207 MB / 0.8003 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2304, allocations: 7.938 kB / 0.8003 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2304, allocations: 0 / 0.8003 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.052e-05/0.2304, allocations: 0 / 0.8003 GB, free: 12.16 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001679/0.2321, allocations: 1.172 MB / 0.8014 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2322, allocations: 12.03 kB / 0.8014 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.2323, allocations: 118.7 kB / 0.8016 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.2338, allocations: 243.5 kB / 0.8018 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008275/0.2346, allocations: 0.5998 MB / 0.8024 GB, free: 9.926 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.644e-05/0.2347, allocations: 49.67 kB / 0.8024 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.203e-05/0.2348, allocations: 68.34 kB / 0.8025 GB, free: 9.812 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.236, allocations: 1.085 MB / 0.8035 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.2361, allocations: 3.938 kB / 0.8035 GB, free: 8.621 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.611e-05/0.2361, allocations: 35.98 kB / 0.8036 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.2363, allocations: 85.25 kB / 0.8037 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.2373, allocations: 0.7465 MB / 0.8044 GB, free: 7.75 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.2417, allocations: 5.889 MB / 0.8101 GB, free: 1.434 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008706/0.2426, allocations: 0.5583 MB / 0.8107 GB, free: 0.8633 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003843/0.243, allocations: 326 kB / 0.811 GB, free: 0.543 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.243, allocations: 12.44 kB / 0.811 GB, free: 0.5312 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.2431, allocations: 35 kB / 0.811 GB, free: 500 kB / 0.6231 GB Notification: Performance of pre-optimization done (n=47): time 1.653e-06/0.2431, allocations: 0 / 0.811 GB, free: 500 kB / 0.6231 GB Notification: Performance of matching and sorting (n=48): time 0.003416/0.2465, allocations: 1.986 MB / 0.813 GB, free: 14.41 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.2465, allocations: 59.78 kB / 0.813 GB, free: 14.34 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.2471, allocations: 0.5548 MB / 0.8136 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.2471, allocations: 37.7 kB / 0.8136 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/0.2474, allocations: 418.9 kB / 0.814 GB, free: 13.31 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.2475, allocations: 173.6 kB / 0.8142 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.2476, allocations: 122.5 kB / 0.8143 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2478, allocations: 382.7 kB / 0.8147 GB, free: 12.63 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.2481, allocations: 273.8 kB / 0.8149 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.2486, allocations: 496.9 kB / 0.8154 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008795/0.2495, allocations: 0.8133 MB / 0.8162 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2495, allocations: 4 kB / 0.8162 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001569/0.2511, allocations: 1.087 MB / 0.8173 GB, free: 9.766 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.2511, allocations: 8 kB / 0.8173 GB, free: 9.758 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.2511, allocations: 8 kB / 0.8173 GB, free: 9.75 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007473/0.2519, allocations: 275.7 kB / 0.8175 GB, free: 9.469 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004358/0.2523, allocations: 131.7 kB / 0.8177 GB, free: 9.34 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005585/0.2579, allocations: 7.137 MB / 0.8246 GB, free: 1.637 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005481/0.2585, allocations: 39.95 kB / 0.8247 GB, free: 1.598 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/0.2585, allocations: 32 kB / 0.8247 GB, free: 1.566 MB / 0.6387 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0003402/0.2589, allocations: 257.5 kB / 0.8249 GB, free: 1.305 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.992e-05/0.259, allocations: 71.16 kB / 0.825 GB, free: 1.234 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.2604, allocations: 0.8886 MB / 0.8259 GB, free: 332 kB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2604, allocations: 8 kB / 0.8259 GB, free: 324 kB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2604, allocations: 4 kB / 0.8259 GB, free: 320 kB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2604, allocations: 3.984 kB / 0.8259 GB, free: 316 kB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002353/0.2628, allocations: 1.724 MB / 0.8276 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.2628, allocations: 7.938 kB / 0.8276 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.2631, allocations: 63.89 kB / 0.8277 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006769/0.2637, allocations: 263.4 kB / 0.8279 GB, free: 14.15 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.2638, allocations: 12 kB / 0.8279 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005693/0.2695, allocations: 7.127 MB / 0.8349 GB, free: 6.453 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2695, allocations: 0 / 0.8349 GB, free: 6.453 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.2709, allocations: 0.9916 MB / 0.8358 GB, free: 5.418 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.2711, allocations: 188.2 kB / 0.836 GB, free: 5.215 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.715e-05/0.2712, allocations: 15.94 kB / 0.836 GB, free: 5.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.2716, allocations: 31.95 kB / 0.8361 GB, free: 5.168 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.045e-05/0.2717, allocations: 39.89 kB / 0.8361 GB, free: 5.129 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.2717, allocations: 19.94 kB / 0.8361 GB, free: 5.109 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003974/0.2721, allocations: 395.1 kB / 0.8365 GB, free: 4.727 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2721, allocations: 4 kB / 0.8365 GB, free: 4.723 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0007414/0.2729, allocations: 224 kB / 0.8367 GB, free: 4.504 MB / 0.6544 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001662/0.2746, allocations: 1.54 MB / 0.8382 GB, free: 2.902 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001885/0.2764, allocations: 1.268 MB / 0.8395 GB, free: 1.582 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.2765, allocations: 4.125 kB / 0.8395 GB, free: 1.578 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.2777, allocations: 0.8854 MB / 0.8403 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.2787, allocations: 229.7 kB / 0.8405 GB, free: 440 kB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008461/0.2872, allocations: 6.401 MB / 0.8468 GB, free: 9.691 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.2878, allocations: 1.016 MB / 0.8478 GB, free: 8.648 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0004164/0.2883, allocations: 126 kB / 0.8479 GB, free: 8.523 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.2886, allocations: 251.3 kB / 0.8482 GB, free: 8.277 MB / 0.67 GB Notification: Performance of SimCode: time 9.32e-07/0.2886, allocations: 0 / 0.8482 GB, free: 8.277 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04627/0.3349, allocations: 17.27 MB / 0.865 GB, free: 7.328 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.48, allocations: 6.969 kB / 0.865 GB, free: 7.324 MB / 0.6856 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)