Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 95.92 kB / 19.7 MB, free: 2.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002771/0.002771, allocations: 204.8 kB / 23 MB, free: 4.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.261/3.261, allocations: 0.49 GB / 0.7959 GB, free: 35.56 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 73.86 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4228/0.4248, allocations: 176.1 MB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003943/0.4288, allocations: 2.23 MB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001949/0.4307, allocations: 0.974 MB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.4309, allocations: 15.88 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002092/0.4311, allocations: 67.33 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.4313, allocations: 51.47 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006584/0.432, allocations: 303.6 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0007313/0.4327, allocations: 0.6519 MB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005567/0.4333, allocations: 385.1 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.4336, allocations: 231.3 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002942/0.4339, allocations: 235 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 8.966e-05/0.434, allocations: 71.94 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.4341, allocations: 87.98 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001682/0.4343, allocations: 143.6 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.4345, allocations: 195.1 kB / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0009276/0.4355, allocations: 0.7705 MB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4355, allocations: 0 / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.863e-06/0.4355, allocations: 4 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.778e-06/0.4355, allocations: 0 / 1.333 GB, free: 10.56 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001307/0.4368, allocations: 0.6689 MB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4368, allocations: 8.031 kB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005476/0.4374, allocations: 88.5 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004816/0.4379, allocations: 296.2 kB / 1.334 GB, free: 9.453 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/0.4379, allocations: 41.69 kB / 1.334 GB, free: 9.414 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.989e-05/0.438, allocations: 60.38 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000993/0.439, allocations: 0.5699 MB / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.439, allocations: 0 / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.4391, allocations: 23.98 kB / 1.335 GB, free: 8.727 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.247e-05/0.4391, allocations: 21 kB / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007673/0.4399, allocations: 419.7 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.4421, allocations: 1.653 MB / 1.337 GB, free: 6.586 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006379/0.4428, allocations: 373 kB / 1.337 GB, free: 6.195 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.4431, allocations: 172.3 kB / 1.338 GB, free: 6.02 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.914e-05/0.4431, allocations: 8 kB / 1.338 GB, free: 6.012 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004495/0.4436, allocations: 265 kB / 1.338 GB, free: 5.727 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/0.4436, allocations: 0 / 1.338 GB, free: 5.727 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.0009919/0.4446, allocations: 0.4913 MB / 1.338 GB, free: 5.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.519e-05/0.4447, allocations: 114.8 kB / 1.338 GB, free: 5.094 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.4449, allocations: 246.5 kB / 1.339 GB, free: 4.844 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.838e-05/0.445, allocations: 45.7 kB / 1.339 GB, free: 4.793 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.4452, allocations: 221.3 kB / 1.339 GB, free: 4.574 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.4453, allocations: 131 kB / 1.339 GB, free: 4.445 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.4455, allocations: 134.3 kB / 1.339 GB, free: 4.309 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002127/0.4457, allocations: 342.8 kB / 1.339 GB, free: 3.965 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/0.446, allocations: 173.4 kB / 1.34 GB, free: 3.797 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/0.4464, allocations: 296.6 kB / 1.34 GB, free: 3.457 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006307/0.4471, allocations: 397.2 kB / 1.34 GB, free: 3.02 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.4471, allocations: 4 kB / 1.34 GB, free: 3.016 MB / 1.029 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008831/0.4479, allocations: 0.505 MB / 1.341 GB, free: 2.504 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.448, allocations: 11.94 kB / 1.341 GB, free: 2.492 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.448, allocations: 4 kB / 1.341 GB, free: 2.488 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.448, allocations: 4 kB / 1.341 GB, free: 2.484 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.4483, allocations: 63.84 kB / 1.341 GB, free: 2.422 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.4483, allocations: 8 kB / 1.341 GB, free: 2.414 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.4485, allocations: 60.03 kB / 1.341 GB, free: 2.355 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.4486, allocations: 24 kB / 1.341 GB, free: 2.332 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,con.t4.enableFire,con.t4.localCondition,con.t3.enableFire,con.t3.localCondition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002907/0.4488, allocations: 235.3 kB / 1.341 GB, free: 2.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.4489, allocations: 31.81 kB / 1.341 GB, free: 2.059 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.4496, allocations: 374.2 kB / 1.342 GB, free: 1.691 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.4496, allocations: 0 / 1.342 GB, free: 1.691 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.4496, allocations: 4 kB / 1.342 GB, free: 1.688 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.879e-05/0.4496, allocations: 31.73 kB / 1.342 GB, free: 1.656 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/0.4497, allocations: 19.98 kB / 1.342 GB, free: 1.637 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.4498, allocations: 15.98 kB / 1.342 GB, free: 1.621 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.45, allocations: 67.84 kB / 1.342 GB, free: 1.555 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009112/0.4509, allocations: 0.6161 MB / 1.342 GB, free: 0.9297 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007849/0.4517, allocations: 0.6916 MB / 1.343 GB, free: 224 kB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003018/0.452, allocations: 167.9 kB / 1.343 GB, free: 56 kB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001453/0.4521, allocations: 140 kB / 1.343 GB, free: 15.92 MB / 1.045 GB Notification: Performance of Backend: time 8.71e-07/0.4521, allocations: 4 kB / 1.343 GB, free: 15.91 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001048/0.4532, allocations: 349.9 kB / 1.344 GB, free: 15.57 MB / 1.045 GB Notification: Performance of SimCode: time 0.001347/0.4545, allocations: 1.039 MB / 1.345 GB, free: 14.48 MB / 1.045 GB Notification: Performance of Templates: time 0.01097/0.4655, allocations: 5.216 MB / 1.35 GB, free: 9.34 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.621375573995465]