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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.693/1.693, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0008979/0.000898, allocations: 183.9 kB / 490.8 MB, free: 1.938 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.055/1.055, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008066/0.0008066, allocations: 98.92 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.54e-06/5.56e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1658, allocations: 143 MB / 1.212 GB, free: 40.06 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.6057, allocations: 153.4 MB / 1.361 GB, free: 17.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.606, allocations: 89.83 kB / 1.361 GB, free: 17.11 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01651/0.6225, allocations: 7.894 MB / 1.369 GB, free: 16.57 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.737e-05/0.6225, allocations: 9.875 kB / 1.369 GB, free: 16.57 MB / 0.823 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.0007063/0.6232, allocations: 0.6364 MB / 1.37 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.6233, allocations: 7.844 kB / 1.37 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.689e-05/0.6234, allocations: 54.38 kB / 1.37 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.6237, allocations: 338.2 kB / 1.37 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.6237, allocations: 30.89 kB / 1.37 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.103e-05/0.6238, allocations: 34.03 kB / 1.37 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005696/0.6244, allocations: 364 kB / 1.371 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000656/0.625, allocations: 0.4908 MB / 1.371 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.6251, allocations: 1.531 kB / 1.371 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.6251, allocations: 1.688 kB / 1.371 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.6251, allocations: 18.91 kB / 1.371 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.6268, allocations: 1.808 MB / 1.373 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.6272, allocations: 353 kB / 1.373 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.6274, allocations: 175.9 kB / 1.373 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.586e-05/0.6275, allocations: 7.922 kB / 1.373 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.6278, allocations: 250.5 kB / 1.374 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.423e-06/0.6278, allocations: 0 / 1.374 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005001/0.6283, allocations: 306.3 kB / 1.374 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.6283, allocations: 118.8 kB / 1.374 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.6285, allocations: 210 kB / 1.374 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.533e-05/0.6285, allocations: 40.55 kB / 1.374 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.6286, allocations: 207.6 kB / 1.374 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.271e-05/0.6287, allocations: 109 kB / 1.375 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.6287, allocations: 1 kB / 1.375 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.6289, allocations: 343.4 kB / 1.375 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.6291, allocations: 143.8 kB / 1.375 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.6293, allocations: 268.1 kB / 1.375 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002382/0.6296, allocations: 154.3 kB / 1.375 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.6296, allocations: 0 / 1.375 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006186/0.6302, allocations: 449.8 kB / 1.376 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.6302, allocations: 6.016 kB / 1.376 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6302, allocations: 3.875 kB / 1.376 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.6302, allocations: 7.594 kB / 1.376 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.6305, allocations: 62.91 kB / 1.376 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.6305, allocations: 8.203 kB / 1.376 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.6307, allocations: 41.38 kB / 1.376 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-05/0.6308, allocations: 25.53 kB / 1.376 GB, free: 29.5 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.0001086/0.6309, allocations: 159.8 kB / 1.376 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.6309, allocations: 29.39 kB / 1.376 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006542/0.6316, allocations: 366.8 kB / 1.377 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.6316, allocations: 7.312 kB / 1.377 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.6316, allocations: 5.344 kB / 1.377 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.6316, allocations: 11.58 kB / 1.377 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.6328, allocations: 0.9502 MB / 1.377 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.6328, allocations: 5.719 kB / 1.377 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.633, allocations: 39.58 kB / 1.378 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.633, allocations: 4.047 kB / 1.378 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.633, allocations: 5.531 kB / 1.378 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.633, allocations: 1.938 kB / 1.378 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.633, allocations: 4.75 kB / 1.378 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005639/0.6336, allocations: 493 kB / 1.378 GB, free: 28.76 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.6336, allocations: 103.4 kB / 1.378 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.758e-05/0.6337, allocations: 11.55 kB / 1.378 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.6339, allocations: 25.84 kB / 1.378 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.634, allocations: 63.12 kB / 1.378 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.6341, allocations: 17.92 kB / 1.378 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.908e-05/0.6341, allocations: 125.5 kB / 1.378 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003449/0.6345, allocations: 72.06 kB / 1.378 GB, free: 28.57 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.000155/0.6346, allocations: 144.6 kB / 1.379 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005119/0.6352, allocations: 405.2 kB / 1.379 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.6352, allocations: 1.031 kB / 1.379 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.6354, allocations: 210.8 kB / 1.379 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.6357, allocations: 37.64 kB / 1.379 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009163/0.6366, allocations: 0.5396 MB / 1.38 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004384/0.6371, allocations: 0.8708 MB / 1.381 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6371, allocations: 0.7188 kB / 1.381 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.00765/0.6447, allocations: 4.56 MB / 1.385 GB, free: 26.55 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