Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.489/1.489, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 179.3 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.769/1.769, allocations: 205.4 MB / 0.5775 GB, free: 20.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009341/0.000934, allocations: 89.36 kB / 0.6821 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.000437, allocations: 15.41 kB / 0.7963 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2726, allocations: 106.3 MB / 0.9001 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8529/1.126, allocations: 164.6 MB / 1.061 GB, free: 63.87 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003548/1.126, allocations: 99.09 kB / 1.061 GB, free: 63.87 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.4305/1.557, allocations: 182.4 MB / 1.239 GB, free: 4.613 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.095e-06/1.557, allocations: 0 / 1.239 GB, free: 4.613 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.000768/1.557, allocations: 124 kB / 1.239 GB, free: 4.492 MB / 0.7292 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.0237/1.581, allocations: 4.492 MB / 1.244 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/1.581, allocations: 12.03 kB / 1.244 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008346/1.59, allocations: 1.024 MB / 1.245 GB, free: 14.88 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/1.602, allocations: 3.221 MB / 1.248 GB, free: 11.61 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005541/1.602, allocations: 361.7 kB / 1.248 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002955/1.605, allocations: 475.9 kB / 1.248 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02739/1.633, allocations: 7.503 MB / 1.256 GB, free: 2.812 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003465/1.633, allocations: 23.75 kB / 1.256 GB, free: 2.789 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002585/1.636, allocations: 220 kB / 1.256 GB, free: 2.574 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004145/1.636, allocations: 269.1 kB / 1.256 GB, free: 2.309 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01755/1.654, allocations: 5.395 MB / 1.262 GB, free: 12.89 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06109/1.715, allocations: 36.26 MB / 1.297 GB, free: 5.402 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/1.719, allocations: 2.128 MB / 1.299 GB, free: 3.262 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001747/1.72, allocations: 17.31 kB / 1.299 GB, free: 3.246 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.7e-05/1.72, allocations: 63.81 kB / 1.299 GB, free: 3.176 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=157): time 3.687e-06/1.72, allocations: 0 / 1.299 GB, free: 3.176 MB / 0.7917 GB Notification: Performance of matching and sorting (n=160): time 0.01819/1.738, allocations: 7.532 MB / 1.306 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.738, allocations: 68.72 kB / 1.307 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004171/1.742, allocations: 1.564 MB / 1.308 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0003796/1.743, allocations: 49.7 kB / 1.308 GB, free: 9.652 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.001977/1.745, allocations: 2.1 MB / 1.31 GB, free: 7.527 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009167/1.746, allocations: 0.5507 MB / 1.311 GB, free: 6.969 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/1.746, allocations: 44 kB / 1.311 GB, free: 6.926 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0002787/1.746, allocations: 386.1 kB / 1.311 GB, free: 6.543 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001936/1.748, allocations: 1.015 MB / 1.312 GB, free: 5.523 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002521/1.751, allocations: 1.728 MB / 1.314 GB, free: 3.457 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/1.753, allocations: 1.31 MB / 1.315 GB, free: 2.145 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.361e-05/1.753, allocations: 8 kB / 1.315 GB, free: 2.137 MB / 0.8073 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.007925/1.761, allocations: 3.799 MB / 1.319 GB, free: 14.29 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/1.761, allocations: 16 kB / 1.319 GB, free: 14.27 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-05/1.761, allocations: 27.98 kB / 1.319 GB, free: 14.25 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00259/1.764, allocations: 0.9159 MB / 1.32 GB, free: 13.29 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/1.765, allocations: 419.2 kB / 1.32 GB, free: 12.88 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02286/1.788, allocations: 21.4 MB / 1.341 GB, free: 5.875 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/1.791, allocations: 123.8 kB / 1.341 GB, free: 5.754 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005274/1.792, allocations: 92 kB / 1.341 GB, free: 5.664 MB / 0.8386 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.004867/1.796, allocations: 1.649 MB / 1.343 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009225/1.797, allocations: 253.1 kB / 1.343 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006572/1.804, allocations: 3.252 MB / 1.346 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/1.804, allocations: 23.94 kB / 1.346 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.472e-05/1.804, allocations: 12 kB / 1.346 GB, free: 428 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.751e-05/1.804, allocations: 7.969 kB / 1.346 GB, free: 420 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01934/1.823, allocations: 7.506 MB / 1.354 GB, free: 8.746 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-05/1.824, allocations: 7.938 kB / 1.354 GB, free: 8.738 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.825, allocations: 220.2 kB / 1.354 GB, free: 8.523 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/1.827, allocations: 0.8773 MB / 1.355 GB, free: 7.609 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001786/1.827, allocations: 32 kB / 1.355 GB, free: 7.578 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02168/1.849, allocations: 21.36 MB / 1.376 GB, free: 0.6172 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/1.849, allocations: 7.938 kB / 1.376 GB, free: 0.6094 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008735/1.858, allocations: 3.697 MB / 1.379 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00241/1.86, allocations: 0.5291 MB / 1.38 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/1.861, allocations: 32 kB / 1.38 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.863, allocations: 99.88 kB / 1.38 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005377/1.864, allocations: 141 kB / 1.38 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/1.864, allocations: 44 kB / 1.38 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002246/1.866, allocations: 1.182 MB / 1.381 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.71e-07/1.866, allocations: 4 kB / 1.381 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004603/1.871, allocations: 0.9336 MB / 1.382 GB, free: 9.68 MB / 0.8855 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.0004121/1.871, allocations: 163.3 kB / 1.382 GB, free: 9.512 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.007294/1.879, allocations: 4.343 MB / 1.387 GB, free: 5.016 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.038e-05/1.879, allocations: 4 kB / 1.387 GB, free: 5.012 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.004618/1.883, allocations: 2.988 MB / 1.389 GB, free: 1.871 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/1.887, allocations: 0.7219 MB / 1.39 GB, free: 1.152 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5341/2.421, allocations: 9.194 MB / 1.399 GB, free: 219.1 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005328/2.427, allocations: 3.286 MB / 1.402 GB, free: 218.3 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002664/2.429, allocations: 0.5176 MB / 1.403 GB, free: 218.3 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004884/2.43, allocations: 143 kB / 1.403 GB, free: 218.3 MB / 0.8855 GB Notification: Performance of SimCode: time 1.362e-06/2.43, allocations: 1.219 kB / 1.403 GB, free: 218.3 MB / 0.8855 GB Notification: Performance of Templates: time 0.07454/2.505, allocations: 38.84 MB / 1.441 GB, free: 217.4 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches