Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.469/2.469, 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.001195/0.001195, allocations: 187.5 kB / 498.1 MB, free: 5.734 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.802/1.802, allocations: 223.2 MB / 0.7948 GB, free: 17.82 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.001106/0.001106, allocations: 96.33 kB / 0.9346 GB, free: 6.129 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004234/0.0004237, allocations: 11.8 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3296, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.6184, allocations: 203.5 MB / 1.422 GB, free: 6.414 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/0.6187, allocations: 99.94 kB / 1.422 GB, free: 6.316 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.8688/1.488, allocations: 73.96 MB / 1.494 GB, free: 158.4 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.274e-06/1.488, allocations: 0 / 1.494 GB, free: 158.4 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001506/1.488, allocations: 36 kB / 1.494 GB, free: 158.3 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.005217/1.493, allocations: 1.663 MB / 1.496 GB, free: 156.6 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.493, allocations: 12.03 kB / 1.496 GB, free: 156.6 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003248/1.496, allocations: 0.4936 MB / 1.496 GB, free: 156.1 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003252/1.5, allocations: 1.15 MB / 1.497 GB, free: 154.9 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.99e-05/1.5, allocations: 123 kB / 1.497 GB, free: 154.8 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007278/1.5, allocations: 151.9 kB / 1.497 GB, free: 154.6 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006269/1.507, allocations: 2.478 MB / 1.5 GB, free: 152.1 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.068e-05/1.507, allocations: 4 kB / 1.5 GB, free: 152.1 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004116/1.507, allocations: 63.98 kB / 1.5 GB, free: 152 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/1.507, allocations: 87.06 kB / 1.5 GB, free: 151.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003837/1.511, allocations: 2.042 MB / 1.502 GB, free: 149.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01767/1.529, allocations: 10.51 MB / 1.512 GB, free: 138.5 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/1.53, allocations: 0.5843 MB / 1.513 GB, free: 137.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/1.531, allocations: 89.69 kB / 1.513 GB, free: 137.8 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/1.531, allocations: 42.48 kB / 1.513 GB, free: 137.7 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=36): time 4.298e-06/1.531, allocations: 4 kB / 1.513 GB, free: 137.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=52): time 0.02785/1.559, allocations: 5.713 MB / 1.519 GB, free: 132 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/1.559, allocations: 81.55 kB / 1.519 GB, free: 131.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/1.561, allocations: 0.8156 MB / 1.519 GB, free: 131 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001888/1.561, allocations: 33.7 kB / 1.519 GB, free: 131 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006671/1.562, allocations: 0.7577 MB / 1.52 GB, free: 130.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/1.562, allocations: 189.4 kB / 1.52 GB, free: 130 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/1.562, allocations: 20 kB / 1.52 GB, free: 130 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000205/1.563, allocations: 390.8 kB / 1.521 GB, free: 129.6 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/1.564, allocations: 0.6382 MB / 1.521 GB, free: 129 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/1.566, allocations: 1.003 MB / 1.522 GB, free: 127.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/1.568, allocations: 0.8179 MB / 1.523 GB, free: 127 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/1.568, allocations: 4 kB / 1.523 GB, free: 127 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.01226/1.58, allocations: 2.936 MB / 1.526 GB, free: 124 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001179/1.581, allocations: 4.527 MB / 1.53 GB, free: 119.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/1.582, allocations: 12 kB / 1.53 GB, free: 119.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008684/1.59, allocations: 1.56 MB / 1.532 GB, free: 117.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/1.592, allocations: 219.7 kB / 1.532 GB, free: 117.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007868/1.599, allocations: 7.12 MB / 1.539 GB, free: 109.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/1.601, allocations: 163.7 kB / 1.539 GB, free: 109.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/1.601, allocations: 47.98 kB / 1.539 GB, free: 109.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/1.601, allocations: 4 kB / 1.539 GB, free: 109.7 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00565/1.607, allocations: 2.403 MB / 1.542 GB, free: 107.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.304e-05/1.607, allocations: 12 kB / 1.542 GB, free: 107.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003818/1.611, allocations: 0.9972 MB / 1.543 GB, free: 106.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/1.612, allocations: 263.5 kB / 1.543 GB, free: 106 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007186/1.619, allocations: 5.594 MB / 1.548 GB, free: 100.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/1.621, allocations: 143.8 kB / 1.549 GB, free: 100 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/1.621, allocations: 43.98 kB / 1.549 GB, free: 99.97 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * Single equations (assignments): 95 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.002354/1.624, allocations: 0.8401 MB / 1.549 GB, free: 99.12 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003668/1.624, allocations: 75.06 kB / 1.549 GB, free: 99.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006772/1.631, allocations: 2.473 MB / 1.552 GB, free: 96.54 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/1.631, allocations: 7.938 kB / 1.552 GB, free: 96.54 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/1.631, allocations: 4 kB / 1.552 GB, free: 96.53 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/1.631, allocations: 0 / 1.552 GB, free: 96.53 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009711/1.641, allocations: 4.306 MB / 1.556 GB, free: 92.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/1.641, allocations: 0 / 1.556 GB, free: 92.13 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/1.641, allocations: 103.8 kB / 1.556 GB, free: 92.03 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005483/1.647, allocations: 1.505 MB / 1.558 GB, free: 90.51 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-05/1.647, allocations: 12 kB / 1.558 GB, free: 90.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/1.657, allocations: 9.926 MB / 1.567 GB, free: 80.04 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.657, allocations: 7.938 kB / 1.567 GB, free: 80.04 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006054/1.663, allocations: 2.521 MB / 1.57 GB, free: 77.41 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007405/1.664, allocations: 284.1 kB / 1.57 GB, free: 77.11 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000242/1.664, allocations: 27.94 kB / 1.57 GB, free: 77.08 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008363/1.665, allocations: 111.8 kB / 1.57 GB, free: 76.97 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/1.665, allocations: 51.62 kB / 1.57 GB, free: 76.92 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/1.665, allocations: 19.98 kB / 1.57 GB, free: 76.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0009705/1.666, allocations: 0.6395 MB / 1.571 GB, free: 76.27 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/1.666, allocations: 0 / 1.571 GB, free: 76.27 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.002703/1.669, allocations: 0.621 MB / 1.572 GB, free: 75.65 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * Single equations (assignments): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003446/1.669, allocations: 184.1 kB / 1.572 GB, free: 75.46 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.004925/1.674, allocations: 3.081 MB / 1.575 GB, free: 72.34 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.674, allocations: 0 / 1.575 GB, free: 72.34 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001661/1.676, allocations: 1.288 MB / 1.576 GB, free: 71 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/1.677, allocations: 209.9 kB / 1.576 GB, free: 70.79 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005468/1.682, allocations: 3.551 MB / 1.58 GB, free: 67.19 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/1.684, allocations: 1.645 MB / 1.581 GB, free: 65.51 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001173/1.685, allocations: 490.4 kB / 1.582 GB, free: 65.03 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/1.685, allocations: 59.44 kB / 1.582 GB, free: 64.97 MB / 0.9167 GB Notification: Performance of SimCode: time 1.222e-06/1.685, allocations: 0 / 1.582 GB, free: 64.97 MB / 0.9167 GB Notification: Performance of Templates: time 0.03014/1.715, allocations: 22.38 MB / 1.604 GB, free: 42.7 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches