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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002164/0.002164, allocations: 192.4 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.159/3.159, allocations: 0.4893 GB / 0.7884 GB, free: 33.28 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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=2500,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=2500,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") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 74.25 kB / 1.145 GB, free: 30.65 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3169, allocations: 174.9 MB / 1.316 GB, free: 9.668 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.0444/0.3613, allocations: 36.81 MB / 1.352 GB, free: 4.742 MB / 1.045 GB
Notification: Performance of NFInst.instExpressions: time 0.01809/0.3794, allocations: 10.3 MB / 1.362 GB, free: 10.41 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.003348/0.3828, allocations: 194.6 kB / 1.362 GB, free: 10.22 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 0.01071/0.3935, allocations: 3.972 MB / 1.366 GB, free: 6.238 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 0.006449/0.3999, allocations: 2.149 MB / 1.368 GB, free: 4.078 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.007505/0.4074, allocations: 2.033 MB / 1.37 GB, free: 2.047 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 0.0113/0.4187, allocations: 7.979 MB / 1.378 GB, free: 10.04 MB / 1.076 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.4289, allocations: 4.9 MB / 1.383 GB, free: 5.02 MB / 1.076 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.006636/0.4355, allocations: 3.47 MB / 1.386 GB, free: 1.539 MB / 1.076 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.007619/0.4432, allocations: 3.941 MB / 1.39 GB, free: 13.59 MB / 1.092 GB
Notification: Performance of NFPackage.collectConstants: time 0.002642/0.4458, allocations: 0.6835 MB / 1.391 GB, free: 12.9 MB / 1.092 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.004703/0.4505, allocations: 1.463 MB / 1.392 GB, free: 11.44 MB / 1.092 GB
Notification: Performance of NFScalarize.scalarize: time 0.004829/0.4553, allocations: 2.677 MB / 1.395 GB, free: 8.754 MB / 1.092 GB
Notification: Performance of NFVerifyModel.verify: time 0.007238/0.4626, allocations: 3.104 MB / 1.398 GB, free: 5.637 MB / 1.092 GB
Notification: Performance of NFConvertDAE.convert: time 0.01449/0.4771, allocations: 10.42 MB / 1.408 GB, free: 11.19 MB / 1.107 GB
Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4771, allocations: 0 / 1.408 GB, free: 11.19 MB / 1.107 GB
Notification: Performance of FrontEnd: time 1.713e-06/0.4771, allocations: 0 / 1.408 GB, free: 11.19 MB / 1.107 GB
Notification: Performance of Transformations before backend: time 0.0002942/0.4774, allocations: 4 kB / 1.408 GB, free: 11.18 MB / 1.107 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.01419/0.4916, allocations: 5.459 MB / 1.413 GB, free: 5.664 MB / 1.107 GB
Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.4916, allocations: 12.03 kB / 1.413 GB, free: 5.652 MB / 1.107 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005893/0.4975, allocations: 0.9851 MB / 1.414 GB, free: 4.664 MB / 1.107 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.007708/0.5052, allocations: 3.128 MB / 1.417 GB, free: 1.469 MB / 1.107 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000334/0.5056, allocations: 357.9 kB / 1.418 GB, free: 1.117 MB / 1.107 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.507, allocations: 476.2 kB / 1.418 GB, free: 0.6523 MB / 1.107 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.5242, allocations: 7.91 MB / 1.426 GB, free: 8.379 MB / 1.123 GB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.5243, allocations: 19.81 kB / 1.426 GB, free: 8.359 MB / 1.123 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007905/0.5251, allocations: 208 kB / 1.426 GB, free: 8.156 MB / 1.123 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005538/0.5257, allocations: 369.1 kB / 1.426 GB, free: 7.793 MB / 1.123 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/0.5386, allocations: 5.937 MB / 1.432 GB, free: 1.84 MB / 1.123 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04786/0.5865, allocations: 35.7 MB / 1.467 GB, free: 10.9 MB / 1.17 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.00355/0.59, allocations: 1.986 MB / 1.469 GB, free: 8.898 MB / 1.17 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/0.592, allocations: 1.336 MB / 1.47 GB, free: 7.562 MB / 1.17 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.5921, allocations: 13.31 kB / 1.47 GB, free: 7.547 MB / 1.17 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.095e-05/0.5922, allocations: 55.81 kB / 1.47 GB, free: 7.484 MB / 1.17 GB
Notification: Performance of pre-optimization done (n=157): time 3.706e-06/0.5922, allocations: 0 / 1.47 GB, free: 7.484 MB / 1.17 GB
Notification: Performance of matching and sorting (n=160): time 0.0143/0.6065, allocations: 6.671 MB / 1.477 GB, free: 0.7695 MB / 1.17 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.6066, allocations: 68.72 kB / 1.477 GB, free: 0.6914 MB / 1.17 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.6094, allocations: 1.864 MB / 1.479 GB, free: 14.8 MB / 1.186 GB
Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.6096, allocations: 53.7 kB / 1.479 GB, free: 14.74 MB / 1.186 GB
Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.6113, allocations: 2.2 MB / 1.481 GB, free: 12.52 MB / 1.186 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0005888/0.6118, allocations: 0.5849 MB / 1.482 GB, free: 11.93 MB / 1.186 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006354/0.6125, allocations: 400 kB / 1.482 GB, free: 11.54 MB / 1.186 GB
Notification: Performance of setup shared object (initialization): time 0.0001347/0.6126, allocations: 309.1 kB / 1.482 GB, free: 11.23 MB / 1.186 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/0.6143, allocations: 1.055 MB / 1.483 GB, free: 10.17 MB / 1.186 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/0.6166, allocations: 1.764 MB / 1.485 GB, free: 8.086 MB / 1.186 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.004173/0.6208, allocations: 3.052 MB / 1.488 GB, free: 4.723 MB / 1.186 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.6208, allocations: 4 kB / 1.488 GB, free: 4.719 MB / 1.186 GB
Notification: Performance of matching and sorting (n=281) (initialization): time 0.007006/0.6278, allocations: 3.906 MB / 1.492 GB, free: 0.7656 MB / 1.186 GB
Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.6278, allocations: 16 kB / 1.492 GB, free: 0.75 MB / 1.186 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.009e-05/0.6278, allocations: 24.88 kB / 1.492 GB, free: 0.7266 MB / 1.186 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002601/0.6304, allocations: 0.935 MB / 1.493 GB, free: 15.75 MB / 1.201 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.632, allocations: 431.2 kB / 1.493 GB, free: 15.33 MB / 1.201 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02237/0.6544, allocations: 21.54 MB / 1.514 GB, free: 8.418 MB / 1.217 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.6566, allocations: 124 kB / 1.514 GB, free: 8.297 MB / 1.217 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003179/0.6569, allocations: 95.98 kB / 1.514 GB, free: 8.203 MB / 1.217 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.002962/0.6599, allocations: 1.653 MB / 1.516 GB, free: 6.539 MB / 1.217 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006298/0.6605, allocations: 266.4 kB / 1.516 GB, free: 6.277 MB / 1.217 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005953/0.6665, allocations: 3.221 MB / 1.519 GB, free: 3.004 MB / 1.217 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.6665, allocations: 16 kB / 1.519 GB, free: 2.988 MB / 1.217 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.527e-05/0.6665, allocations: 20 kB / 1.519 GB, free: 2.969 MB / 1.217 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/0.6665, allocations: 7.969 kB / 1.519 GB, free: 2.961 MB / 1.217 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/0.6804, allocations: 7.505 MB / 1.527 GB, free: 11.31 MB / 1.232 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.6804, allocations: 4 kB / 1.527 GB, free: 11.3 MB / 1.232 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00099/0.6814, allocations: 219.6 kB / 1.527 GB, free: 11.09 MB / 1.232 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002562/0.684, allocations: 0.8965 MB / 1.528 GB, free: 10.16 MB / 1.232 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/0.6842, allocations: 28 kB / 1.528 GB, free: 10.13 MB / 1.232 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0225/0.7067, allocations: 21.52 MB / 1.549 GB, free: 3.227 MB / 1.248 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/0.7067, allocations: 11.92 kB / 1.549 GB, free: 3.215 MB / 1.248 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006016/0.7127, allocations: 3.373 MB / 1.552 GB, free: 15.73 MB / 1.264 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001501/0.7142, allocations: 470.2 kB / 1.553 GB, free: 15.27 MB / 1.264 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003723/0.7146, allocations: 35.94 kB / 1.553 GB, free: 15.23 MB / 1.264 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.7156, allocations: 91.83 kB / 1.553 GB, free: 15.14 MB / 1.264 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004412/0.7161, allocations: 156.9 kB / 1.553 GB, free: 14.99 MB / 1.264 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.7162, allocations: 40 kB / 1.553 GB, free: 14.95 MB / 1.264 GB
Notification: Performance of sorting global known variables: time 0.001838/0.718, allocations: 1.229 MB / 1.554 GB, free: 13.71 MB / 1.264 GB
Notification: Performance of sort global known variables: time 1.61e-07/0.718, allocations: 0 / 1.554 GB, free: 13.71 MB / 1.264 GB
Notification: Performance of remove unused functions: time 0.003056/0.7211, allocations: 0.9062 MB / 1.555 GB, free: 12.8 MB / 1.264 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.0003259/0.7214, allocations: 151.6 kB / 1.555 GB, free: 12.64 MB / 1.264 GB
Notification: Performance of simCode: created initialization part: time 0.006934/0.7283, allocations: 4.283 MB / 1.559 GB, free: 8.207 MB / 1.264 GB
Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.7283, allocations: 4.938 kB / 1.559 GB, free: 8.203 MB / 1.264 GB
Notification: Performance of simCode: created simulation system equations: time 0.00452/0.7329, allocations: 2.917 MB / 1.562 GB, free: 5.129 MB / 1.264 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/0.7366, allocations: 0.8231 MB / 1.563 GB, free: 4.324 MB / 1.264 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/0.7517, allocations: 7.833 MB / 1.571 GB, free: 12.4 MB / 1.279 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004065/0.7558, allocations: 3.205 MB / 1.574 GB, free: 9.16 MB / 1.279 GB
Notification: Performance of simCode: alias equations: time 0.001931/0.7577, allocations: 0.5215 MB / 1.574 GB, free: 8.633 MB / 1.279 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/0.7581, allocations: 143.4 kB / 1.574 GB, free: 8.492 MB / 1.279 GB
Notification: Performance of SimCode: time 1.022e-06/0.7581, allocations: 4 kB / 1.574 GB, free: 8.488 MB / 1.279 GB
Notification: Performance of Templates: time 0.6926/1.451, allocations: 43.52 MB / 1.617 GB, free: 275.4 MB / 1.311 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile [Timeout 300]
(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=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) [Timeout 800]
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) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 11.18733879365027]