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.001126/0.001126, allocations: 99.28 kB / 16.27 MB, free: 6 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.001046/0.001046, allocations: 187 kB / 17.2 MB, free: 5.613 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.338/1.338, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.842/1.842, allocations: 292.3 MB / 0.5495 GB, free: 17.56 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.001617/0.001617, allocations: 71.91 kB / 0.6722 GB, free: 6.582 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2391, allocations: 114.6 MB / 0.784 GB, free: 3.906 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003539/0.2427, allocations: 2.248 MB / 0.7862 GB, free: 1.637 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.2443, allocations: 0.9983 MB / 0.7872 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.2445, allocations: 7.938 kB / 0.7872 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.2447, allocations: 59.34 kB / 0.7873 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.2449, allocations: 47.47 kB / 0.7873 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005757/0.2455, allocations: 283.6 kB / 0.7876 GB, free: 244 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.4504/0.696, allocations: 0.6277 MB / 0.7882 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006842/0.6967, allocations: 475 kB / 0.7887 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.697, allocations: 210.2 kB / 0.7889 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.6973, allocations: 226.9 kB / 0.7891 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.811e-05/0.6974, allocations: 66.16 kB / 0.7891 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.6975, allocations: 89.62 kB / 0.7892 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.6977, allocations: 144.8 kB / 0.7894 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001845/0.6978, allocations: 247.4 kB / 0.7896 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0006118/0.6985, allocations: 0.6999 MB / 0.7903 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.026e-06/0.6985, allocations: 6.141 kB / 0.7903 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6985, allocations: 0 / 0.7903 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.61e-05/0.6985, allocations: 1.375 kB / 0.7903 GB, free: 45.64 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.001031/0.6995, allocations: 0.7291 MB / 0.791 GB, free: 45.17 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.6996, allocations: 10.5 kB / 0.791 GB, free: 45.17 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.965e-05/0.6997, allocations: 48 kB / 0.7911 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.7, allocations: 341.7 kB / 0.7914 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.7001, allocations: 45.38 kB / 0.7914 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.7002, allocations: 57.97 kB / 0.7915 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.7009, allocations: 0.5708 MB / 0.792 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.701, allocations: 8.625 kB / 0.792 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.701, allocations: 22.56 kB / 0.7921 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.701, allocations: 18.97 kB / 0.7921 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000675/0.7017, allocations: 425.8 kB / 0.7925 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.7035, allocations: 1.925 MB / 0.7944 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/0.704, allocations: 361.6 kB / 0.7947 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.7043, allocations: 187.2 kB / 0.7949 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 6.14e-05/0.7044, allocations: 8.234 kB / 0.7949 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003251/0.7047, allocations: 227.4 kB / 0.7951 GB, free: 43.79 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 2.053e-06/0.7047, allocations: 3.031 kB / 0.7951 GB, free: 43.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.0008063/0.7055, allocations: 472 kB / 0.7956 GB, free: 43.73 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.7056, allocations: 69.41 kB / 0.7956 GB, free: 43.67 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.7058, allocations: 247.3 kB / 0.7959 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.7058, allocations: 50.09 kB / 0.7959 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.706, allocations: 214.6 kB / 0.7961 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.395e-05/0.706, allocations: 115.6 kB / 0.7962 GB, free: 43.3 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.7062, allocations: 143.1 kB / 0.7964 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.4e-05/0.7063, allocations: 346.8 kB / 0.7967 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.7066, allocations: 159.4 kB / 0.7969 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.7069, allocations: 292.4 kB / 0.7971 GB, free: 42.84 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.7074, allocations: 400.1 kB / 0.7975 GB, free: 42.59 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.7074, allocations: 2.641 kB / 0.7975 GB, free: 42.59 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007297/0.7081, allocations: 0.502 MB / 0.798 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.7082, allocations: 8.438 kB / 0.798 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.7082, allocations: 3.484 kB / 0.798 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.7082, allocations: 6.156 kB / 0.798 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.7085, allocations: 67.17 kB / 0.7981 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.7085, allocations: 8.047 kB / 0.7981 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.7087, allocations: 66.75 kB / 0.7982 GB, free: 42.35 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.269e-05/0.7088, allocations: 23.94 kB / 0.7982 GB, free: 42.34 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.0002109/0.709, allocations: 229 kB / 0.7984 GB, free: 42.17 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.709, allocations: 29.88 kB / 0.7984 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007178/0.7097, allocations: 429.8 kB / 0.7988 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.7098, allocations: 5.375 kB / 0.7988 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.7098, allocations: 0 / 0.7988 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.7098, allocations: 4.641 kB / 0.7989 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.7112, allocations: 1.134 MB / 0.8 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.7112, allocations: 1.969 kB / 0.8 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.7114, allocations: 30.3 kB / 0.8 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.7114, allocations: 6.375 kB / 0.8 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.7114, allocations: 13.14 kB / 0.8 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.7114, allocations: 2.812 kB / 0.8 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.7114, allocations: 0 / 0.8 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000643/0.7121, allocations: 0.4888 MB / 0.8005 GB, free: 41.04 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/0.7121, allocations: 111.5 kB / 0.8006 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.7122, allocations: 15.14 kB / 0.8006 GB, free: 40.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.7124, allocations: 25.56 kB / 0.8006 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.7125, allocations: 61.91 kB / 0.8007 GB, free: 40.88 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/0.7126, allocations: 19.3 kB / 0.8007 GB, free: 40.88 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001008/0.7127, allocations: 144.6 kB / 0.8009 GB, free: 40.78 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7127, allocations: 0 / 0.8009 GB, free: 40.78 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004197/0.7131, allocations: 112 kB / 0.801 GB, free: 40.74 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.000228/0.7133, allocations: 142.9 kB / 0.8011 GB, free: 40.64 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000906/0.7143, allocations: 474.9 kB / 0.8015 GB, free: 40.51 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.7143, allocations: 4.062 kB / 0.8016 GB, free: 40.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003637/0.7146, allocations: 218.6 kB / 0.8018 GB, free: 40.44 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.715, allocations: 49.44 kB / 0.8018 GB, free: 40.42 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.7164, allocations: 0.7535 MB / 0.8025 GB, free: 39.98 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.7167, allocations: 0.8146 MB / 0.8033 GB, free: 39.28 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.7169, allocations: 45.44 kB / 0.8034 GB, free: 39.27 MB / 0.6544 GB Notification: Performance of SimCode: time 4.41e-07/0.7169, allocations: 0 / 0.8034 GB, free: 39.27 MB / 0.6544 GB Notification: Performance of Templates: time 0.0131/0.73, allocations: 5.3 MB / 0.8086 GB, free: 38.86 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)