Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.262/2.262, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 184.8 kB / 498.1 MB, free: 5.758 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.1 MB / 0.7948 GB, free: 17.81 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008853/0.0008854, allocations: 106.3 kB / 0.9346 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003821, allocations: 7.75 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3013, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2233/0.5246, allocations: 182.5 MB / 1.401 GB, free: 11.39 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/0.525, allocations: 95.94 kB / 1.401 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.058/1.583, allocations: 194.2 MB / 1.591 GB, free: 55.93 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.795e-06/1.583, allocations: 0 / 1.591 GB, free: 55.93 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0005557/1.584, allocations: 124 kB / 1.591 GB, free: 55.81 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01646/1.6, allocations: 4.496 MB / 1.595 GB, free: 51.24 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/1.6, allocations: 12.03 kB / 1.595 GB, free: 51.23 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003738/1.604, allocations: 0.7099 MB / 1.596 GB, free: 50.51 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007604/1.612, allocations: 1.016 MB / 1.597 GB, free: 49.49 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009758/1.621, allocations: 3.221 MB / 1.6 GB, free: 46.21 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004361/1.622, allocations: 357.7 kB / 1.601 GB, free: 45.86 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00265/1.625, allocations: 472 kB / 1.601 GB, free: 45.4 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02205/1.647, allocations: 7.503 MB / 1.608 GB, free: 37.43 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003141/1.647, allocations: 23.73 kB / 1.608 GB, free: 37.4 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002212/1.649, allocations: 220 kB / 1.609 GB, free: 37.19 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003379/1.65, allocations: 273.2 kB / 1.609 GB, free: 36.92 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01313/1.663, allocations: 5.399 MB / 1.614 GB, free: 31.5 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04618/1.709, allocations: 36.26 MB / 1.65 GB, free: 8.004 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004062/1.713, allocations: 2.136 MB / 1.652 GB, free: 5.855 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/1.713, allocations: 25.25 kB / 1.652 GB, free: 5.832 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.894e-05/1.713, allocations: 51.88 kB / 1.652 GB, free: 5.773 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=157): time 4.869e-06/1.713, allocations: 0 / 1.652 GB, free: 5.773 MB / 0.9323 GB Notification: Performance of matching and sorting (n=160): time 0.01647/1.73, allocations: 7.529 MB / 1.659 GB, free: 13.97 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/1.73, allocations: 64.72 kB / 1.659 GB, free: 13.89 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/1.733, allocations: 1.564 MB / 1.661 GB, free: 12.31 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002284/1.734, allocations: 57.7 kB / 1.661 GB, free: 12.25 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001717/1.735, allocations: 2.096 MB / 1.663 GB, free: 10.12 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007218/1.736, allocations: 0.5623 MB / 1.663 GB, free: 9.555 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/1.736, allocations: 40 kB / 1.663 GB, free: 9.516 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002425/1.737, allocations: 394.1 kB / 1.664 GB, free: 9.125 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/1.738, allocations: 1.011 MB / 1.665 GB, free: 8.109 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002263/1.741, allocations: 1.736 MB / 1.666 GB, free: 6.035 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/1.743, allocations: 1.298 MB / 1.668 GB, free: 4.738 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/1.743, allocations: 4 kB / 1.668 GB, free: 4.734 MB / 0.948 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.007092/1.75, allocations: 3.799 MB / 1.671 GB, free: 0.8867 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/1.75, allocations: 19.98 kB / 1.671 GB, free: 0.8672 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.955e-05/1.75, allocations: 24 kB / 1.671 GB, free: 0.8438 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/1.752, allocations: 0.9081 MB / 1.672 GB, free: 15.9 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/1.754, allocations: 415.2 kB / 1.673 GB, free: 15.49 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02208/1.776, allocations: 21.42 MB / 1.694 GB, free: 8.48 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003062/1.779, allocations: 123.9 kB / 1.694 GB, free: 8.359 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007409/1.78, allocations: 92 kB / 1.694 GB, free: 8.27 MB / 0.9792 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (215): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00519/1.785, allocations: 1.645 MB / 1.695 GB, free: 6.613 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009463/1.786, allocations: 253 kB / 1.696 GB, free: 6.363 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007033/1.793, allocations: 3.26 MB / 1.699 GB, free: 3.051 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/1.793, allocations: 19.94 kB / 1.699 GB, free: 3.031 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.221e-05/1.793, allocations: 8 kB / 1.699 GB, free: 3.023 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-05/1.793, allocations: 7.969 kB / 1.699 GB, free: 3.016 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/1.811, allocations: 7.502 MB / 1.706 GB, free: 11.36 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/1.811, allocations: 7.984 kB / 1.706 GB, free: 11.35 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/1.812, allocations: 224.2 kB / 1.706 GB, free: 11.13 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/1.815, allocations: 0.8687 MB / 1.707 GB, free: 10.22 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001653/1.815, allocations: 32 kB / 1.707 GB, free: 10.19 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02388/1.839, allocations: 21.37 MB / 1.728 GB, free: 3.211 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.23e-05/1.839, allocations: 7.984 kB / 1.728 GB, free: 3.203 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008705/1.848, allocations: 3.703 MB / 1.732 GB, free: 15.26 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.85, allocations: 0.5292 MB / 1.732 GB, free: 14.71 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008947/1.851, allocations: 32 kB / 1.732 GB, free: 14.68 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/1.852, allocations: 95.88 kB / 1.732 GB, free: 14.59 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005372/1.853, allocations: 137 kB / 1.733 GB, free: 14.45 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.853, allocations: 48 kB / 1.733 GB, free: 14.41 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.002664/1.856, allocations: 1.186 MB / 1.734 GB, free: 13.21 MB / 1.026 GB Notification: Performance of sort global known variables: time 1.9e-07/1.856, allocations: 0 / 1.734 GB, free: 13.21 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.004547/1.86, allocations: 0.9413 MB / 1.735 GB, free: 12.27 MB / 1.026 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007567/1.868, allocations: 5.42 MB / 1.74 GB, free: 6.656 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.007534/1.875, allocations: 4.342 MB / 1.744 GB, free: 2.16 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/1.876, allocations: 4 kB / 1.744 GB, free: 2.156 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.004861/1.88, allocations: 2.985 MB / 1.747 GB, free: 15.02 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004225/1.885, allocations: 0.725 MB / 1.748 GB, free: 14.3 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05354/1.938, allocations: 37.36 MB / 1.784 GB, free: 7.254 MB / 1.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006027/1.944, allocations: 3.294 MB / 1.788 GB, free: 3.93 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 0.002365/1.947, allocations: 0.5172 MB / 1.788 GB, free: 3.406 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002685/1.949, allocations: 1.679 MB / 1.79 GB, free: 1.727 MB / 1.073 GB Notification: Performance of SimCode: time 1.122e-06/1.949, allocations: 0 / 1.79 GB, free: 1.727 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7008/2.65, allocations: 67.85 MB / 1.856 GB, free: 285.7 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/2.651, allocations: 222.3 kB / 1.856 GB, free: 285.5 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.876/6.527, allocations: 0 / 1.856 GB, free: 285.5 MB / 1.135 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat