Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.188/2.188, allocations: 387.1 MB / 399.7 MB, free: 9.488 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 184.1 kB / 492.3 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.662/1.662, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008646/0.0008646, allocations: 79.97 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.355e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2908, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.366, allocations: 153.3 MB / 1.362 GB, free: 18.97 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/1.366, allocations: 92.47 kB / 1.362 GB, free: 18.97 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01895/1.385, allocations: 8.37 MB / 1.37 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.173e-06/1.385, allocations: 0 / 1.37 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.533e-05/1.385, allocations: 11.69 kB / 1.37 GB, free: 34.09 MB / 0.8386 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.0007835/1.386, allocations: 0.632 MB / 1.371 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/1.386, allocations: 7.719 kB / 1.371 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.166e-05/1.386, allocations: 54.53 kB / 1.371 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/1.386, allocations: 332.5 kB / 1.371 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/1.387, allocations: 43.12 kB / 1.371 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/1.387, allocations: 60 kB / 1.372 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/1.387, allocations: 0.5603 MB / 1.372 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/1.387, allocations: 7.953 kB / 1.372 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.668e-05/1.388, allocations: 17 kB / 1.372 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-05/1.388, allocations: 23.44 kB / 1.372 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006069/1.388, allocations: 399.1 kB / 1.372 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/1.39, allocations: 1.914 MB / 1.374 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/1.391, allocations: 391.9 kB / 1.375 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/1.391, allocations: 185.9 kB / 1.375 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/1.391, allocations: 6.875 kB / 1.375 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003403/1.391, allocations: 266.7 kB / 1.375 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/1.391, allocations: 0 / 1.375 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005658/1.392, allocations: 349.8 kB / 1.376 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/1.392, allocations: 110.1 kB / 1.376 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/1.392, allocations: 223.3 kB / 1.376 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/1.392, allocations: 60 kB / 1.376 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/1.392, allocations: 210.9 kB / 1.376 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.327e-05/1.392, allocations: 106.7 kB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/1.392, allocations: 17.78 kB / 1.376 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.393, allocations: 344.3 kB / 1.377 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/1.393, allocations: 157.2 kB / 1.377 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/1.393, allocations: 285.9 kB / 1.377 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/1.393, allocations: 159.2 kB / 1.377 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.393, allocations: 0 / 1.377 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006164/1.394, allocations: 0.4996 MB / 1.378 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/1.394, allocations: 7.625 kB / 1.378 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/1.394, allocations: 3.875 kB / 1.378 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/1.394, allocations: 8.188 kB / 1.378 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/1.394, allocations: 66.59 kB / 1.378 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/1.394, allocations: 10.44 kB / 1.378 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/1.395, allocations: 42.16 kB / 1.378 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.006e-05/1.395, allocations: 29.39 kB / 1.378 GB, free: 30.97 MB / 0.8386 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,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.395, allocations: 179.4 kB / 1.378 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/1.395, allocations: 23.22 kB / 1.378 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005868/1.395, allocations: 413.7 kB / 1.378 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/1.395, allocations: 7.875 kB / 1.378 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.395, allocations: 0 / 1.378 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/1.395, allocations: 6.953 kB / 1.378 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/1.397, allocations: 1.066 MB / 1.379 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/1.397, allocations: 0 / 1.379 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/1.397, allocations: 36.69 kB / 1.379 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/1.397, allocations: 3.875 kB / 1.379 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/1.397, allocations: 20.91 kB / 1.379 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/1.397, allocations: 3.906 kB / 1.379 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.397, allocations: 0 / 1.379 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005122/1.397, allocations: 0.5186 MB / 1.38 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/1.397, allocations: 108.4 kB / 1.38 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/1.397, allocations: 12.84 kB / 1.38 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/1.398, allocations: 27.23 kB / 1.38 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/1.398, allocations: 66.95 kB / 1.38 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/1.398, allocations: 24.98 kB / 1.38 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.003e-05/1.398, allocations: 128.5 kB / 1.38 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.398, allocations: 4 kB / 1.38 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003698/1.398, allocations: 89.09 kB / 1.38 GB, free: 30.01 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001853/1.399, allocations: 148.1 kB / 1.381 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005509/1.399, allocations: 433.2 kB / 1.381 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/1.399, allocations: 0 / 1.381 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002617/1.399, allocations: 218.8 kB / 1.381 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/1.4, allocations: 44.47 kB / 1.381 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008776/1.401, allocations: 0.5675 MB / 1.382 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/1.401, allocations: 0.8291 MB / 1.383 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001941/1.401, allocations: 57.83 kB / 1.383 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/1.401, allocations: 43.31 kB / 1.383 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of SimCode: time 4.8e-07/1.401, allocations: 0 / 1.383 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of Templates: time 0.007067/1.408, allocations: 3.785 MB / 1.386 GB, free: 27.81 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches