Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001533/0.001532, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.673/2.673, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001846, allocations: 76.47 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.705/0.7069, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.05105/0.758, allocations: 41.19 MB / 1.123 GB, free: 5.637 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.03018/0.7882, allocations: 15.07 MB / 1.138 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006506/0.7948, allocations: 187.7 kB / 1.138 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.8072, allocations: 4.464 MB / 1.142 GB, free: 7.945 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.009844/0.8171, allocations: 2.796 MB / 1.145 GB, free: 5.613 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00991/0.8271, allocations: 3.155 MB / 1.148 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01715/0.8442, allocations: 11.4 MB / 1.159 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02366/0.8679, allocations: 12.65 MB / 1.172 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01021/0.8782, allocations: 4.798 MB / 1.176 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01025/0.8885, allocations: 5.382 MB / 1.182 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.003667/0.8922, allocations: 0.9492 MB / 1.183 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007167/0.8994, allocations: 2.036 MB / 1.185 GB, free: 6.566 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.007078/0.9065, allocations: 3.692 MB / 1.188 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.01165/0.9182, allocations: 4.299 MB / 1.192 GB, free: 14.54 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.02147/0.9397, allocations: 14.18 MB / 1.206 GB, free: 332 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.9397, allocations: 7.875 kB / 1.206 GB, free: 324 kB / 0.92 GB Notification: Performance of FrontEnd: time 1.873e-06/0.9397, allocations: 0 / 1.206 GB, free: 324 kB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0004625/0.9402, allocations: 0 / 1.206 GB, free: 324 kB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02378/0.964, allocations: 7.589 MB / 1.214 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.9641, allocations: 12.03 kB / 1.214 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/0.9758, allocations: 1.526 MB / 1.215 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.9861, allocations: 4.201 MB / 1.219 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005669/0.9867, allocations: 452.5 kB / 1.22 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00288/0.9896, allocations: 0.6095 MB / 1.22 GB, free: 1.766 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02702/1.017, allocations: 10.69 MB / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003259/1.017, allocations: 23.78 kB / 1.231 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00221/1.019, allocations: 263.9 kB / 1.231 GB, free: 6.422 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003277/1.023, allocations: 0.7729 MB / 1.232 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0194/1.042, allocations: 8.561 MB / 1.24 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07257/1.115, allocations: 46.85 MB / 1.286 GB, free: 10.45 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00694/1.122, allocations: 4.314 MB / 1.29 GB, free: 6.129 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006147/1.128, allocations: 3.705 MB / 1.294 GB, free: 2.414 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003951/1.128, allocations: 38.78 kB / 1.294 GB, free: 2.375 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.668e-05/1.128, allocations: 73.34 kB / 1.294 GB, free: 2.293 MB / 1.014 GB Notification: Performance of pre-optimization done (n=353): time 5.911e-06/1.128, allocations: 0 / 1.294 GB, free: 2.293 MB / 1.014 GB Notification: Performance of matching and sorting (n=578): time 0.5196/1.648, allocations: 122.8 MB / 1.414 GB, free: 6.613 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/1.648, allocations: 111.9 kB / 1.414 GB, free: 6.488 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004981/1.653, allocations: 2.681 MB / 1.416 GB, free: 3.809 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.001175/1.654, allocations: 125.7 kB / 1.417 GB, free: 3.68 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.002343/1.657, allocations: 2.675 MB / 1.419 GB, free: 0.9727 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003016/1.66, allocations: 1.956 MB / 1.421 GB, free: 14.98 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003346/1.663, allocations: 0.9287 MB / 1.422 GB, free: 14.05 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.000136/1.663, allocations: 301.1 kB / 1.422 GB, free: 13.75 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006844/1.67, allocations: 4.079 MB / 1.426 GB, free: 9.664 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007869/1.678, allocations: 5.015 MB / 1.431 GB, free: 4.328 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01584/1.694, allocations: 9.848 MB / 1.441 GB, free: 10.1 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.215e-05/1.694, allocations: 8 kB / 1.441 GB, free: 10.09 MB / 1.17 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04243/1.736, allocations: 17 MB / 1.457 GB, free: 8.953 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/1.736, allocations: 14.34 kB / 1.457 GB, free: 8.941 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.915e-05/1.736, allocations: 24 kB / 1.457 GB, free: 8.918 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03302/1.769, allocations: 9.151 MB / 1.466 GB, free: 15.73 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002616/1.772, allocations: 0.5265 MB / 1.467 GB, free: 15.2 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1222/1.894, allocations: 77.01 MB / 1.542 GB, free: 0.5938 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005057/1.899, allocations: 283.8 kB / 1.542 GB, free: 324 kB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001221/1.901, allocations: 192 kB / 1.543 GB, free: 132 kB / 1.264 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.5352/2.436, allocations: 2.414 MB / 1.545 GB, free: 399.9 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00131/2.437, allocations: 470.4 kB / 1.545 GB, free: 399.9 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03726/2.474, allocations: 16.83 MB / 1.562 GB, free: 397.3 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.527e-05/2.475, allocations: 53.91 kB / 1.562 GB, free: 397.3 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002244/2.475, allocations: 71.91 kB / 1.562 GB, free: 397.3 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001131/2.475, allocations: 27.52 kB / 1.562 GB, free: 397.3 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0496/2.524, allocations: 25.64 MB / 1.587 GB, free: 387.4 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.628e-05/2.525, allocations: 10.69 kB / 1.587 GB, free: 387.4 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/2.526, allocations: 323.3 kB / 1.587 GB, free: 387.3 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02727/2.554, allocations: 8.343 MB / 1.595 GB, free: 385.4 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001004/2.555, allocations: 102.2 kB / 1.596 GB, free: 385.4 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07722/2.632, allocations: 73.9 MB / 1.668 GB, free: 326 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/2.632, allocations: 11.94 kB / 1.668 GB, free: 326 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0349/2.667, allocations: 21.57 MB / 1.689 GB, free: 304 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002995/2.67, allocations: 1.354 MB / 1.69 GB, free: 302.7 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009173/2.671, allocations: 111.9 kB / 1.69 GB, free: 302.5 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003096/2.674, allocations: 291.6 kB / 1.69 GB, free: 302.3 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001678/2.676, allocations: 0.526 MB / 1.691 GB, free: 301.7 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003407/2.676, allocations: 144 kB / 1.691 GB, free: 301.6 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.001928/2.678, allocations: 1.776 MB / 1.693 GB, free: 299.8 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.9e-07/2.678, allocations: 0 / 1.693 GB, free: 299.8 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.005843/2.684, allocations: 2.461 MB / 1.695 GB, free: 297.4 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005282/2.684, allocations: 242 kB / 1.696 GB, free: 297.1 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.02693/2.711, allocations: 18.67 MB / 1.714 GB, free: 278.3 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/2.711, allocations: 4 kB / 1.714 GB, free: 278.3 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.01496/2.726, allocations: 9.359 MB / 1.723 GB, free: 268.8 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007155/2.733, allocations: 1.372 MB / 1.724 GB, free: 267.5 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02787/2.761, allocations: 16.65 MB / 1.74 GB, free: 250.7 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006702/2.768, allocations: 4.991 MB / 1.745 GB, free: 245.7 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/2.769, allocations: 211.4 kB / 1.746 GB, free: 245.5 MB / 1.264 GB Notification: Performance of SimCode: time 1.052e-06/2.769, allocations: 0 / 1.746 GB, free: 245.5 MB / 1.264 GB Notification: Performance of Templates: time 0.9199/3.689, allocations: 474.6 MB / 2.209 GB, free: 315.7 MB / 1.326 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches