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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.379/2.379, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001124/0.001124, allocations: 177 kB / 498.1 MB, free: 5.684 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.705/1.705, allocations: 223.2 MB / 0.7948 GB, free: 18.85 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.0009605/0.0009605, allocations: 104.2 kB / 0.9346 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004678/0.0004678, allocations: 10.97 kB / 1.084 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3349, allocations: 142.3 MB / 1.223 GB, free: 89.59 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2476/0.5826, allocations: 182.5 MB / 1.401 GB, free: 2.855 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.583, allocations: 95.94 kB / 1.401 GB, free: 2.762 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.126/1.709, allocations: 194.2 MB / 1.591 GB, free: 18.34 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.697e-06/1.709, allocations: 4 kB / 1.591 GB, free: 18.33 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0006799/1.71, allocations: 128 kB / 1.591 GB, free: 18.21 MB / 0.9011 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.02044/1.73, allocations: 4.493 MB / 1.595 GB, free: 13.64 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.73, allocations: 8.031 kB / 1.595 GB, free: 13.63 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008906/1.739, allocations: 1.016 MB / 1.596 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/1.752, allocations: 3.233 MB / 1.599 GB, free: 9.32 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004849/1.753, allocations: 365.7 kB / 1.6 GB, free: 8.961 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003309/1.756, allocations: 468 kB / 1.6 GB, free: 8.504 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02418/1.78, allocations: 7.503 MB / 1.608 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003357/1.78, allocations: 19.78 kB / 1.608 GB, free: 0.5117 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002415/1.783, allocations: 223.9 kB / 1.608 GB, free: 300 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003885/1.783, allocations: 269.2 kB / 1.608 GB, free: 28 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01574/1.799, allocations: 5.407 MB / 1.613 GB, free: 10.6 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05552/1.855, allocations: 36.26 MB / 1.649 GB, free: 3.109 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003862/1.859, allocations: 2.124 MB / 1.651 GB, free: 0.9727 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001654/1.859, allocations: 21.27 kB / 1.651 GB, free: 0.9531 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/1.859, allocations: 51.88 kB / 1.651 GB, free: 0.8945 MB / 0.948 GB Notification: Performance of pre-optimization done (n=157): time 4.739e-06/1.859, allocations: 0 / 1.651 GB, free: 0.8945 MB / 0.948 GB Notification: Performance of matching and sorting (n=160): time 0.01645/1.875, allocations: 7.536 MB / 1.658 GB, free: 9.086 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.894e-05/1.875, allocations: 68.72 kB / 1.658 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003585/1.879, allocations: 1.56 MB / 1.66 GB, free: 7.422 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.00022/1.879, allocations: 57.7 kB / 1.66 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.00172/1.881, allocations: 2.092 MB / 1.662 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006946/1.882, allocations: 0.5584 MB / 1.663 GB, free: 4.676 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/1.882, allocations: 44 kB / 1.663 GB, free: 4.633 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002316/1.882, allocations: 398 kB / 1.663 GB, free: 4.238 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/1.884, allocations: 1.007 MB / 1.664 GB, free: 3.227 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/1.886, allocations: 1.736 MB / 1.666 GB, free: 1.152 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/1.888, allocations: 1.299 MB / 1.667 GB, free: 15.85 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.965e-05/1.888, allocations: 4 kB / 1.667 GB, free: 15.85 MB / 0.9792 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.006753/1.895, allocations: 3.8 MB / 1.671 GB, free: 12 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 4.233e-05/1.895, allocations: 16 kB / 1.671 GB, free: 11.98 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.122e-05/1.895, allocations: 32.12 kB / 1.671 GB, free: 11.95 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002496/1.898, allocations: 0.9155 MB / 1.672 GB, free: 11 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/1.899, allocations: 411.2 kB / 1.672 GB, free: 10.6 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02085/1.92, allocations: 21.41 MB / 1.693 GB, free: 3.594 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/1.923, allocations: 123.9 kB / 1.693 GB, free: 3.473 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005744/1.923, allocations: 95.98 kB / 1.693 GB, free: 3.379 MB / 0.9948 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.004692/1.928, allocations: 1.641 MB / 1.695 GB, free: 1.727 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009139/1.929, allocations: 261 kB / 1.695 GB, free: 1.469 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006339/1.935, allocations: 3.248 MB / 1.698 GB, free: 14.16 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/1.936, allocations: 19.94 kB / 1.698 GB, free: 14.14 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4e-05/1.936, allocations: 12 kB / 1.698 GB, free: 14.13 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/1.936, allocations: 7.969 kB / 1.698 GB, free: 14.12 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.953, allocations: 7.51 MB / 1.705 GB, free: 6.461 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-05/1.953, allocations: 4 kB / 1.705 GB, free: 6.457 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/1.954, allocations: 219.6 kB / 1.706 GB, free: 6.242 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/1.957, allocations: 0.8729 MB / 1.707 GB, free: 5.332 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001799/1.957, allocations: 32 kB / 1.707 GB, free: 5.301 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01999/1.977, allocations: 21.37 MB / 1.727 GB, free: 14.32 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.977, allocations: 7.984 kB / 1.727 GB, free: 14.32 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006752/1.984, allocations: 3.702 MB / 1.731 GB, free: 10.38 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/1.986, allocations: 0.5292 MB / 1.732 GB, free: 9.824 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008569/1.987, allocations: 35.98 kB / 1.732 GB, free: 9.789 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001755/1.988, allocations: 92.27 kB / 1.732 GB, free: 9.699 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004877/1.989, allocations: 141 kB / 1.732 GB, free: 9.562 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/1.989, allocations: 52 kB / 1.732 GB, free: 9.512 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.002539/1.992, allocations: 1.178 MB / 1.733 GB, free: 8.32 MB / 1.042 GB Notification: Performance of sort global known variables: time 4.51e-07/1.992, allocations: 0 / 1.733 GB, free: 8.32 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.00456/1.996, allocations: 0.9413 MB / 1.734 GB, free: 7.379 MB / 1.042 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.0004224/1.997, allocations: 164.2 kB / 1.734 GB, free: 7.211 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.006891/2.004, allocations: 4.333 MB / 1.738 GB, free: 2.723 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/2.004, allocations: 0 / 1.738 GB, free: 2.723 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.004431/2.008, allocations: 3.001 MB / 1.741 GB, free: 15.57 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/2.012, allocations: 0.7135 MB / 1.742 GB, free: 14.86 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02069/2.033, allocations: 9.187 MB / 1.751 GB, free: 5.582 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006485/2.04, allocations: 3.286 MB / 1.754 GB, free: 2.266 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 0.002738/2.042, allocations: 0.521 MB / 1.755 GB, free: 1.738 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005864/2.043, allocations: 135.4 kB / 1.755 GB, free: 1.605 MB / 1.057 GB Notification: Performance of SimCode: time 1.754e-06/2.043, allocations: 0 / 1.755 GB, free: 1.605 MB / 1.057 GB Notification: Performance of Templates: time 0.07881/2.122, allocations: 38.85 MB / 1.793 GB, free: 11.27 MB / 1.104 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches