Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 108 kB / 15.61 MB, free: 152 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.002007/0.002007, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.708/2.708, allocations: 437 MB / 0.7103 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 63.88 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7614/0.763, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04204/0.8051, allocations: 35.11 MB / 1.052 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01978/0.8249, allocations: 9.944 MB / 1.061 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00378/0.8288, allocations: 151.2 kB / 1.061 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.839, allocations: 3.798 MB / 1.065 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006438/0.8455, allocations: 2.04 MB / 1.067 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005624/0.8511, allocations: 1.957 MB / 1.069 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01044/0.8616, allocations: 7.975 MB / 1.077 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01815/0.8798, allocations: 9.602 MB / 1.086 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007831/0.8877, allocations: 3.353 MB / 1.089 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007396/0.8951, allocations: 3.731 MB / 1.093 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002656/0.8979, allocations: 0.6797 MB / 1.094 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004683/0.9026, allocations: 1.447 MB / 1.095 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.004456/0.907, allocations: 2.612 MB / 1.098 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.007053/0.9141, allocations: 3.104 MB / 1.101 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.9269, allocations: 10.31 MB / 1.111 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.9269, allocations: 0 / 1.111 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.124e-06/0.9269, allocations: 0 / 1.111 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0003288/0.9273, allocations: 4 kB / 1.111 GB, free: 2.312 MB / 0.8575 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.01444/0.9417, allocations: 5.397 MB / 1.116 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.9418, allocations: 12.03 kB / 1.116 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005089/0.9469, allocations: 0.9587 MB / 1.117 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006197/0.9531, allocations: 2.999 MB / 1.12 GB, free: 8.812 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/0.9534, allocations: 353.9 kB / 1.12 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001352/0.9548, allocations: 468.2 kB / 1.121 GB, free: 8.008 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.016/0.9708, allocations: 7.914 MB / 1.129 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.971, allocations: 19.81 kB / 1.129 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005856/0.9716, allocations: 212 kB / 1.129 GB, free: 15.5 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005898/0.9721, allocations: 369 kB / 1.129 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/0.9848, allocations: 5.933 MB / 1.135 GB, free: 9.191 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04216/1.027, allocations: 36.22 MB / 1.17 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003994/1.031, allocations: 2.135 MB / 1.172 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002154/1.033, allocations: 1.486 MB / 1.174 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.073e-05/1.033, allocations: 13.31 kB / 1.174 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.223e-05/1.033, allocations: 59.81 kB / 1.174 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=157): time 3.457e-06/1.033, allocations: 4 kB / 1.174 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=160): time 0.01506/1.049, allocations: 7.525 MB / 1.181 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/1.049, allocations: 72.7 kB / 1.181 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003007/1.052, allocations: 1.864 MB / 1.183 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0003901/1.052, allocations: 53.7 kB / 1.183 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001854/1.054, allocations: 2.127 MB / 1.185 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009652/1.055, allocations: 0.5623 MB / 1.186 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007711/1.056, allocations: 399.8 kB / 1.186 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001119/1.056, allocations: 305.1 kB / 1.186 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/1.057, allocations: 1.062 MB / 1.187 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002302/1.06, allocations: 1.764 MB / 1.189 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00408/1.064, allocations: 3.052 MB / 1.192 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-05/1.064, allocations: 8 kB / 1.192 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006758/1.071, allocations: 3.921 MB / 1.196 GB, free: 6.273 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/1.071, allocations: 16 kB / 1.196 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/1.071, allocations: 24.12 kB / 1.196 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/1.073, allocations: 0.935 MB / 1.197 GB, free: 5.262 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/1.075, allocations: 427.2 kB / 1.197 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02166/1.097, allocations: 22.76 MB / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/1.099, allocations: 127.9 kB / 1.22 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002408/1.099, allocations: 92 kB / 1.22 GB, free: 12.18 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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.003083/1.102, allocations: 1.656 MB / 1.221 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006453/1.103, allocations: 249.1 kB / 1.222 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005742/1.109, allocations: 3.26 MB / 1.225 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/1.109, allocations: 16 kB / 1.225 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/1.109, allocations: 15.94 kB / 1.225 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/1.109, allocations: 7.969 kB / 1.225 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/1.122, allocations: 7.548 MB / 1.232 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/1.122, allocations: 8 kB / 1.232 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009811/1.123, allocations: 220.2 kB / 1.232 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/1.126, allocations: 0.9003 MB / 1.233 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002551/1.126, allocations: 36 kB / 1.233 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6191/1.745, allocations: 22.72 MB / 1.256 GB, free: 200.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/1.745, allocations: 8.344 kB / 1.256 GB, free: 200.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006119/1.751, allocations: 3.381 MB / 1.259 GB, free: 200.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/1.752, allocations: 0.5269 MB / 1.259 GB, free: 199.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003345/1.753, allocations: 36.55 kB / 1.259 GB, free: 199.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/1.754, allocations: 90.95 kB / 1.26 GB, free: 199.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004359/1.754, allocations: 141.8 kB / 1.26 GB, free: 199.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/1.754, allocations: 46.91 kB / 1.26 GB, free: 199.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002037/1.756, allocations: 1.223 MB / 1.261 GB, free: 199.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/1.756, allocations: 0 / 1.261 GB, free: 199.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003291/1.76, allocations: 0.9108 MB / 1.262 GB, free: 199.2 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,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.0002784/1.76, allocations: 156 kB / 1.262 GB, free: 199.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008832/1.769, allocations: 5.206 MB / 1.267 GB, free: 196.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/1.769, allocations: 1.312 kB / 1.267 GB, free: 196.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004247/1.773, allocations: 2.992 MB / 1.27 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004497/1.778, allocations: 0.8273 MB / 1.271 GB, free: 194.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01809/1.796, allocations: 7.679 MB / 1.278 GB, free: 191 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004511/1.8, allocations: 3.211 MB / 1.281 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002469/1.803, allocations: 0.5276 MB / 1.282 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/1.803, allocations: 146.9 kB / 1.282 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.002e-06/1.803, allocations: 0 / 1.282 GB, free: 189.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.06668/1.87, allocations: 42.93 MB / 1.324 GB, free: 157.5 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches