Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008921/0.008922, allocations: 102.7 kB / 15.73 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001732/0.001733, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.117 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.477/2.477, allocations: 390.2 MB / 0.6648 GB, free: 124 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.06 kB / 0.9509 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3352, allocations: 140.4 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02474/0.36, allocations: 23.4 MB / 1.111 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01154/0.3716, allocations: 6.488 MB / 1.117 GB, free: 3.461 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.3742, allocations: 99.5 kB / 1.117 GB, free: 3.363 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004382/0.3786, allocations: 1.493 MB / 1.119 GB, free: 1.863 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005437/0.3841, allocations: 1.832 MB / 1.12 GB, free: 24 kB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003893/0.388, allocations: 1.452 MB / 1.122 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008314/0.3963, allocations: 6.912 MB / 1.129 GB, free: 7.645 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008557/0.4049, allocations: 6.941 MB / 1.135 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004927/0.4099, allocations: 2.882 MB / 1.138 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005922/0.4158, allocations: 3.47 MB / 1.142 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001831/0.4177, allocations: 0.5273 MB / 1.142 GB, free: 9.711 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.4213, allocations: 1.17 MB / 1.143 GB, free: 8.539 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.004312/0.4257, allocations: 2.468 MB / 1.146 GB, free: 6.066 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.006206/0.4319, allocations: 2.536 MB / 1.148 GB, free: 3.52 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.4434, allocations: 8.515 MB / 1.156 GB, free: 10.98 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.4434, allocations: 0 / 1.156 GB, free: 10.98 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4434, allocations: 0 / 1.156 GB, free: 10.98 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0002764/0.4437, allocations: 0 / 1.156 GB, free: 10.98 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01441/0.4581, allocations: 4.439 MB / 1.161 GB, free: 6.473 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.4582, allocations: 8.031 kB / 1.161 GB, free: 6.465 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.4741, allocations: 1.677 MB / 1.162 GB, free: 4.781 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01153/0.4857, allocations: 2.696 MB / 1.165 GB, free: 2.031 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000425/0.4862, allocations: 275.7 kB / 1.165 GB, free: 1.762 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001935/0.4881, allocations: 364.2 kB / 1.166 GB, free: 1.406 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02117/0.5093, allocations: 7.491 MB / 1.173 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/0.5095, allocations: 19.88 kB / 1.173 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006858/0.5102, allocations: 155.9 kB / 1.173 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005876/0.5108, allocations: 487.3 kB / 1.174 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/0.5213, allocations: 5.701 MB / 1.179 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03828/0.5596, allocations: 31.49 MB / 1.21 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003162/0.5628, allocations: 2.1 MB / 1.212 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002856/0.5657, allocations: 2.174 MB / 1.214 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.5659, allocations: 17.31 kB / 1.214 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/0.5659, allocations: 51.88 kB / 1.214 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=146): time 3.867e-06/0.5659, allocations: 0 / 1.214 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=251): time 1.061/1.627, allocations: 77.02 MB / 1.289 GB, free: 153.4 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.171e-05/1.627, allocations: 77.38 kB / 1.29 GB, free: 153.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00359/1.63, allocations: 1.668 MB / 1.291 GB, free: 152.4 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0006261/1.631, allocations: 66.8 kB / 1.291 GB, free: 152.4 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001195/1.632, allocations: 1.744 MB / 1.293 GB, free: 150.8 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.001099/1.633, allocations: 0.8598 MB / 1.294 GB, free: 150.1 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001091/1.634, allocations: 485.8 kB / 1.294 GB, free: 149.8 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 4.987e-05/1.634, allocations: 302.6 kB / 1.294 GB, free: 149.6 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003337/1.638, allocations: 2.73 MB / 1.297 GB, free: 148.1 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/1.641, allocations: 3.331 MB / 1.3 GB, free: 145.9 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006511/1.647, allocations: 6.395 MB / 1.307 GB, free: 142.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/1.648, allocations: 7.875 kB / 1.307 GB, free: 142.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.02808/1.676, allocations: 14.68 MB / 1.321 GB, free: 128.5 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/1.676, allocations: 12 kB / 1.321 GB, free: 128.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.618e-05/1.676, allocations: 16 kB / 1.321 GB, free: 128.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0265/1.702, allocations: 9.239 MB / 1.33 GB, free: 119.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/1.703, allocations: 303.4 kB / 1.33 GB, free: 118.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06535/1.769, allocations: 52.34 MB / 1.381 GB, free: 65.73 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/1.772, allocations: 227.7 kB / 1.382 GB, free: 65.51 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002577/1.772, allocations: 96 kB / 1.382 GB, free: 65.42 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002455/1.775, allocations: 1.582 MB / 1.383 GB, free: 63.82 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005339/1.775, allocations: 245.1 kB / 1.384 GB, free: 63.58 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02848/1.804, allocations: 14.75 MB / 1.398 GB, free: 48.77 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/1.804, allocations: 24 kB / 1.398 GB, free: 48.75 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001448/1.804, allocations: 48 kB / 1.398 GB, free: 48.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.644e-05/1.804, allocations: 11.95 kB / 1.398 GB, free: 48.69 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03915/1.843, allocations: 20.51 MB / 1.418 GB, free: 28.03 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-05/1.843, allocations: 4 kB / 1.418 GB, free: 28.03 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007538/1.844, allocations: 167.7 kB / 1.418 GB, free: 27.86 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02741/1.872, allocations: 9.006 MB / 1.427 GB, free: 18.83 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006652/1.872, allocations: 52.75 kB / 1.427 GB, free: 18.78 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07735/1.95, allocations: 51.9 MB / 1.478 GB, free: 14.04 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/1.95, allocations: 12.05 kB / 1.478 GB, free: 14.03 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03694/1.987, allocations: 14.37 MB / 1.492 GB, free: 15.52 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003478/1.99, allocations: 0.8492 MB / 1.493 GB, free: 14.65 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007963/1.991, allocations: 48 kB / 1.493 GB, free: 14.61 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002521/1.993, allocations: 207.7 kB / 1.493 GB, free: 14.4 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001543/1.995, allocations: 241.3 kB / 1.493 GB, free: 14.17 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002396/1.995, allocations: 69.03 kB / 1.493 GB, free: 14.1 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001829/1.997, allocations: 1.121 MB / 1.494 GB, free: 12.96 MB / 1.076 GB Notification: Performance of sort global known variables: time 2.745e-06/1.997, allocations: 0 / 1.494 GB, free: 12.96 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.006621/2.004, allocations: 1.621 MB / 1.496 GB, free: 11.34 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006906/2.004, allocations: 163 kB / 1.496 GB, free: 11.17 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.02575/2.03, allocations: 10.57 MB / 1.506 GB, free: 0.5508 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/2.03, allocations: 0.875 kB / 1.506 GB, free: 0.5508 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0194/2.05, allocations: 7.292 MB / 1.513 GB, free: 9.199 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003537/2.053, allocations: 0.5679 MB / 1.514 GB, free: 8.652 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01781/2.071, allocations: 8.692 MB / 1.522 GB, free: 15.9 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004175/2.075, allocations: 3.23 MB / 1.526 GB, free: 12.64 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001223/2.077, allocations: 391.3 kB / 1.526 GB, free: 12.25 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/2.077, allocations: 99.44 kB / 1.526 GB, free: 12.15 MB / 1.107 GB Notification: Performance of SimCode: time 1.784e-06/2.077, allocations: 0 / 1.526 GB, free: 12.15 MB / 1.107 GB Notification: Performance of Templates: time 0.1524/2.229, allocations: 95.66 MB / 1.62 GB, free: 12.77 MB / 1.201 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches