Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009254/0.0009254, allocations: 80.81 kB / 21.55 MB, free: 2.938 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009756/0.0009756, allocations: 163.3 kB / 24.97 MB, free: 8.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.909/0.909, allocations: 177.2 MB / 205.4 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.96/1.96, allocations: 389.6 MB / 0.6362 GB, free: 13.32 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 3.938 kB / 0.776 GB, free: 13.89 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.029e-05, allocations: 2.312 kB / 0.776 GB, free: 13.89 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002704/0.002724, allocations: 2.336 MB / 0.7783 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.00405, allocations: 1.028 MB / 0.7793 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.004195, allocations: 7.938 kB / 0.7793 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.004344, allocations: 59.34 kB / 0.7793 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.004538, allocations: 59.34 kB / 0.7794 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.00501, allocations: 303.4 kB / 0.7797 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004811/0.005491, allocations: 0.6557 MB / 0.7803 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/0.005861, allocations: 380 kB / 0.7807 GB, free: 9.051 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002815/0.006142, allocations: 335.3 kB / 0.781 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.006332, allocations: 183.4 kB / 0.7812 GB, free: 8.543 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.742e-05/0.00639, allocations: 68 kB / 0.7813 GB, free: 8.477 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.006513, allocations: 87.92 kB / 0.7813 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.006619, allocations: 147.6 kB / 0.7815 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.006728, allocations: 171.6 kB / 0.7816 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003701/0.007098, allocations: 462.3 kB / 0.7821 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.007099, allocations: 0 / 0.7821 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.41e-07/0.0071, allocations: 0 / 0.7821 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.007106, allocations: 0 / 0.7821 GB, free: 7.625 MB / 0.7448 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.0005979/0.007703, allocations: 0.644 MB / 0.7827 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.88e-05/0.007732, allocations: 8.031 kB / 0.7827 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003102/0.008042, allocations: 108.8 kB / 0.7828 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.008277, allocations: 225.7 kB / 0.783 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.008312, allocations: 45.69 kB / 0.7831 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.008352, allocations: 52.38 kB / 0.7831 GB, free: 6.496 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.00873, allocations: 427.2 kB / 0.7835 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.008741, allocations: 4.188 kB / 0.7835 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.008768, allocations: 20.38 kB / 0.7836 GB, free: 6.023 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.008791, allocations: 28.92 kB / 0.7836 GB, free: 5.996 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.008981, allocations: 149.6 kB / 0.7837 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.01007, allocations: 1.383 MB / 0.7851 GB, free: 4.418 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/0.0103, allocations: 269.2 kB / 0.7853 GB, free: 4.125 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.292e-05/0.01039, allocations: 90.53 kB / 0.7854 GB, free: 4.027 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.01042, allocations: 11.95 kB / 0.7854 GB, free: 4.016 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001718/0.01059, allocations: 208.6 kB / 0.7856 GB, free: 3.789 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 1.373e-06/0.01059, allocations: 0 / 0.7856 GB, free: 3.789 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.0002718/0.01086, allocations: 254.8 kB / 0.7859 GB, free: 3.535 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.0109, allocations: 110.8 kB / 0.786 GB, free: 3.402 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.01103, allocations: 237.9 kB / 0.7862 GB, free: 3.156 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/0.01107, allocations: 57.94 kB / 0.7863 GB, free: 3.094 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.01115, allocations: 205.4 kB / 0.7865 GB, free: 2.887 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.813e-05/0.01122, allocations: 127 kB / 0.7866 GB, free: 2.762 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.01134, allocations: 146.2 kB / 0.7867 GB, free: 2.613 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.01142, allocations: 342.8 kB / 0.7871 GB, free: 2.27 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.475e-05/0.0115, allocations: 64.05 kB / 0.7871 GB, free: 2.203 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.01162, allocations: 188.7 kB / 0.7873 GB, free: 1.973 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.01184, allocations: 279 kB / 0.7876 GB, free: 1.648 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.01184, allocations: 4 kB / 0.7876 GB, free: 1.645 MB / 0.7448 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0002679/0.01211, allocations: 301 kB / 0.7879 GB, free: 1.344 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.01212, allocations: 4 kB / 0.7879 GB, free: 1.34 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.01213, allocations: 7.984 kB / 0.7879 GB, free: 1.332 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.01214, allocations: 11.94 kB / 0.7879 GB, free: 1.32 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.0123, allocations: 76.25 kB / 0.7879 GB, free: 1.246 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.01231, allocations: 11.94 kB / 0.788 GB, free: 1.234 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.01242, allocations: 63.61 kB / 0.788 GB, free: 1.172 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.01244, allocations: 20 kB / 0.788 GB, free: 1.152 MB / 0.7448 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,con.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,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,con.stateGraphRoot.suspend,con.stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.01255, allocations: 173.8 kB / 0.7882 GB, free: 0.9688 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.01259, allocations: 31.97 kB / 0.7882 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.01279, allocations: 208.9 kB / 0.7884 GB, free: 0.7266 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.01279, allocations: 11.92 kB / 0.7884 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.0128, allocations: 0 / 0.7884 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.011e-05/0.01282, allocations: 31.69 kB / 0.7885 GB, free: 0.6836 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.01284, allocations: 12 kB / 0.7885 GB, free: 0.6719 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.724e-05/0.0129, allocations: 19.98 kB / 0.7885 GB, free: 0.6523 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.01297, allocations: 43.91 kB / 0.7885 GB, free: 0.6094 MB / 0.7448 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000239/0.01321, allocations: 478.7 kB / 0.789 GB, free: 136 kB / 0.7448 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000286/0.01349, allocations: 0.5718 MB / 0.7896 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.634e-05/0.01359, allocations: 105.5 kB / 0.7897 GB, free: 15.43 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 3.541e-05/0.01363, allocations: 50.05 kB / 0.7897 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of Backend: time 1.21e-07/0.01363, allocations: 0 / 0.7897 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0004543/0.01408, allocations: 265.1 kB / 0.79 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of SimCode: time 0.0009449/0.01502, allocations: 1.163 MB / 0.7911 GB, free: 13.91 MB / 0.7605 GB Notification: Performance of Templates: time 0.006934/0.02196, allocations: 5.175 MB / 0.7962 GB, free: 8.797 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=240 -lv LOG_STATS > Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.055526080541313]