Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 104 kB / 15.6 MB, free: 148 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.001667/0.001667, allocations: 193.9 kB / 16.53 MB, free: 6.617 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.584/1.584, allocations: 222.9 MB / 240.2 MB, free: 4.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.961/2.961, allocations: 482.6 MB / 0.7549 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 70.09 kB / 0.9241 GB, free: 29.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3424, allocations: 162.3 MB / 1.083 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04554/0.388, allocations: 37.96 MB / 1.12 GB, free: 6.848 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0215/0.4095, allocations: 10.99 MB / 1.13 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005136/0.4147, allocations: 159.2 kB / 1.131 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01228/0.4271, allocations: 4.355 MB / 1.135 GB, free: 7.301 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007529/0.4346, allocations: 2.219 MB / 1.137 GB, free: 5.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.008623/0.4433, allocations: 2.169 MB / 1.139 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01405/0.4574, allocations: 9.284 MB / 1.148 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02014/0.4775, allocations: 11.35 MB / 1.159 GB, free: 14.13 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008167/0.4857, allocations: 3.977 MB / 1.163 GB, free: 10.14 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008543/0.4943, allocations: 4.514 MB / 1.168 GB, free: 5.613 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002942/0.4973, allocations: 0.8203 MB / 1.168 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0051/0.5024, allocations: 1.58 MB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.005701/0.5081, allocations: 3.15 MB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.008333/0.5165, allocations: 3.665 MB / 1.177 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01639/0.5329, allocations: 12.23 MB / 1.188 GB, free: 112 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.5329, allocations: 4 kB / 1.188 GB, free: 108 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.313e-06/0.5329, allocations: 0 / 1.188 GB, free: 108 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0004043/0.5334, allocations: 0 / 1.188 GB, free: 108 kB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.0192/0.5526, allocations: 6.314 MB / 1.195 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.5526, allocations: 12.03 kB / 1.195 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006468/0.5591, allocations: 1.067 MB / 1.196 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007924/0.5671, allocations: 3.423 MB / 1.199 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004329/0.5675, allocations: 423.7 kB / 1.199 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00224/0.5698, allocations: 0.5432 MB / 1.2 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02528/0.5951, allocations: 9.381 MB / 1.209 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003181/0.5954, allocations: 23.86 kB / 1.209 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00221/0.5977, allocations: 251.9 kB / 1.209 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008381/0.5985, allocations: 418.9 kB / 1.21 GB, free: 9.805 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.616, allocations: 7.127 MB / 1.217 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6274/1.243, allocations: 41.3 MB / 1.257 GB, free: 138.4 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005314/1.249, allocations: 3.104 MB / 1.26 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003264/1.252, allocations: 2.141 MB / 1.262 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/1.252, allocations: 27.03 kB / 1.262 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/1.252, allocations: 57.25 kB / 1.262 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 4.649e-06/1.252, allocations: 3.984 kB / 1.262 GB, free: 138.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02384/1.276, allocations: 10.57 MB / 1.273 GB, free: 135.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/1.276, allocations: 74.08 kB / 1.273 GB, free: 135 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/1.279, allocations: 2 MB / 1.275 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000284/1.28, allocations: 63.58 kB / 1.275 GB, free: 134.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001667/1.281, allocations: 2.403 MB / 1.277 GB, free: 132.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007104/1.282, allocations: 0.7328 MB / 1.278 GB, free: 131.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007309/1.283, allocations: 480.3 kB / 1.278 GB, free: 131.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.891e-05/1.283, allocations: 302.6 kB / 1.278 GB, free: 131.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/1.285, allocations: 1.373 MB / 1.28 GB, free: 130.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002375/1.287, allocations: 2.103 MB / 1.282 GB, free: 129.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00479/1.292, allocations: 3.77 MB / 1.286 GB, free: 127.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.76e-05/1.292, allocations: 6.594 kB / 1.286 GB, free: 127.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008975/1.301, allocations: 5.066 MB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.394e-05/1.301, allocations: 14.67 kB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.76e-05/1.301, allocations: 22.84 kB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003664/1.305, allocations: 1.604 MB / 1.292 GB, free: 124.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/1.307, allocations: 450.4 kB / 1.293 GB, free: 124.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/1.326, allocations: 18.58 MB / 1.311 GB, free: 113.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/1.329, allocations: 151.9 kB / 1.311 GB, free: 113.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002816/1.329, allocations: 107.9 kB / 1.311 GB, free: 113.3 MB / 0.9981 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003069/1.332, allocations: 1.934 MB / 1.313 GB, free: 112.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006434/1.333, allocations: 289.9 kB / 1.313 GB, free: 112.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005685/1.339, allocations: 4.454 MB / 1.317 GB, free: 109.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.339, allocations: 27.53 kB / 1.317 GB, free: 109.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/1.339, allocations: 18.72 kB / 1.318 GB, free: 109.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/1.339, allocations: 7.969 kB / 1.318 GB, free: 109.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/1.353, allocations: 9.654 MB / 1.327 GB, free: 104 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/1.353, allocations: 7.688 kB / 1.327 GB, free: 104 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009032/1.354, allocations: 235.5 kB / 1.327 GB, free: 103.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/1.357, allocations: 1.442 MB / 1.329 GB, free: 103.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/1.357, allocations: 33.84 kB / 1.329 GB, free: 103.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01792/1.375, allocations: 18.58 MB / 1.347 GB, free: 86.06 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/1.375, allocations: 4 kB / 1.347 GB, free: 86.06 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00622/1.382, allocations: 4.544 MB / 1.351 GB, free: 81.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/1.383, allocations: 0.6265 MB / 1.352 GB, free: 80.78 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000524/1.384, allocations: 40 kB / 1.352 GB, free: 80.74 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/1.385, allocations: 115.9 kB / 1.352 GB, free: 80.63 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/1.385, allocations: 185.3 kB / 1.352 GB, free: 80.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/1.386, allocations: 64.19 kB / 1.352 GB, free: 80.38 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001525/1.387, allocations: 1.315 MB / 1.353 GB, free: 79.06 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.387, allocations: 7.938 kB / 1.353 GB, free: 79.05 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003772/1.391, allocations: 1.141 MB / 1.355 GB, free: 77.91 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003363/1.391, allocations: 171 kB / 1.355 GB, free: 77.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008435/1.4, allocations: 5.905 MB / 1.361 GB, free: 71.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/1.4, allocations: 4 kB / 1.361 GB, free: 71.79 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00412/1.404, allocations: 2.919 MB / 1.363 GB, free: 68.83 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00645/1.41, allocations: 0.9003 MB / 1.364 GB, free: 67.96 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.427, allocations: 9.389 MB / 1.373 GB, free: 58.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003456/1.43, allocations: 3.694 MB / 1.377 GB, free: 54.77 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002096/1.433, allocations: 0.5556 MB / 1.378 GB, free: 54.21 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/1.433, allocations: 147.4 kB / 1.378 GB, free: 54.07 MB / 0.9981 GB Notification: Performance of SimCode: time 9.42e-07/1.433, allocations: 0 / 1.378 GB, free: 54.07 MB / 0.9981 GB Notification: Performance of Templates: time 0.07457/1.507, allocations: 52.89 MB / 1.429 GB, free: 1.945 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches