Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.29/2.29, allocations: 251.3 MB / 266.2 MB, free: 11.52 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001247/0.001247, allocations: 166.9 kB / 325.8 MB, free: 2.793 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.411/2.411, allocations: 205.4 MB / 0.5767 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009394/0.0009394, allocations: 92 kB / 0.6812 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.000463, allocations: 11.88 kB / 0.7953 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2197, allocations: 106.3 MB / 0.899 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002992/0.2227, allocations: 1.922 MB / 0.9009 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002289/0.2251, allocations: 0.9751 MB / 0.9019 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.2254, allocations: 8 kB / 0.9019 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.2257, allocations: 47.58 kB / 0.9019 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003058/0.226, allocations: 39.72 kB / 0.902 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007758/0.2268, allocations: 171.8 kB / 0.9021 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0008181/0.2276, allocations: 0.5465 MB / 0.9027 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006298/0.2283, allocations: 372.3 kB / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.2285, allocations: 143.4 kB / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.2288, allocations: 163.2 kB / 0.9033 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.54e-05/0.2289, allocations: 24 kB / 0.9033 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.229, allocations: 31.98 kB / 0.9034 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.2291, allocations: 87.66 kB / 0.9035 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.2292, allocations: 101.5 kB / 0.9035 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006429/0.2299, allocations: 0.526 MB / 0.9041 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2299, allocations: 0 / 0.9041 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.285e-06/0.2299, allocations: 0 / 0.9041 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.2299, allocations: 0 / 0.9041 GB, free: 60.21 MB / 0.6042 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.001331/0.2313, allocations: 0.6362 MB / 0.9047 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2313, allocations: 8.031 kB / 0.9047 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.2315, allocations: 48.38 kB / 0.9047 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.232, allocations: 336.3 kB / 0.9051 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.651e-05/0.232, allocations: 49.67 kB / 0.9051 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.2322, allocations: 60.38 kB / 0.9052 GB, free: 59 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.2335, allocations: 0.5736 MB / 0.9057 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.2336, allocations: 7.938 kB / 0.9057 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.034e-05/0.2337, allocations: 24 kB / 0.9058 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.2337, allocations: 17 kB / 0.9058 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.2349, allocations: 423.7 kB / 0.9062 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003053/0.2379, allocations: 1.938 MB / 0.9081 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008194/0.2388, allocations: 347.9 kB / 0.9084 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.2393, allocations: 187.5 kB / 0.9086 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.638e-05/0.2393, allocations: 11.98 kB / 0.9086 GB, free: 55.37 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005235/0.2399, allocations: 226 kB / 0.9088 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 4.409e-06/0.2399, allocations: 3.984 kB / 0.9088 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001279/0.2412, allocations: 482.5 kB / 0.9093 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.2413, allocations: 63.16 kB / 0.9093 GB, free: 54.58 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002908/0.2416, allocations: 241.7 kB / 0.9096 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.958e-05/0.2416, allocations: 45.7 kB / 0.9096 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.2418, allocations: 220.7 kB / 0.9098 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.2419, allocations: 114.5 kB / 0.9099 GB, free: 53.95 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.242, allocations: 8 kB / 0.9099 GB, free: 53.95 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.2421, allocations: 346.8 kB / 0.9103 GB, free: 53.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/0.2425, allocations: 161.2 kB / 0.9104 GB, free: 53.44 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.243, allocations: 296.6 kB / 0.9107 GB, free: 53.1 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.2435, allocations: 166.1 kB / 0.9109 GB, free: 52.94 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.2435, allocations: 4 kB / 0.9109 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001191/0.2447, allocations: 0.5061 MB / 0.9114 GB, free: 52.42 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.2448, allocations: 8.469 kB / 0.9114 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.2448, allocations: 8 kB / 0.9114 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.2448, allocations: 4 kB / 0.9114 GB, free: 52.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.2452, allocations: 63.84 kB / 0.9114 GB, free: 52.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.2453, allocations: 11.92 kB / 0.9114 GB, free: 52.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004056/0.2457, allocations: 67.52 kB / 0.9115 GB, free: 52.26 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.976e-05/0.2457, allocations: 20 kB / 0.9115 GB, free: 52.24 MB / 0.6042 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,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003599/0.2461, allocations: 238.8 kB / 0.9118 GB, free: 52 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.725e-05/0.2462, allocations: 27.62 kB / 0.9118 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.2473, allocations: 431.5 kB / 0.9122 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.2473, allocations: 4 kB / 0.9122 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.2473, allocations: 0 / 0.9122 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.2473, allocations: 0 / 0.9122 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.2495, allocations: 1.138 MB / 0.9133 GB, free: 50.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.2495, allocations: 0 / 0.9133 GB, free: 50.33 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.2498, allocations: 39.84 kB / 0.9133 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.2498, allocations: 4 kB / 0.9134 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.2499, allocations: 12 kB / 0.9134 GB, free: 50.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.2499, allocations: 7.984 kB / 0.9134 GB, free: 50.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2499, allocations: 0 / 0.9134 GB, free: 50.27 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009323/0.2508, allocations: 0.4919 MB / 0.9139 GB, free: 49.76 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.2509, allocations: 112.5 kB / 0.914 GB, free: 49.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.734e-05/0.251, allocations: 12 kB / 0.914 GB, free: 49.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.2513, allocations: 35.91 kB / 0.914 GB, free: 49.58 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.2515, allocations: 60.34 kB / 0.9141 GB, free: 49.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.641e-05/0.2516, allocations: 20 kB / 0.9141 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001342/0.2517, allocations: 135 kB / 0.9142 GB, free: 49.37 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2517, allocations: 4 kB / 0.9142 GB, free: 49.37 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005744/0.2523, allocations: 107.6 kB / 0.9143 GB, free: 49.26 MB / 0.6042 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.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$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.active,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.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002465/0.2526, allocations: 139.2 kB / 0.9144 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001068/0.2537, allocations: 445.5 kB / 0.9149 GB, free: 48.68 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2537, allocations: 0 / 0.9149 GB, free: 48.68 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004752/0.2542, allocations: 218.4 kB / 0.9151 GB, free: 48.46 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.2547, allocations: 48.8 kB / 0.9151 GB, free: 48.42 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.2564, allocations: 0.8519 MB / 0.916 GB, free: 47.54 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.2567, allocations: 0.8272 MB / 0.9168 GB, free: 46.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0003508/0.2571, allocations: 59.25 kB / 0.9168 GB, free: 46.63 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.2573, allocations: 43.42 kB / 0.9169 GB, free: 46.59 MB / 0.6042 GB Notification: Performance of SimCode: time 9.12e-07/0.2573, allocations: 0 / 0.9169 GB, free: 46.59 MB / 0.6042 GB Notification: Performance of Templates: time 0.01135/0.2686, allocations: 3.736 MB / 0.9205 GB, free: 42.89 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)