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.001121/0.001121, allocations: 100.5 kB / 16.29 MB, free: 6.43 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.001075/0.001075, allocations: 185 kB / 17.22 MB, free: 5.934 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.202/1.202, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.584/1.584, allocations: 292.3 MB / 0.5495 GB, free: 17.51 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.00127/0.00127, allocations: 75.91 kB / 0.6722 GB, free: 6.496 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1892, allocations: 114.6 MB / 0.7841 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003309/0.1925, allocations: 2.253 MB / 0.7863 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.194, allocations: 0.9944 MB / 0.7873 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1941, allocations: 15.94 kB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.1943, allocations: 59.28 kB / 0.7873 GB, free: 480 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.1945, allocations: 51.47 kB / 0.7874 GB, free: 428 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.195, allocations: 279.6 kB / 0.7876 GB, free: 148 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.2925/0.4875, allocations: 0.6334 MB / 0.7883 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005075/0.488, allocations: 469.7 kB / 0.7887 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.4882, allocations: 217.5 kB / 0.7889 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.4884, allocations: 224.9 kB / 0.7891 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.4885, allocations: 65.62 kB / 0.7892 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.4886, allocations: 84.98 kB / 0.7893 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.4887, allocations: 144.2 kB / 0.7894 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.4889, allocations: 251.2 kB / 0.7897 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004626/0.4894, allocations: 0.7273 MB / 0.7904 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4894, allocations: 3.375 kB / 0.7904 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.313e-06/0.4894, allocations: 0 / 0.7904 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.4894, allocations: 0 / 0.7904 GB, free: 45.77 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.000826/0.4902, allocations: 0.7283 MB / 0.7911 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.707e-05/0.4903, allocations: 10.5 kB / 0.7911 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.4903, allocations: 51.72 kB / 0.7911 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.4906, allocations: 341.4 kB / 0.7915 GB, free: 45.05 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.4907, allocations: 42.25 kB / 0.7915 GB, free: 45.05 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.4907, allocations: 60.2 kB / 0.7916 GB, free: 45.05 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006721/0.4914, allocations: 0.5726 MB / 0.7921 GB, free: 44.94 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.4914, allocations: 4.469 kB / 0.7921 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/0.4915, allocations: 20.5 kB / 0.7921 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.4915, allocations: 22.08 kB / 0.7922 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005777/0.4921, allocations: 428 kB / 0.7926 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.4936, allocations: 1.906 MB / 0.7944 GB, free: 44 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000425/0.494, allocations: 357.1 kB / 0.7948 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.4942, allocations: 180.4 kB / 0.7949 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 4.647e-05/0.4943, allocations: 12.73 kB / 0.795 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.4946, allocations: 226.2 kB / 0.7952 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 1.703e-06/0.4946, allocations: 0 / 0.7952 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.0006719/0.4952, allocations: 479.7 kB / 0.7956 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.4953, allocations: 66.52 kB / 0.7957 GB, free: 43.79 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.4954, allocations: 243.9 kB / 0.7959 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.4955, allocations: 45.89 kB / 0.796 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.43e-05/0.4956, allocations: 223.1 kB / 0.7962 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.047e-05/0.4956, allocations: 109.3 kB / 0.7963 GB, free: 43.43 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.4958, allocations: 147.4 kB / 0.7964 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.028e-05/0.4958, allocations: 346.8 kB / 0.7968 GB, free: 43.1 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.496, allocations: 160.4 kB / 0.7969 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.4963, allocations: 291 kB / 0.7972 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000416/0.4967, allocations: 405.8 kB / 0.7976 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4967, allocations: 0 / 0.7976 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006217/0.4974, allocations: 0.5044 MB / 0.7981 GB, free: 42.43 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.4974, allocations: 11.56 kB / 0.7981 GB, free: 42.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.4974, allocations: 1.938 kB / 0.7981 GB, free: 42.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.4974, allocations: 7.25 kB / 0.7981 GB, free: 42.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.4976, allocations: 62.89 kB / 0.7982 GB, free: 42.42 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.4977, allocations: 8.656 kB / 0.7982 GB, free: 42.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.4978, allocations: 62.16 kB / 0.7982 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.4979, allocations: 22.95 kB / 0.7982 GB, free: 42.38 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.0001787/0.4981, allocations: 237 kB / 0.7985 GB, free: 42.21 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.4981, allocations: 29.58 kB / 0.7985 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006035/0.4987, allocations: 432 kB / 0.7989 GB, free: 42.02 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.4987, allocations: 4.781 kB / 0.7989 GB, free: 42.02 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4987, allocations: 4.188 kB / 0.7989 GB, free: 42.02 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.4987, allocations: 3.938 kB / 0.7989 GB, free: 42.02 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.4999, allocations: 1.122 MB / 0.8 GB, free: 41.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4999, allocations: 0 / 0.8 GB, free: 41.35 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.5001, allocations: 34.91 kB / 0.8 GB, free: 41.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.5001, allocations: 7.906 kB / 0.8001 GB, free: 41.34 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.5001, allocations: 20.78 kB / 0.8001 GB, free: 41.33 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.5001, allocations: 0 / 0.8001 GB, free: 41.33 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5001, allocations: 1.219 kB / 0.8001 GB, free: 41.33 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000531/0.5006, allocations: 495.1 kB / 0.8005 GB, free: 41.07 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.287e-05/0.5007, allocations: 109.5 kB / 0.8007 GB, free: 40.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.5007, allocations: 15.84 kB / 0.8007 GB, free: 40.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.5009, allocations: 21.56 kB / 0.8007 GB, free: 40.94 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.501, allocations: 69.8 kB / 0.8008 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.5011, allocations: 14.42 kB / 0.8008 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.663e-05/0.5011, allocations: 141.2 kB / 0.8009 GB, free: 40.82 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.5011, allocations: 0 / 0.8009 GB, free: 40.82 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003459/0.5015, allocations: 109.1 kB / 0.801 GB, free: 40.79 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.0001465/0.5016, allocations: 153.5 kB / 0.8012 GB, free: 40.68 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005982/0.5022, allocations: 435.7 kB / 0.8016 GB, free: 40.56 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5023, allocations: 1.25 kB / 0.8016 GB, free: 40.56 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.5026, allocations: 214.9 kB / 0.8018 GB, free: 40.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.5029, allocations: 54.36 kB / 0.8018 GB, free: 40.47 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009762/0.5039, allocations: 0.724 MB / 0.8025 GB, free: 40.07 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.5041, allocations: 0.8174 MB / 0.8033 GB, free: 39.37 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001718/0.5043, allocations: 66.14 kB / 0.8034 GB, free: 39.36 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.5044, allocations: 42.95 kB / 0.8034 GB, free: 39.35 MB / 0.6544 GB Notification: Performance of SimCode: time 2e-07/0.5044, allocations: 0 / 0.8034 GB, free: 39.35 MB / 0.6544 GB Notification: Performance of Templates: time 0.00868/0.5131, allocations: 4.352 MB / 0.8077 GB, free: 39.17 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)