Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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,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") 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_latest_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.001699/0.001699, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00208/0.00208, allocations: 194.5 kB / 16.25 MB, free: 6.621 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.621/1.621, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.973/2.973, allocations: 482.2 MB / 0.7542 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 67.81 kB / 0.9232 GB, free: 29.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3465, allocations: 162.2 MB / 1.082 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04194/0.3885, allocations: 34.81 MB / 1.116 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02249/0.411, allocations: 9.851 MB / 1.125 GB, free: 0.9336 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005109/0.4161, allocations: 131.3 kB / 1.125 GB, free: 0.8047 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.4268, allocations: 3.566 MB / 1.129 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007515/0.4344, allocations: 1.882 MB / 1.131 GB, free: 11.34 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.005981/0.4404, allocations: 1.788 MB / 1.132 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01245/0.4528, allocations: 7.998 MB / 1.14 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01943/0.4723, allocations: 11.71 MB / 1.152 GB, free: 5.723 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006809/0.4791, allocations: 3.427 MB / 1.155 GB, free: 2.285 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006977/0.4862, allocations: 3.898 MB / 1.159 GB, free: 14.38 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002774/0.489, allocations: 0.6797 MB / 1.159 GB, free: 13.7 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004821/0.4938, allocations: 1.447 MB / 1.161 GB, free: 12.25 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.004502/0.4984, allocations: 2.616 MB / 1.163 GB, free: 9.625 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.006371/0.5048, allocations: 3.104 MB / 1.166 GB, free: 6.508 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01231/0.5171, allocations: 10.38 MB / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.5171, allocations: 0 / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.168e-06/0.5172, allocations: 0 / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0003165/0.5175, allocations: 7.938 kB / 1.177 GB, free: 12.09 MB / 0.9356 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.01482/0.5323, allocations: 5.401 MB / 1.182 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.5324, allocations: 16.03 kB / 1.182 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005472/0.5379, allocations: 0.9548 MB / 1.183 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006025/0.5439, allocations: 2.999 MB / 1.186 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/0.5443, allocations: 357.9 kB / 1.186 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.5455, allocations: 468.2 kB / 1.187 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01439/0.5599, allocations: 7.902 MB / 1.194 GB, free: 9.512 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/0.56, allocations: 15.88 kB / 1.194 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005535/0.5606, allocations: 212 kB / 1.195 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005388/0.5612, allocations: 369.1 kB / 1.195 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01076/0.5719, allocations: 5.941 MB / 1.201 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04058/0.6125, allocations: 36.22 MB / 1.236 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003839/0.6164, allocations: 2.139 MB / 1.238 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002214/0.6187, allocations: 1.484 MB / 1.24 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.6188, allocations: 17.3 kB / 1.24 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.919e-05/0.6189, allocations: 55.81 kB / 1.24 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=157): time 4.479e-06/0.6189, allocations: 0 / 1.24 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of matching and sorting (n=160): time 0.6817/1.301, allocations: 7.532 MB / 1.247 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/1.301, allocations: 72.58 kB / 1.247 GB, free: 154.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/1.304, allocations: 1.858 MB / 1.249 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004147/1.305, allocations: 54.98 kB / 1.249 GB, free: 154.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001601/1.306, allocations: 2.125 MB / 1.251 GB, free: 153.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000662/1.307, allocations: 0.5565 MB / 1.252 GB, free: 152.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007613/1.308, allocations: 402.8 kB / 1.252 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.722e-05/1.308, allocations: 302 kB / 1.252 GB, free: 152.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/1.31, allocations: 1.063 MB / 1.253 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002189/1.312, allocations: 1.76 MB / 1.255 GB, free: 150.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004065/1.316, allocations: 3.05 MB / 1.258 GB, free: 148.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.18e-05/1.316, allocations: 6.469 kB / 1.258 GB, free: 148.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006758/1.323, allocations: 3.924 MB / 1.262 GB, free: 147.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/1.323, allocations: 15.22 kB / 1.262 GB, free: 147.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.043e-05/1.323, allocations: 26.22 kB / 1.262 GB, free: 147.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00262/1.325, allocations: 0.9345 MB / 1.263 GB, free: 146.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/1.327, allocations: 424.2 kB / 1.263 GB, free: 146.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01877/1.346, allocations: 22.77 MB / 1.285 GB, free: 127.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/1.349, allocations: 127.8 kB / 1.286 GB, free: 127.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/1.349, allocations: 96.98 kB / 1.286 GB, free: 127.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 (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.003234/1.352, allocations: 1.65 MB / 1.287 GB, free: 126.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006365/1.353, allocations: 255.1 kB / 1.287 GB, free: 126.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005899/1.359, allocations: 3.26 MB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/1.359, allocations: 18.91 kB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.392e-05/1.359, allocations: 8.875 kB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-05/1.359, allocations: 15.98 kB / 1.291 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01363/1.372, allocations: 7.549 MB / 1.298 GB, free: 121.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.373, allocations: 4.219 kB / 1.298 GB, free: 121.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009801/1.374, allocations: 220.6 kB / 1.298 GB, free: 121.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/1.376, allocations: 0.8914 MB / 1.299 GB, free: 121.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/1.376, allocations: 34.19 kB / 1.299 GB, free: 121.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01584/1.392, allocations: 22.75 MB / 1.321 GB, free: 102.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/1.392, allocations: 5.656 kB / 1.321 GB, free: 102.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005302/1.397, allocations: 3.375 MB / 1.325 GB, free: 100.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/1.398, allocations: 0.5316 MB / 1.325 GB, free: 100.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003041/1.399, allocations: 34.34 kB / 1.325 GB, free: 100.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009965/1.4, allocations: 89.55 kB / 1.325 GB, free: 100.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003673/1.4, allocations: 142.6 kB / 1.325 GB, free: 100 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.4, allocations: 51.16 kB / 1.326 GB, free: 100 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00149/1.402, allocations: 1.222 MB / 1.327 GB, free: 99.54 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.402, allocations: 3.938 kB / 1.327 GB, free: 99.54 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002762/1.404, allocations: 0.9054 MB / 1.328 GB, free: 99.46 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.000252/1.405, allocations: 156.7 kB / 1.328 GB, free: 99.34 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006628/1.411, allocations: 5.205 MB / 1.333 GB, free: 96.38 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/1.411, allocations: 0 / 1.333 GB, free: 96.38 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003352/1.415, allocations: 2.994 MB / 1.336 GB, free: 94.09 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00312/1.418, allocations: 0.8175 MB / 1.337 GB, free: 93.68 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/1.43, allocations: 9.705 MB / 1.346 GB, free: 87.44 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002703/1.433, allocations: 3.202 MB / 1.349 GB, free: 84.61 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00214/1.435, allocations: 0.5331 MB / 1.35 GB, free: 84.07 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/1.436, allocations: 143.4 kB / 1.35 GB, free: 83.93 MB / 0.9981 GB Notification: Performance of SimCode: time 8.52e-07/1.436, allocations: 0 / 1.35 GB, free: 83.93 MB / 0.9981 GB Notification: Performance of Templates: time 0.05929/1.495, allocations: 43.16 MB / 1.392 GB, free: 41.43 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches