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.001322/0.001322, allocations: 79.69 kB / 21.74 MB, free: 2.512 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.0009999/0.0009999, allocations: 173.8 kB / 25.18 MB, free: 9.102 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.8744/0.8744, allocations: 177.2 MB / 205.6 MB, free: 4.359 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.849/1.849, allocations: 389.5 MB / 0.6364 GB, free: 13.3 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 2.014e-06/2.014e-06, allocations: 0 / 0.7756 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.253e-05/2.455e-05, allocations: 2.312 kB / 0.7756 GB, free: 14.56 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002847/0.002871, allocations: 2.34 MB / 0.7778 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001549/0.00442, allocations: 1.016 MB / 0.7788 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.004599, allocations: 15.88 kB / 0.7789 GB, free: 11.17 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.004791, allocations: 67.33 kB / 0.7789 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.005007, allocations: 51.47 kB / 0.779 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005796/0.005586, allocations: 303.4 kB / 0.7793 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0008918/0.006478, allocations: 0.6519 MB / 0.7799 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004541/0.006932, allocations: 387.8 kB / 0.7803 GB, free: 9.719 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.00724, allocations: 331.4 kB / 0.7806 GB, free: 9.395 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.007451, allocations: 175.5 kB / 0.7807 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.699e-05/0.007508, allocations: 68 kB / 0.7808 GB, free: 9.156 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.007646, allocations: 87.92 kB / 0.7809 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.007756, allocations: 155.5 kB / 0.781 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.007874, allocations: 163.6 kB / 0.7812 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004227/0.008297, allocations: 466.3 kB / 0.7816 GB, free: 8.301 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.008299, allocations: 0 / 0.7816 GB, free: 8.301 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.61e-07/0.0083, allocations: 0 / 0.7816 GB, free: 8.301 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.922e-06/0.008305, allocations: 0 / 0.7816 GB, free: 8.301 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.0006661/0.008972, allocations: 0.6401 MB / 0.7823 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.009005, allocations: 12.03 kB / 0.7823 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.009325, allocations: 124.7 kB / 0.7824 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.009587, allocations: 213.8 kB / 0.7826 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.141e-05/0.009629, allocations: 49.67 kB / 0.7827 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.009673, allocations: 52.38 kB / 0.7827 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/0.01008, allocations: 427.2 kB / 0.7831 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.01009, allocations: 4.188 kB / 0.7831 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.01011, allocations: 24.36 kB / 0.7831 GB, free: 6.688 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.01014, allocations: 24.94 kB / 0.7832 GB, free: 6.664 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.01032, allocations: 153.6 kB / 0.7833 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.01144, allocations: 1.376 MB / 0.7846 GB, free: 5.09 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.01169, allocations: 269.2 kB / 0.7849 GB, free: 4.797 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.527e-05/0.01177, allocations: 102 kB / 0.785 GB, free: 4.691 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.0118, allocations: 15.89 kB / 0.785 GB, free: 4.676 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.01198, allocations: 196.7 kB / 0.7852 GB, free: 4.461 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 2.144e-06/0.01199, allocations: 0 / 0.7852 GB, free: 4.461 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.0002929/0.01228, allocations: 254.7 kB / 0.7854 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/0.01234, allocations: 118.8 kB / 0.7856 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.01248, allocations: 238 kB / 0.7858 GB, free: 3.82 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.01251, allocations: 49.94 kB / 0.7858 GB, free: 3.766 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.558e-05/0.01261, allocations: 213.3 kB / 0.786 GB, free: 3.551 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.819e-05/0.01267, allocations: 123 kB / 0.7862 GB, free: 3.43 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004165/0.01309, allocations: 142.2 kB / 0.7863 GB, free: 3.285 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.01319, allocations: 346.7 kB / 0.7866 GB, free: 2.938 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.404e-05/0.01326, allocations: 64.11 kB / 0.7867 GB, free: 2.871 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.0134, allocations: 184.6 kB / 0.7869 GB, free: 2.645 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.01363, allocations: 283 kB / 0.7871 GB, free: 2.316 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.01363, allocations: 0 / 0.7871 GB, free: 2.316 MB / 0.7448 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0002877/0.01392, allocations: 305 kB / 0.7874 GB, free: 2.012 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.01393, allocations: 4 kB / 0.7874 GB, free: 2.008 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.01394, allocations: 7.938 kB / 0.7874 GB, free: 2 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.01395, allocations: 8 kB / 0.7874 GB, free: 1.992 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.01412, allocations: 76.31 kB / 0.7875 GB, free: 1.918 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.01413, allocations: 11.94 kB / 0.7875 GB, free: 1.906 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.01423, allocations: 59.61 kB / 0.7876 GB, free: 1.848 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.01425, allocations: 16 kB / 0.7876 GB, free: 1.832 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.0001329/0.01438, allocations: 177.7 kB / 0.7878 GB, free: 1.648 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.496e-05/0.01442, allocations: 39.97 kB / 0.7878 GB, free: 1.609 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/0.01463, allocations: 204.9 kB / 0.788 GB, free: 1.402 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.01464, allocations: 4 kB / 0.788 GB, free: 1.398 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.01464, allocations: 0 / 0.788 GB, free: 1.398 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.01465, allocations: 7.922 kB / 0.788 GB, free: 1.391 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005625/0.01521, allocations: 0.6512 MB / 0.7886 GB, free: 0.6953 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.01521, allocations: 0 / 0.7886 GB, free: 0.6953 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.455e-05/0.0153, allocations: 39.92 kB / 0.7887 GB, free: 0.6562 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.0153, allocations: 0 / 0.7887 GB, free: 0.6562 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.01531, allocations: 15.98 kB / 0.7887 GB, free: 0.6406 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.01532, allocations: 4 kB / 0.7887 GB, free: 0.6367 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.01532, allocations: 7.938 kB / 0.7887 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.01554, allocations: 365 kB / 0.7891 GB, free: 248 kB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.01555, allocations: 27.78 kB / 0.7891 GB, free: 220 kB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.01558, allocations: 12 kB / 0.7891 GB, free: 208 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.88e-05/0.01565, allocations: 15.98 kB / 0.7891 GB, free: 192 kB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.01573, allocations: 46.75 kB / 0.7892 GB, free: 144 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.01575, allocations: 15.98 kB / 0.7892 GB, free: 128 kB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.457e-05/0.01578, allocations: 50.05 kB / 0.7892 GB, free: 76 kB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01578, allocations: 0 / 0.7892 GB, free: 76 kB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002336/0.01601, allocations: 111.7 kB / 0.7893 GB, free: 15.96 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 38 (con.t4.t_start,con.t3.t_start,con.t2.enableFire,con.t1.enableFire,con.discharge.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$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: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001382/0.01615, allocations: 120.3 kB / 0.7894 GB, free: 15.84 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002422/0.0164, allocations: 245 kB / 0.7897 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.0164, allocations: 256 / 0.7897 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.01651, allocations: 129.1 kB / 0.7898 GB, free: 15.47 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.0167, allocations: 51.86 kB / 0.7898 GB, free: 15.42 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008356/0.01754, allocations: 0.6711 MB / 0.7905 GB, free: 14.71 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.01767, allocations: 204.2 kB / 0.7907 GB, free: 14.48 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.01782, allocations: 123.3 kB / 0.7908 GB, free: 14.36 MB / 0.7605 GB Notification: Performance of SimCode: time 5.51e-07/0.01782, allocations: 0 / 0.7908 GB, free: 14.36 MB / 0.7605 GB Notification: Performance of Templates: time 0.005131/0.02295, allocations: 4.963 MB / 0.7957 GB, free: 9.406 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 > Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.849235042929649]