Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.001347/0.001347, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001424/0.001424, allocations: 191.7 kB / 22.23 MB, free: 5.105 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.387/1.387, allocations: 225.6 MB / 251 MB, free: 13.02 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.038/3.038, allocations: 0.4893 GB / 0.7884 GB, free: 32.9 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.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R")
translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 69.97 kB / 1.145 GB, free: 30.72 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3754, allocations: 174.9 MB / 1.316 GB, free: 9.695 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009802/0.3852, allocations: 7 MB / 1.323 GB, free: 2.668 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.005632/0.3908, allocations: 3.16 MB / 1.326 GB, free: 15.5 MB / 1.029 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000574/0.3914, allocations: 39.62 kB / 1.326 GB, free: 15.46 MB / 1.029 GB
Notification: Performance of NFTyping.typeComponents: time 0.002602/0.394, allocations: 0.9883 MB / 1.327 GB, free: 14.46 MB / 1.029 GB
Notification: Performance of NFTyping.typeBindings: time 0.001313/0.3953, allocations: 0.5246 MB / 1.327 GB, free: 13.94 MB / 1.029 GB
Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.3964, allocations: 426.5 kB / 1.328 GB, free: 13.52 MB / 1.029 GB
Notification: Performance of NFFlatten.flatten: time 0.001495/0.3979, allocations: 1.229 MB / 1.329 GB, free: 12.29 MB / 1.029 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0007605/0.3987, allocations: 474.7 kB / 1.33 GB, free: 11.82 MB / 1.029 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.000663/0.3993, allocations: 490.2 kB / 1.33 GB, free: 11.34 MB / 1.029 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0007182/0.4001, allocations: 0.5449 MB / 1.331 GB, free: 10.79 MB / 1.029 GB
Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.4002, allocations: 68 kB / 1.331 GB, free: 10.72 MB / 1.029 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007232/0.4009, allocations: 395.2 kB / 1.331 GB, free: 10.34 MB / 1.029 GB
Notification: Performance of NFScalarize.scalarize: time 0.0003058/0.4012, allocations: 322.9 kB / 1.331 GB, free: 10.02 MB / 1.029 GB
Notification: Performance of NFVerifyModel.verify: time 0.0004549/0.4017, allocations: 441.8 kB / 1.332 GB, free: 9.586 MB / 1.029 GB
Notification: Performance of NFConvertDAE.convert: time 0.001396/0.4031, allocations: 1.23 MB / 1.333 GB, free: 8.352 MB / 1.029 GB
Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4031, allocations: 4 kB / 1.333 GB, free: 8.348 MB / 1.029 GB
Notification: Performance of FrontEnd: time 1.623e-06/0.4031, allocations: 0 / 1.333 GB, free: 8.348 MB / 1.029 GB
Notification: Performance of Transformations before backend: time 1.102e-05/0.4031, allocations: 0 / 1.333 GB, free: 8.348 MB / 1.029 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 183
 * Number of variables: 183
Notification: Performance of Generate backend data structure: time 0.001873/0.4049, allocations: 1.108 MB / 1.334 GB, free: 7.203 MB / 1.029 GB
Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.405, allocations: 11.97 kB / 1.334 GB, free: 7.191 MB / 1.029 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.4065, allocations: 236.1 kB / 1.334 GB, free: 6.961 MB / 1.029 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009193/0.4074, allocations: 0.5269 MB / 1.335 GB, free: 6.414 MB / 1.029 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.4075, allocations: 53.67 kB / 1.335 GB, free: 6.363 MB / 1.029 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.4076, allocations: 72.31 kB / 1.335 GB, free: 6.293 MB / 1.029 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.4091, allocations: 1.085 MB / 1.336 GB, free: 5.098 MB / 1.029 GB
Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.4091, allocations: 0 / 1.336 GB, free: 5.098 MB / 1.029 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-05/0.4092, allocations: 35.97 kB / 1.336 GB, free: 5.062 MB / 1.029 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/0.4093, allocations: 81.27 kB / 1.336 GB, free: 4.98 MB / 1.029 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.4105, allocations: 0.7581 MB / 1.337 GB, free: 4.223 MB / 1.029 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005699/0.4162, allocations: 5.791 MB / 1.342 GB, free: 14.02 MB / 1.045 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.4172, allocations: 0.5047 MB / 1.343 GB, free: 13.5 MB / 1.045 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004289/0.4177, allocations: 282 kB / 1.343 GB, free: 13.22 MB / 1.045 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.4177, allocations: 4.438 kB / 1.343 GB, free: 13.22 MB / 1.045 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.4177, allocations: 39 kB / 1.343 GB, free: 13.17 MB / 1.045 GB
Notification: Performance of pre-optimization done (n=47): time 3.046e-06/0.4177, allocations: 0 / 1.343 GB, free: 13.17 MB / 1.045 GB
Notification: Performance of matching and sorting (n=48): time 0.003819/0.4216, allocations: 1.69 MB / 1.345 GB, free: 11.46 MB / 1.045 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.4216, allocations: 55.84 kB / 1.345 GB, free: 11.4 MB / 1.045 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006628/0.4223, allocations: 0.5548 MB / 1.345 GB, free: 10.83 MB / 1.045 GB
Notification: Performance of collectPreVariables (initialization): time 4.852e-05/0.4223, allocations: 37.7 kB / 1.345 GB, free: 10.79 MB / 1.045 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.4226, allocations: 424.1 kB / 1.346 GB, free: 10.37 MB / 1.045 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.4228, allocations: 186.4 kB / 1.346 GB, free: 10.18 MB / 1.045 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.423, allocations: 126.6 kB / 1.346 GB, free: 10.05 MB / 1.045 GB
Notification: Performance of setup shared object (initialization): time 0.0001849/0.4232, allocations: 378.7 kB / 1.347 GB, free: 9.676 MB / 1.045 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.4236, allocations: 273.8 kB / 1.347 GB, free: 9.41 MB / 1.045 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006058/0.4242, allocations: 496.9 kB / 1.347 GB, free: 8.828 MB / 1.045 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.4253, allocations: 0.8083 MB / 1.348 GB, free: 7.922 MB / 1.045 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4253, allocations: 4 kB / 1.348 GB, free: 7.918 MB / 1.045 GB
Notification: Performance of matching and sorting (n=85) (initialization): time 0.001886/0.4272, allocations: 1.074 MB / 1.349 GB, free: 6.824 MB / 1.045 GB
Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4272, allocations: 8 kB / 1.349 GB, free: 6.816 MB / 1.045 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.4272, allocations: 12.09 kB / 1.349 GB, free: 6.805 MB / 1.045 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008733/0.4281, allocations: 279.2 kB / 1.349 GB, free: 6.52 MB / 1.045 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00049/0.4286, allocations: 127.7 kB / 1.35 GB, free: 6.395 MB / 1.045 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007206/0.4358, allocations: 6.741 MB / 1.356 GB, free: 15.19 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006315/0.4364, allocations: 43.95 kB / 1.356 GB, free: 15.14 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.4365, allocations: 28 kB / 1.356 GB, free: 15.12 MB / 1.061 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 31
 * 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 (67):
 * Single equations (assignments): 63
 * 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
   {(2,6,100.0%), (2,4,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.0004165/0.4369, allocations: 254.9 kB / 1.356 GB, free: 14.86 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.437, allocations: 71.58 kB / 1.357 GB, free: 14.79 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.4388, allocations: 0.8807 MB / 1.357 GB, free: 13.89 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.4388, allocations: 8 kB / 1.357 GB, free: 13.88 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4388, allocations: 0 / 1.357 GB, free: 13.88 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4388, allocations: 7.984 kB / 1.357 GB, free: 13.88 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.4416, allocations: 1.673 MB / 1.359 GB, free: 12.12 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.4416, allocations: 8.125 kB / 1.359 GB, free: 12.11 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.4419, allocations: 63.83 kB / 1.359 GB, free: 12.05 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.4426, allocations: 275.2 kB / 1.359 GB, free: 11.77 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.4427, allocations: 8 kB / 1.359 GB, free: 11.76 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007193/0.4499, allocations: 6.72 MB / 1.366 GB, free: 4.578 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.4499, allocations: 3.984 kB / 1.366 GB, free: 4.574 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.4516, allocations: 0.9763 MB / 1.367 GB, free: 3.555 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.4519, allocations: 115.7 kB / 1.367 GB, free: 3.441 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.083e-05/0.452, allocations: 19.98 kB / 1.367 GB, free: 3.422 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.4524, allocations: 27.91 kB / 1.367 GB, free: 3.395 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.4525, allocations: 47.92 kB / 1.367 GB, free: 3.348 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.4525, allocations: 16 kB / 1.367 GB, free: 3.332 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 0.0005511/0.4531, allocations: 383 kB / 1.367 GB, free: 2.961 MB / 1.061 GB
Notification: Performance of sort global known variables: time 1.2e-07/0.4531, allocations: 0 / 1.367 GB, free: 2.961 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0008684/0.454, allocations: 224 kB / 1.368 GB, free: 2.742 MB / 1.061 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 7
 * 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 (31):
 * Single equations (assignments): 27
 * 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
   {(2,2,100.0%), (2,4,100.0%), (2,2,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.0001794/0.4541, allocations: 119.1 kB / 1.368 GB, free: 2.617 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.00214/0.4563, allocations: 1.232 MB / 1.369 GB, free: 1.34 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.4563, allocations: 4.125 kB / 1.369 GB, free: 1.336 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.001297/0.4576, allocations: 0.8697 MB / 1.37 GB, free: 424 kB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009336/0.4585, allocations: 221.7 kB / 1.37 GB, free: 212 kB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.4609, allocations: 1.337 MB / 1.371 GB, free: 14.81 MB / 1.076 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.4616, allocations: 1.005 MB / 1.372 GB, free: 13.78 MB / 1.076 GB
Notification: Performance of simCode: alias equations: time 0.0003595/0.462, allocations: 126 kB / 1.372 GB, free: 13.65 MB / 1.076 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.4621, allocations: 39.44 kB / 1.372 GB, free: 13.61 MB / 1.076 GB
Notification: Performance of SimCode: time 5.21e-07/0.4621, allocations: 0 / 1.372 GB, free: 13.61 MB / 1.076 GB
Notification: Performance of Templates: time 0.02155/0.4837, allocations: 11.84 MB / 1.384 GB, free: 1.91 MB / 1.076 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.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: 9.192789918743074]