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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.566/1.566, allocations: 292.3 MB / 308.1 MB, free: 4.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001357/0.001357, allocations: 190.4 kB / 376.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205 MB / 0.6353 GB, free: 9.773 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 101.1 kB / 0.748 GB, free: 61.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 55.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.233, allocations: 114.5 MB / 0.9822 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004067/0.2371, allocations: 2.359 MB / 0.9845 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001993/0.2392, allocations: 0.9982 MB / 0.9855 GB, free: 7.008 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000353/0.2396, allocations: 15.94 kB / 0.9855 GB, free: 6.992 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.2398, allocations: 43.59 kB / 0.9856 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0003501/0.2402, allocations: 31.77 kB / 0.9856 GB, free: 6.918 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.2408, allocations: 251.8 kB / 0.9858 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0007725/0.2416, allocations: 0.5816 MB / 0.9864 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006858/0.2423, allocations: 417.7 kB / 0.9868 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.2426, allocations: 183.3 kB / 0.987 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00029/0.2429, allocations: 211 kB / 0.9872 GB, free: 5.289 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 7.662e-05/0.243, allocations: 36 kB / 0.9872 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.2431, allocations: 55.98 kB / 0.9873 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.2433, allocations: 107.7 kB / 0.9874 GB, free: 5.094 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.2435, allocations: 218.8 kB / 0.9876 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0005814/0.2441, allocations: 0.6584 MB / 0.9882 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2441, allocations: 0 / 0.9882 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.42e-07/0.2441, allocations: 0 / 0.9882 GB, free: 4.219 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.683e-05/0.2441, allocations: 0 / 0.9882 GB, free: 4.219 MB / 0.7136 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.001268/0.2454, allocations: 0.7281 MB / 0.9889 GB, free: 3.438 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2455, allocations: 11.97 kB / 0.9889 GB, free: 3.426 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.2456, allocations: 52.38 kB / 0.989 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.246, allocations: 340.2 kB / 0.9893 GB, free: 3.004 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/0.2461, allocations: 45.69 kB / 0.9894 GB, free: 2.961 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.2462, allocations: 52.38 kB / 0.9894 GB, free: 2.91 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.2471, allocations: 0.5816 MB / 0.99 GB, free: 2.301 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.2471, allocations: 4 kB / 0.99 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.07e-05/0.2472, allocations: 20 kB / 0.99 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.74e-05/0.2472, allocations: 17 kB / 0.99 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008507/0.2481, allocations: 435.6 kB / 0.9904 GB, free: 1.836 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.2508, allocations: 1.919 MB / 0.9923 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005804/0.2514, allocations: 366.9 kB / 0.9926 GB, free: 15.47 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.2517, allocations: 180.8 kB / 0.9928 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.778e-05/0.2518, allocations: 11.98 kB / 0.9928 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003718/0.2521, allocations: 226 kB / 0.993 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 2.966e-06/0.2521, allocations: 0 / 0.993 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.000854/0.253, allocations: 478.6 kB / 0.9935 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.2531, allocations: 67.09 kB / 0.9936 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.2533, allocations: 249.4 kB / 0.9938 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.2534, allocations: 49.7 kB / 0.9939 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.2535, allocations: 212.8 kB / 0.9941 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.2536, allocations: 122.5 kB / 0.9942 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.2538, allocations: 142.3 kB / 0.9943 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.254, allocations: 342.7 kB / 0.9946 GB, free: 13.37 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.2543, allocations: 161.2 kB / 0.9948 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.2546, allocations: 288.8 kB / 0.9951 GB, free: 12.88 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005618/0.2552, allocations: 406.4 kB / 0.9955 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.2552, allocations: 0 / 0.9955 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007817/0.256, allocations: 0.5063 MB / 0.9959 GB, free: 11.92 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.256, allocations: 4 kB / 0.996 GB, free: 11.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.256, allocations: 4 kB / 0.996 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.2561, allocations: 8 kB / 0.996 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.2563, allocations: 59.84 kB / 0.996 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.2563, allocations: 11.94 kB / 0.996 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.2566, allocations: 59.72 kB / 0.9961 GB, free: 11.78 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.2566, allocations: 28 kB / 0.9961 GB, free: 11.75 MB / 0.7292 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.condition,con.t3.enableFire,con.t3.condition,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.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,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.0002434/0.2569, allocations: 238.8 kB / 0.9963 GB, free: 11.51 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.344e-05/0.2569, allocations: 23.72 kB / 0.9964 GB, free: 11.48 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007159/0.2576, allocations: 431.5 kB / 0.9968 GB, free: 11.06 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2577, allocations: 7.938 kB / 0.9968 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2577, allocations: 4 kB / 0.9968 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.2577, allocations: 0 / 0.9968 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.2592, allocations: 1.122 MB / 0.9979 GB, free: 9.852 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2592, allocations: 4 kB / 0.9979 GB, free: 9.848 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.2593, allocations: 31.91 kB / 0.9979 GB, free: 9.816 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.235e-05/0.2593, allocations: 7.938 kB / 0.9979 GB, free: 9.809 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.2594, allocations: 12 kB / 0.9979 GB, free: 9.797 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2594, allocations: 0 / 0.9979 GB, free: 9.797 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2594, allocations: 0 / 0.9979 GB, free: 9.797 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.2606, allocations: 1.277 MB / 0.9992 GB, free: 8.465 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.757e-05/0.2607, allocations: 112.6 kB / 0.9993 GB, free: 8.336 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.2607, allocations: 12 kB / 0.9993 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.2609, allocations: 19.98 kB / 0.9993 GB, free: 8.305 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.261, allocations: 64.36 kB / 0.9994 GB, free: 8.242 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.2611, allocations: 15.98 kB / 0.9994 GB, free: 8.227 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001115/0.2612, allocations: 140.2 kB / 0.9995 GB, free: 8.09 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1e-07/0.2612, allocations: 3.938 kB / 0.9995 GB, free: 8.086 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004917/0.2617, allocations: 111.6 kB / 0.9996 GB, free: 7.977 MB / 0.7292 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 (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.0002235/0.2619, allocations: 145.8 kB / 0.9998 GB, free: 7.824 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007224/0.2627, allocations: 442.4 kB / 1 GB, free: 7.391 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2627, allocations: 4.062 kB / 1 GB, free: 7.387 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003198/0.263, allocations: 214.4 kB / 1 GB, free: 7.18 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.2634, allocations: 42.78 kB / 1 GB, free: 7.141 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.2649, allocations: 1.195 MB / 1.002 GB, free: 5.902 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.2653, allocations: 0.8389 MB / 1.002 GB, free: 5.035 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002022/0.2655, allocations: 63.25 kB / 1.002 GB, free: 4.977 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.2657, allocations: 35.42 kB / 1.003 GB, free: 4.941 MB / 0.7292 GB Notification: Performance of SimCode: time 1.893e-06/0.2657, allocations: 0 / 1.003 GB, free: 4.941 MB / 0.7292 GB Notification: Performance of Templates: time 0.008257/0.2739, allocations: 4.162 MB / 1.007 GB, free: 0.7969 MB / 0.7292 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)