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.001144/0.001144, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009916/0.009917, allocations: 173.7 kB / 16.27 MB, free: 6.648 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.438/1.438, allocations: 205.4 MB / 222.4 MB, free: 5.582 MB / 174.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.663/1.663, allocations: 292.7 MB / 0.5502 GB, free: 14.52 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.0007217/0.0007217, allocations: 17.38 kB / 0.6743 GB, free: 25.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2296, allocations: 116.3 MB / 0.7879 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002622/0.2323, allocations: 1.984 MB / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001787/0.2341, allocations: 0.9867 MB / 0.7908 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.2344, allocations: 11.94 kB / 0.7908 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.2346, allocations: 43.66 kB / 0.7908 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.2348, allocations: 31.72 kB / 0.7909 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005657/0.2354, allocations: 247.8 kB / 0.7911 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006808/0.2361, allocations: 0.5777 MB / 0.7917 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005593/0.2367, allocations: 396.6 kB / 0.792 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2369, allocations: 147.4 kB / 0.7922 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.237, allocations: 167 kB / 0.7923 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.723e-05/0.2371, allocations: 16 kB / 0.7924 GB, free: 7 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.15e-05/0.2372, allocations: 39.98 kB / 0.7924 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.2373, allocations: 91.61 kB / 0.7925 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2375, allocations: 212.6 kB / 0.7927 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005133/0.238, allocations: 0.6231 MB / 0.7933 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.238, allocations: 8 kB / 0.7933 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.92e-07/0.238, allocations: 0 / 0.7933 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.238, allocations: 0 / 0.7933 GB, free: 6.023 MB / 0.6075 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.0009006/0.2389, allocations: 0.6345 MB / 0.7939 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.239, allocations: 12.03 kB / 0.7939 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.524e-05/0.2391, allocations: 52.31 kB / 0.794 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.2394, allocations: 340.2 kB / 0.7943 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.2395, allocations: 53.67 kB / 0.7944 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.2396, allocations: 56.36 kB / 0.7944 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008666/0.2404, allocations: 0.5777 MB / 0.795 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2405, allocations: 0 / 0.795 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.2405, allocations: 24 kB / 0.795 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.631e-05/0.2405, allocations: 17 kB / 0.795 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007121/0.2413, allocations: 427.7 kB / 0.7954 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.2432, allocations: 1.926 MB / 0.7973 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005189/0.2437, allocations: 357.5 kB / 0.7976 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.244, allocations: 191.5 kB / 0.7978 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.976e-05/0.2441, allocations: 15.92 kB / 0.7978 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003552/0.2445, allocations: 225.9 kB / 0.7981 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 1.663e-06/0.2445, allocations: 4 kB / 0.7981 GB, free: 0.9258 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0008067/0.2453, allocations: 482.6 kB / 0.7985 GB, free: 460 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.2453, allocations: 67.16 kB / 0.7986 GB, free: 380 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.2455, allocations: 241.7 kB / 0.7988 GB, free: 128 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.58e-05/0.2456, allocations: 45.7 kB / 0.7989 GB, free: 76 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.2457, allocations: 224.7 kB / 0.7991 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.439e-05/0.2458, allocations: 122.4 kB / 0.7992 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.138e-05/0.2459, allocations: 89.66 kB / 0.7993 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.246, allocations: 346.8 kB / 0.7996 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.2463, allocations: 169.2 kB / 0.7998 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.2466, allocations: 288.8 kB / 0.8 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005194/0.2472, allocations: 410.4 kB / 0.8004 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2472, allocations: 0 / 0.8004 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007499/0.2479, allocations: 0.5064 MB / 0.8009 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.248, allocations: 4 kB / 0.8009 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.248, allocations: 4 kB / 0.8009 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.248, allocations: 8 kB / 0.8009 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.2482, allocations: 63.84 kB / 0.801 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.2482, allocations: 15.88 kB / 0.801 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.2485, allocations: 67.72 kB / 0.8011 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.2485, allocations: 24 kB / 0.8011 GB, free: 13.64 MB / 0.6231 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.condition,con.t3.enableFire,con.t3.condition,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.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,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.0002295/0.2488, allocations: 235.5 kB / 0.8013 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.2488, allocations: 23.72 kB / 0.8014 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006934/0.2495, allocations: 439.5 kB / 0.8018 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.2495, allocations: 7.984 kB / 0.8018 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2495, allocations: 0 / 0.8018 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.2495, allocations: 4 kB / 0.8018 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.2509, allocations: 1.134 MB / 0.8029 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2509, allocations: 4 kB / 0.8029 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.2511, allocations: 35.91 kB / 0.8029 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.2511, allocations: 7.938 kB / 0.8029 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.2511, allocations: 12 kB / 0.8029 GB, free: 11.67 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2511, allocations: 4 kB / 0.803 GB, free: 11.67 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2511, allocations: 0 / 0.803 GB, free: 11.67 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006023/0.2517, allocations: 499.8 kB / 0.8034 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.2518, allocations: 120.5 kB / 0.8035 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/0.2519, allocations: 12 kB / 0.8036 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.2521, allocations: 31.98 kB / 0.8036 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.2522, allocations: 64.34 kB / 0.8036 GB, free: 10.92 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.2522, allocations: 16 kB / 0.8037 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 9.682e-05/0.2523, allocations: 136.2 kB / 0.8038 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2523, allocations: 0 / 0.8038 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003842/0.2527, allocations: 111.6 kB / 0.8039 GB, free: 10.66 MB / 0.6231 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.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$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.active,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.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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.0001952/0.2529, allocations: 145.8 kB / 0.804 GB, free: 10.51 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006657/0.2536, allocations: 442.4 kB / 0.8045 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2536, allocations: 3.938 kB / 0.8045 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.2539, allocations: 218.5 kB / 0.8047 GB, free: 9.867 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.2543, allocations: 43.97 kB / 0.8047 GB, free: 9.824 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.2555, allocations: 0.899 MB / 0.8056 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.2558, allocations: 0.8233 MB / 0.8064 GB, free: 8.051 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002006/0.256, allocations: 63.25 kB / 0.8065 GB, free: 7.992 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2562, allocations: 39.42 kB / 0.8065 GB, free: 7.957 MB / 0.6231 GB Notification: Performance of SimCode: time 3.01e-07/0.2562, allocations: 0 / 0.8065 GB, free: 7.957 MB / 0.6231 GB Notification: Performance of Templates: time 0.007393/0.2636, allocations: 3.949 MB / 0.8103 GB, free: 4.035 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: