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.002282/0.002282, allocations: 80.55 kB / 19.96 MB, free: 4.602 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.002181/0.002181, allocations: 173.2 kB / 23.23 MB, free: 1.328 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 1.589/1.589, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 178] 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 3.147/3.147, allocations: 389.5 MB / 0.6343 GB, free: 12.61 MB / 0.6042 GB " [Timeout remaining time 176] 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.463e-06/1.463e-06, allocations: 0 / 1.001 GB, free: 13.06 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.268e-05/3.414e-05, allocations: 6.219 kB / 1.001 GB, free: 13.05 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004309/0.004343, allocations: 2.227 MB / 1.003 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.002238/0.006581, allocations: 0.9817 MB / 1.004 GB, free: 9.828 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002849/0.006866, allocations: 15.88 kB / 1.004 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.007144, allocations: 63.28 kB / 1.004 GB, free: 9.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0003459/0.00749, allocations: 43.53 kB / 1.004 GB, free: 9.707 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008629/0.008353, allocations: 307.4 kB / 1.005 GB, free: 9.406 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0009967/0.00935, allocations: 0.6557 MB / 1.005 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008687/0.01022, allocations: 377.1 kB / 1.006 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006934/0.01091, allocations: 351.4 kB / 1.006 GB, free: 8.031 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.01129, allocations: 167.5 kB / 1.006 GB, free: 7.867 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.01144, allocations: 68 kB / 1.006 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002269/0.01166, allocations: 83.98 kB / 1.006 GB, free: 7.719 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0002267/0.01189, allocations: 151.6 kB / 1.006 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.0122, allocations: 167.6 kB / 1.007 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.01328, allocations: 0.7905 MB / 1.007 GB, free: 6.613 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.01329, allocations: 0 / 1.007 GB, free: 6.613 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.623e-06/0.01329, allocations: 0 / 1.007 GB, free: 6.613 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 2.375e-05/0.01331, allocations: 4 kB / 1.007 GB, free: 6.609 MB / 0.9636 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.001463/0.01477, allocations: 0.6651 MB / 1.008 GB, free: 5.914 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.01481, allocations: 8.75 kB / 1.008 GB, free: 5.906 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005805/0.01539, allocations: 88.53 kB / 1.008 GB, free: 5.82 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005318/0.01593, allocations: 285.7 kB / 1.008 GB, free: 5.512 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.876e-05/0.016, allocations: 49.69 kB / 1.008 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.433e-05/0.01609, allocations: 60.36 kB / 1.008 GB, free: 5.402 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.01724, allocations: 0.5701 MB / 1.009 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.01725, allocations: 192 / 1.009 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.121e-05/0.01731, allocations: 28.25 kB / 1.009 GB, free: 4.773 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.72e-05/0.01734, allocations: 20.94 kB / 1.009 GB, free: 4.754 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009073/0.01825, allocations: 419.7 kB / 1.009 GB, free: 4.344 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.02158, allocations: 1.661 MB / 1.011 GB, free: 2.621 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009589/0.02254, allocations: 352.3 kB / 1.011 GB, free: 2.25 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/0.02303, allocations: 174.5 kB / 1.012 GB, free: 2.07 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 6.3e-05/0.02309, allocations: 8 kB / 1.012 GB, free: 2.062 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006906/0.02378, allocations: 269.8 kB / 1.012 GB, free: 1.777 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=48): time 1.345e-05/0.02379, allocations: 0 / 1.012 GB, free: 1.777 MB / 0.9636 GB Notification: Performance of matching and sorting (n=48): time 0.0015/0.02529, allocations: 0.4888 MB / 1.012 GB, free: 1.285 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000236/0.02553, allocations: 110.8 kB / 1.012 GB, free: 1.152 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.02594, allocations: 239.7 kB / 1.013 GB, free: 0.9102 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.26e-05/0.02603, allocations: 53.69 kB / 1.013 GB, free: 0.8516 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/0.0263, allocations: 221.3 kB / 1.013 GB, free: 0.6328 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.02648, allocations: 119.1 kB / 1.013 GB, free: 0.5156 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003053/0.02678, allocations: 146.2 kB / 1.013 GB, free: 376 kB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002405/0.02702, allocations: 338.8 kB / 1.014 GB, free: 28 kB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.02752, allocations: 165.5 kB / 1.014 GB, free: 15.86 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006662/0.02819, allocations: 300.6 kB / 1.014 GB, free: 15.52 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009839/0.02917, allocations: 401.2 kB / 1.014 GB, free: 15.07 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.02918, allocations: 0 / 1.014 GB, free: 15.07 MB / 0.9792 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00137/0.03055, allocations: 0.5089 MB / 1.015 GB, free: 14.56 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.03058, allocations: 10.5 kB / 1.015 GB, free: 14.55 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.03059, allocations: 4 kB / 1.015 GB, free: 14.55 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.03062, allocations: 4 kB / 1.015 GB, free: 14.54 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.03099, allocations: 63.84 kB / 1.015 GB, free: 14.48 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.03101, allocations: 7.984 kB / 1.015 GB, free: 14.47 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000352/0.03137, allocations: 63.61 kB / 1.015 GB, free: 14.41 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.547e-05/0.03142, allocations: 24.28 kB / 1.015 GB, free: 14.39 MB / 0.9792 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.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 (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.0004489/0.03187, allocations: 238.8 kB / 1.015 GB, free: 14.14 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.449e-05/0.03195, allocations: 27.8 kB / 1.015 GB, free: 14.11 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.03301, allocations: 376.9 kB / 1.016 GB, free: 13.74 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.03302, allocations: 4 kB / 1.016 GB, free: 13.74 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.03303, allocations: 4 kB / 1.016 GB, free: 13.73 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.03304, allocations: 7.984 kB / 1.016 GB, free: 13.73 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.03527, allocations: 0.9185 MB / 1.017 GB, free: 12.76 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.03529, allocations: 4 kB / 1.017 GB, free: 12.76 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.0355, allocations: 31.91 kB / 1.017 GB, free: 12.73 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/0.03551, allocations: 4 kB / 1.017 GB, free: 12.72 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/0.03556, allocations: 8 kB / 1.017 GB, free: 12.71 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.034e-05/0.03557, allocations: 7.938 kB / 1.017 GB, free: 12.71 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.03557, allocations: 4 kB / 1.017 GB, free: 12.7 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.03665, allocations: 495.5 kB / 1.017 GB, free: 12.2 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.03671, allocations: 35.72 kB / 1.017 GB, free: 12.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.584e-05/0.03677, allocations: 12 kB / 1.017 GB, free: 12.15 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.03705, allocations: 15.98 kB / 1.017 GB, free: 12.13 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002361/0.03728, allocations: 75.84 kB / 1.017 GB, free: 12.06 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.409e-05/0.03734, allocations: 23.92 kB / 1.017 GB, free: 12.04 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0002325/0.03757, allocations: 136.2 kB / 1.017 GB, free: 11.9 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1e-07/0.03757, allocations: 0 / 1.017 GB, free: 11.9 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0007337/0.0383, allocations: 115.6 kB / 1.017 GB, free: 11.79 MB / 0.9792 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.0003306/0.03863, allocations: 139.2 kB / 1.018 GB, free: 11.65 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.001169/0.0398, allocations: 418.4 kB / 1.018 GB, free: 11.24 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.0398, allocations: 320 / 1.018 GB, free: 11.24 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0005466/0.04035, allocations: 203.5 kB / 1.018 GB, free: 11.04 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006424/0.04099, allocations: 41.48 kB / 1.018 GB, free: 11 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.04291, allocations: 0.7249 MB / 1.019 GB, free: 10.24 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.04326, allocations: 216.2 kB / 1.019 GB, free: 10.01 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.0002863/0.04354, allocations: 55.25 kB / 1.019 GB, free: 9.957 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.0437, allocations: 40.48 kB / 1.019 GB, free: 9.918 MB / 0.9792 GB Notification: Performance of SimCode: time 8.02e-07/0.0437, allocations: 0 / 1.019 GB, free: 9.918 MB / 0.9792 GB Notification: Performance of Templates: time 0.01404/0.05774, allocations: 4.097 MB / 1.023 GB, free: 5.887 MB / 0.9792 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: 8.846669158898294]