Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.254/2.254, allocations: 390.5 MB / 398 MB, free: 10.93 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.001143/0.001143, allocations: 176.8 kB / 491.2 MB, free: 1.559 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.768/1.768, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001071/0.00107, allocations: 87.95 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.756e-05/1.759e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.316, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.092/1.408, allocations: 153.5 MB / 1.362 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003831/1.409, allocations: 92.7 kB / 1.362 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02162/1.43, allocations: 8.237 MB / 1.37 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.084e-06/1.43, allocations: 0 / 1.37 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.946e-05/1.431, allocations: 12.31 kB / 1.37 GB, free: 32.72 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.001588/1.432, allocations: 0.6258 MB / 1.371 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/1.432, allocations: 7.688 kB / 1.371 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/1.432, allocations: 54.41 kB / 1.371 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/1.433, allocations: 337.7 kB / 1.371 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/1.433, allocations: 23.09 kB / 1.371 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.823e-05/1.433, allocations: 34.66 kB / 1.371 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007546/1.434, allocations: 369.9 kB / 1.372 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008404/1.435, allocations: 491 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/1.435, allocations: 4 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.431e-05/1.435, allocations: 3.047 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/1.435, allocations: 20.66 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/1.437, allocations: 1.81 MB / 1.374 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/1.438, allocations: 365.7 kB / 1.374 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/1.438, allocations: 175.2 kB / 1.375 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.329e-05/1.438, allocations: 7.719 kB / 1.375 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003395/1.439, allocations: 248.3 kB / 1.375 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/1.439, allocations: 0 / 1.375 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006307/1.439, allocations: 324.7 kB / 1.375 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/1.439, allocations: 112.6 kB / 1.375 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/1.44, allocations: 212.1 kB / 1.375 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.396e-05/1.44, allocations: 43 kB / 1.375 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/1.44, allocations: 220.4 kB / 1.376 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.991e-05/1.44, allocations: 103.2 kB / 1.376 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/1.44, allocations: 3.938 kB / 1.376 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001618/1.44, allocations: 346.1 kB / 1.376 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/1.44, allocations: 142.4 kB / 1.376 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/1.441, allocations: 272.9 kB / 1.376 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/1.441, allocations: 153 kB / 1.377 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/1.441, allocations: 0 / 1.377 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006705/1.442, allocations: 448.1 kB / 1.377 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/1.442, allocations: 7.594 kB / 1.377 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/1.442, allocations: 3.812 kB / 1.377 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/1.442, allocations: 11.58 kB / 1.377 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/1.442, allocations: 65.92 kB / 1.377 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/1.442, allocations: 15.73 kB / 1.377 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/1.442, allocations: 37.38 kB / 1.377 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/1.442, allocations: 29.69 kB / 1.377 GB, free: 29.66 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.00017/1.443, allocations: 155.8 kB / 1.377 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/1.443, allocations: 30.44 kB / 1.377 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006786/1.443, allocations: 373.5 kB / 1.378 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/1.443, allocations: 7.688 kB / 1.378 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/1.443, allocations: 0 / 1.378 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/1.443, allocations: 3.047 kB / 1.378 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/1.445, allocations: 0.9601 MB / 1.379 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/1.445, allocations: 0 / 1.379 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/1.445, allocations: 35.81 kB / 1.379 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/1.445, allocations: 3.844 kB / 1.379 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/1.445, allocations: 2.484 kB / 1.379 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/1.445, allocations: 15.83 kB / 1.379 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.445, allocations: 3.938 kB / 1.379 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006403/1.446, allocations: 496.7 kB / 1.379 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.885e-05/1.446, allocations: 114.3 kB / 1.379 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/1.446, allocations: 11.59 kB / 1.379 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/1.446, allocations: 17.14 kB / 1.379 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/1.446, allocations: 72.95 kB / 1.379 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/1.446, allocations: 15.34 kB / 1.379 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001264/1.446, allocations: 125 kB / 1.38 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.446, allocations: 0 / 1.38 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005065/1.447, allocations: 72.28 kB / 1.38 GB, free: 28.72 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.0002648/1.447, allocations: 143.3 kB / 1.38 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005863/1.448, allocations: 399.9 kB / 1.38 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/1.448, allocations: 4.375 kB / 1.38 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002743/1.448, allocations: 206.8 kB / 1.38 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/1.448, allocations: 29.14 kB / 1.38 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/1.449, allocations: 0.5307 MB / 1.381 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/1.45, allocations: 0.8365 MB / 1.382 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003057/1.45, allocations: 68.17 kB / 1.382 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/1.45, allocations: 37.14 kB / 1.382 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of SimCode: time 4.31e-07/1.45, allocations: 0 / 1.382 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of Templates: time 0.008738/1.459, allocations: 3.665 MB / 1.385 GB, free: 26.91 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches