Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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.001947/0.001947, 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.002359/0.002359, allocations: 189.8 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.425/1.425, 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.174/3.174, allocations: 0.4893 GB / 0.7884 GB, free: 33.13 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_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N")
translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 69.23 kB / 1.145 GB, free: 30.64 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.32, allocations: 174.9 MB / 1.316 GB, free: 9.699 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.04344/0.3634, allocations: 34.82 MB / 1.35 GB, free: 6.766 MB / 1.045 GB
Notification: Performance of NFInst.instExpressions: time 0.02497/0.3884, allocations: 15.26 MB / 1.365 GB, free: 7.461 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.003461/0.3918, allocations: 202.4 kB / 1.365 GB, free: 7.262 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 0.01045/0.4023, allocations: 3.823 MB / 1.369 GB, free: 3.43 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 0.009144/0.4114, allocations: 3.015 MB / 1.372 GB, free: 408 kB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.009054/0.4205, allocations: 2.388 MB / 1.374 GB, free: 14.01 MB / 1.076 GB
Notification: Performance of NFFlatten.flatten: time 0.01436/0.4348, allocations: 8.82 MB / 1.383 GB, free: 5.16 MB / 1.076 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.009321/0.4442, allocations: 5.099 MB / 1.388 GB, free: 15.94 MB / 1.092 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.00755/0.4517, allocations: 4.063 MB / 1.392 GB, free: 11.87 MB / 1.092 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.007922/0.4596, allocations: 4.268 MB / 1.396 GB, free: 7.586 MB / 1.092 GB
Notification: Performance of NFPackage.collectConstants: time 0.002343/0.462, allocations: 0.7187 MB / 1.397 GB, free: 6.867 MB / 1.092 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.005885/0.4679, allocations: 1.755 MB / 1.398 GB, free: 5.109 MB / 1.092 GB
Notification: Performance of NFScalarize.scalarize: time 0.0047/0.4726, allocations: 2.887 MB / 1.401 GB, free: 2.215 MB / 1.092 GB
Notification: Performance of NFVerifyModel.verify: time 0.0069/0.4795, allocations: 3.396 MB / 1.404 GB, free: 14.8 MB / 1.107 GB
Notification: Performance of NFConvertDAE.convert: time 0.01698/0.4964, allocations: 11.22 MB / 1.415 GB, free: 3.551 MB / 1.107 GB
Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.4965, allocations: 0 / 1.415 GB, free: 3.551 MB / 1.107 GB
Notification: Performance of FrontEnd: time 2.535e-06/0.4965, allocations: 0 / 1.415 GB, free: 3.551 MB / 1.107 GB
Notification: Performance of Transformations before backend: time 0.0004163/0.4969, allocations: 3.938 kB / 1.415 GB, free: 3.547 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: 1338
 * Number of variables: 1338
Notification: Performance of Generate backend data structure: time 0.01586/0.5127, allocations: 6.061 MB / 1.421 GB, free: 13.42 MB / 1.123 GB
Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.5128, allocations: 8.031 kB / 1.421 GB, free: 13.41 MB / 1.123 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008456/0.5212, allocations: 1.168 MB / 1.422 GB, free: 12.24 MB / 1.123 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.008991/0.5302, allocations: 3.466 MB / 1.426 GB, free: 8.684 MB / 1.123 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004654/0.5307, allocations: 370.4 kB / 1.426 GB, free: 8.32 MB / 1.123 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.001799/0.5325, allocations: 0.4883 MB / 1.427 GB, free: 7.832 MB / 1.123 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01948/0.552, allocations: 8.001 MB / 1.434 GB, free: 15.55 MB / 1.139 GB
Notification: Performance of preOpt findStateOrder (simulation): time 0.000232/0.5522, allocations: 23.83 kB / 1.434 GB, free: 15.53 MB / 1.139 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001385/0.5536, allocations: 216 kB / 1.435 GB, free: 15.32 MB / 1.139 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001155/0.5548, allocations: 441.4 kB / 1.435 GB, free: 14.89 MB / 1.139 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01418/0.5689, allocations: 6.085 MB / 1.441 GB, free: 8.789 MB / 1.139 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04836/0.6173, allocations: 34.65 MB / 1.475 GB, free: 2.949 MB / 1.17 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.003166/0.6205, allocations: 1.913 MB / 1.477 GB, free: 1.031 MB / 1.17 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00279/0.6233, allocations: 1.74 MB / 1.478 GB, free: 15.3 MB / 1.186 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.6234, allocations: 18 kB / 1.478 GB, free: 15.28 MB / 1.186 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.068e-05/0.6235, allocations: 56.5 kB / 1.479 GB, free: 15.21 MB / 1.186 GB
Notification: Performance of pre-optimization done (n=171): time 3.887e-06/0.6235, allocations: 3.938 kB / 1.479 GB, free: 15.21 MB / 1.186 GB
Notification: Performance of matching and sorting (n=276): time 0.1491/0.7725, allocations: 38.71 MB / 1.516 GB, free: 8.441 MB / 1.217 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.7726, allocations: 81.58 kB / 1.516 GB, free: 8.348 MB / 1.217 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003986/0.7766, allocations: 2.278 MB / 1.519 GB, free: 6.055 MB / 1.217 GB
Notification: Performance of collectPreVariables (initialization): time 0.000355/0.7769, allocations: 73.7 kB / 1.519 GB, free: 5.977 MB / 1.217 GB
Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.7788, allocations: 2.334 MB / 1.521 GB, free: 3.621 MB / 1.217 GB
Notification: Performance of collectInitialBindings (initialization): time 0.001083/0.7799, allocations: 0.9876 MB / 1.522 GB, free: 2.625 MB / 1.217 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/0.7811, allocations: 0.5063 MB / 1.522 GB, free: 2.109 MB / 1.217 GB
Notification: Performance of setup shared object (initialization): time 0.0001289/0.7813, allocations: 305.1 kB / 1.523 GB, free: 1.809 MB / 1.217 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/0.7846, allocations: 1.981 MB / 1.525 GB, free: 15.82 MB / 1.232 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.003879/0.7885, allocations: 2.599 MB / 1.527 GB, free: 12.98 MB / 1.232 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/0.7962, allocations: 4.929 MB / 1.532 GB, free: 7.773 MB / 1.232 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.831e-05/0.7963, allocations: 4 kB / 1.532 GB, free: 7.77 MB / 1.232 GB
Notification: Performance of matching and sorting (n=376) (initialization): time 0.01675/0.813, allocations: 7.65 MB / 1.54 GB, free: 52 kB / 1.232 GB
Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.813, allocations: 16.03 kB / 1.54 GB, free: 36 kB / 1.232 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/0.8131, allocations: 16 kB / 1.54 GB, free: 20 kB / 1.232 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/0.8235, allocations: 3.213 MB / 1.543 GB, free: 12.79 MB / 1.248 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/0.8253, allocations: 403.3 kB / 1.543 GB, free: 12.39 MB / 1.248 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05003/0.8753, allocations: 33.3 MB / 1.576 GB, free: 10.4 MB / 1.279 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003044/0.8784, allocations: 167.8 kB / 1.576 GB, free: 10.23 MB / 1.279 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004392/0.8788, allocations: 108 kB / 1.576 GB, free: 10.13 MB / 1.279 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 (202):
 * Single equations (assignments): 196
 * 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
   {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.003553/0.8824, allocations: 1.794 MB / 1.578 GB, free: 8.324 MB / 1.279 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008463/0.8832, allocations: 341.9 kB / 1.578 GB, free: 7.988 MB / 1.279 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01534/0.8985, allocations: 7.243 MB / 1.585 GB, free: 0.6602 MB / 1.279 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-05/0.8986, allocations: 24 kB / 1.585 GB, free: 0.6367 MB / 1.279 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.326e-05/0.8987, allocations: 32 kB / 1.585 GB, free: 0.6055 MB / 1.279 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.951e-05/0.8987, allocations: 11.95 kB / 1.585 GB, free: 0.5938 MB / 1.279 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02705/0.9258, allocations: 12.79 MB / 1.598 GB, free: 3.637 MB / 1.295 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.338e-05/0.9258, allocations: 7.938 kB / 1.598 GB, free: 3.629 MB / 1.295 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.9269, allocations: 235.6 kB / 1.598 GB, free: 3.398 MB / 1.295 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.008848/0.9358, allocations: 2.854 MB / 1.601 GB, free: 0.5273 MB / 1.295 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004463/0.9362, allocations: 52 kB / 1.601 GB, free: 488 kB / 1.295 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6965/1.633, allocations: 32.07 MB / 1.632 GB, free: 270.9 MB / 1.311 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.481e-05/1.633, allocations: 12.06 kB / 1.632 GB, free: 270.9 MB / 1.311 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01311/1.646, allocations: 6.791 MB / 1.639 GB, free: 268.2 MB / 1.311 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.002189/1.648, allocations: 0.7203 MB / 1.639 GB, free: 268 MB / 1.311 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006683/1.649, allocations: 53.28 kB / 1.639 GB, free: 267.9 MB / 1.311 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/1.651, allocations: 167 kB / 1.64 GB, free: 267.9 MB / 1.311 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001029/1.652, allocations: 272.2 kB / 1.64 GB, free: 267.8 MB / 1.311 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/1.652, allocations: 77.28 kB / 1.64 GB, free: 267.8 MB / 1.311 GB
Notification: Performance of sorting global known variables: time 0.002477/1.654, allocations: 1.522 MB / 1.641 GB, free: 267.2 MB / 1.311 GB
Notification: Performance of sort global known variables: time 1.7e-07/1.654, allocations: 3.688 kB / 1.641 GB, free: 267.2 MB / 1.311 GB
Notification: Performance of remove unused functions: time 0.004844/1.659, allocations: 1.369 MB / 1.643 GB, free: 267.1 MB / 1.311 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 (105):
 * Single equations (assignments): 99
 * 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
   {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004764/1.66, allocations: 177 kB / 1.643 GB, free: 267 MB / 1.311 GB
Notification: Performance of simCode: created initialization part: time 0.01127/1.671, allocations: 6.557 MB / 1.649 GB, free: 264.1 MB / 1.311 GB
Notification: Performance of simCode: created event and clocks part: time 1.889e-05/1.671, allocations: 4.594 kB / 1.649 GB, free: 264.1 MB / 1.311 GB
Notification: Performance of simCode: created simulation system equations: time 0.007099/1.678, allocations: 4.252 MB / 1.653 GB, free: 262.1 MB / 1.311 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005057/1.683, allocations: 1.108 MB / 1.654 GB, free: 261.7 MB / 1.311 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/1.701, allocations: 10.38 MB / 1.665 GB, free: 257.2 MB / 1.311 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003976/1.705, allocations: 3.638 MB / 1.668 GB, free: 255.9 MB / 1.311 GB
Notification: Performance of simCode: alias equations: time 0.002008/1.707, allocations: 0.5597 MB / 1.669 GB, free: 255.7 MB / 1.311 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000395/1.708, allocations: 153.1 kB / 1.669 GB, free: 255.7 MB / 1.311 GB
Notification: Performance of SimCode: time 1.082e-06/1.708, allocations: 3.906 kB / 1.669 GB, free: 255.7 MB / 1.311 GB
Notification: Performance of Templates: time 0.1077/1.815, allocations: 79.45 MB / 1.746 GB, free: 182.2 MB / 1.311 GB
"
[Timeout remaining time 298]
make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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: 12.391969846561551]