Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 101.8 kB / 16.36 MB, free: 6.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 189.2 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.818/1.818, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 71.91 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2522, allocations: 114.6 MB / 0.7848 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004061/0.2563, allocations: 2.271 MB / 0.787 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.5026/0.7589, allocations: 0.9846 MB / 0.788 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004538/0.7594, allocations: 11 kB / 0.788 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.7597, allocations: 59.09 kB / 0.788 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.76, allocations: 46.23 kB / 0.7881 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000689/0.7607, allocations: 287.7 kB / 0.7884 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005455/0.7613, allocations: 0.6349 MB / 0.789 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004962/0.7618, allocations: 461.5 kB / 0.7894 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.762, allocations: 217.4 kB / 0.7896 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.7622, allocations: 226.3 kB / 0.7898 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.413e-05/0.7623, allocations: 67.34 kB / 0.7899 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.7624, allocations: 88.25 kB / 0.79 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.7625, allocations: 145.5 kB / 0.7901 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.7627, allocations: 248.7 kB / 0.7904 GB, free: 46.35 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.7632, allocations: 0.7324 MB / 0.7911 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.7632, allocations: 0 / 0.7911 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.824e-06/0.7632, allocations: 0.75 kB / 0.7911 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.7633, allocations: 0 / 0.7911 GB, free: 46.27 MB / 0.6544 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.000972/0.7642, allocations: 0.727 MB / 0.7918 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7643, allocations: 8.438 kB / 0.7918 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.33e-05/0.7644, allocations: 53 kB / 0.7918 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/0.7647, allocations: 339.3 kB / 0.7922 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.281e-05/0.7648, allocations: 46.84 kB / 0.7922 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.387e-05/0.7649, allocations: 60.73 kB / 0.7923 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007827/0.7657, allocations: 0.5768 MB / 0.7928 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.7657, allocations: 1.625 kB / 0.7928 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.7657, allocations: 19.25 kB / 0.7929 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.162e-05/0.7658, allocations: 19.19 kB / 0.7929 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006166/0.7664, allocations: 432 kB / 0.7933 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.7681, allocations: 1.907 MB / 0.7951 GB, free: 44.5 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005131/0.7687, allocations: 357.4 kB / 0.7955 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.7689, allocations: 184.5 kB / 0.7957 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/0.769, allocations: 13.95 kB / 0.7957 GB, free: 44.46 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.7693, allocations: 232 kB / 0.7959 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 1.703e-06/0.7693, allocations: 0 / 0.7959 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.0007659/0.7701, allocations: 474.3 kB / 0.7964 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.7701, allocations: 65.98 kB / 0.7964 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.7703, allocations: 237.6 kB / 0.7966 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.7704, allocations: 48.36 kB / 0.7967 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.7705, allocations: 218.6 kB / 0.7969 GB, free: 43.74 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.774e-05/0.7706, allocations: 116.4 kB / 0.797 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.7707, allocations: 141 kB / 0.7971 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.7708, allocations: 345.4 kB / 0.7975 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.7711, allocations: 159.9 kB / 0.7976 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003372/0.7714, allocations: 289.5 kB / 0.7979 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/0.7719, allocations: 402.2 kB / 0.7983 GB, free: 42.76 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.7719, allocations: 3.031 kB / 0.7983 GB, free: 42.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007715/0.7727, allocations: 0.5075 MB / 0.7988 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.7727, allocations: 7.281 kB / 0.7988 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.7728, allocations: 7.781 kB / 0.7988 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.7728, allocations: 5.094 kB / 0.7988 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.773, allocations: 61.84 kB / 0.7989 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.773, allocations: 13.44 kB / 0.7989 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.7733, allocations: 56.91 kB / 0.7989 GB, free: 42.53 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.7733, allocations: 26.78 kB / 0.799 GB, free: 42.52 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($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.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 (74): * Single equations (assignments): 74 * 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.0002056/0.7735, allocations: 226.8 kB / 0.7992 GB, free: 42.35 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.7736, allocations: 34.23 kB / 0.7992 GB, free: 42.33 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007287/0.7743, allocations: 428.5 kB / 0.7996 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.7743, allocations: 5.406 kB / 0.7996 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.7743, allocations: 1.594 kB / 0.7996 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.7743, allocations: 2.484 kB / 0.7996 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.7758, allocations: 1.119 MB / 0.8007 GB, free: 41.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.7758, allocations: 0.8438 kB / 0.8007 GB, free: 41.49 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.776, allocations: 45.78 kB / 0.8008 GB, free: 41.48 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.776, allocations: 6.875 kB / 0.8008 GB, free: 41.48 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.776, allocations: 11.61 kB / 0.8008 GB, free: 41.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.776, allocations: 4.688 kB / 0.8008 GB, free: 41.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.776, allocations: 0 / 0.8008 GB, free: 41.47 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006727/0.7767, allocations: 0.49 MB / 0.8013 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.7768, allocations: 113.3 kB / 0.8014 GB, free: 41.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.325e-05/0.7768, allocations: 15.92 kB / 0.8014 GB, free: 41.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.777, allocations: 26.38 kB / 0.8014 GB, free: 41.07 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.7771, allocations: 60.78 kB / 0.8015 GB, free: 41.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.7772, allocations: 15.22 kB / 0.8015 GB, free: 41.05 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 9.763e-05/0.7773, allocations: 137.8 kB / 0.8016 GB, free: 40.96 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7773, allocations: 3.094 kB / 0.8016 GB, free: 40.96 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003972/0.7777, allocations: 111 kB / 0.8017 GB, free: 40.93 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.localCondition,con.t1.fire,con.t1.t_start,con.t2.localCondition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.localCondition,con.t3.enableFire,con.t4.localCondition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001956/0.7779, allocations: 144.7 kB / 0.8019 GB, free: 40.82 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007252/0.7786, allocations: 440 kB / 0.8023 GB, free: 40.69 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.7786, allocations: 0.9375 kB / 0.8023 GB, free: 40.69 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.779, allocations: 217.6 kB / 0.8025 GB, free: 40.63 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.7793, allocations: 51.16 kB / 0.8025 GB, free: 40.61 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.7805, allocations: 0.7384 MB / 0.8033 GB, free: 40.19 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.7808, allocations: 0.8202 MB / 0.8041 GB, free: 39.48 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.781, allocations: 48.97 kB / 0.8041 GB, free: 39.46 MB / 0.6544 GB Notification: Performance of SimCode: time 3.81e-07/0.781, allocations: 3.562 kB / 0.8041 GB, free: 39.46 MB / 0.6544 GB Notification: Performance of Templates: time 0.01134/0.7923, allocations: 5.29 MB / 0.8093 GB, free: 39.06 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)