Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.55/1.55, allocations: 249.3 MB / 261.8 MB, free: 5.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 180.6 kB / 321.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.801/1.801, allocations: 205.2 MB / 0.572 GB, free: 10.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 96.73 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.568e-05/4.587e-05, allocations: 0 / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2639, allocations: 106.3 MB / 0.8919 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9094/1.173, allocations: 135.9 MB / 1.025 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/1.174, allocations: 93.94 kB / 1.025 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02078/1.195, allocations: 8.214 MB / 1.033 GB, free: 7.965 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.204e-06/1.195, allocations: 0 / 1.033 GB, free: 7.965 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.69e-05/1.195, allocations: 8 kB / 1.033 GB, free: 7.957 MB / 0.6511 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.001021/1.196, allocations: 0.6251 MB / 1.033 GB, free: 7.32 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.402e-05/1.196, allocations: 12.03 kB / 1.033 GB, free: 7.309 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/1.196, allocations: 89.52 kB / 1.033 GB, free: 7.242 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/1.196, allocations: 47.44 kB / 1.033 GB, free: 7.195 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/1.196, allocations: 341.4 kB / 1.034 GB, free: 6.879 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.244e-05/1.196, allocations: 45.62 kB / 1.034 GB, free: 6.855 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/1.197, allocations: 61.44 kB / 1.034 GB, free: 6.812 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009194/1.197, allocations: 0.5487 MB / 1.034 GB, free: 6.398 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/1.198, allocations: 3.953 kB / 1.034 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/1.198, allocations: 20.62 kB / 1.034 GB, free: 6.391 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.192e-05/1.198, allocations: 21 kB / 1.034 GB, free: 6.371 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006651/1.198, allocations: 401.5 kB / 1.035 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/1.201, allocations: 1.907 MB / 1.037 GB, free: 4.523 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005599/1.201, allocations: 348.3 kB / 1.037 GB, free: 4.289 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/1.201, allocations: 176 kB / 1.037 GB, free: 4.18 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.215e-05/1.202, allocations: 4.938 kB / 1.037 GB, free: 4.176 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003725/1.202, allocations: 217.3 kB / 1.037 GB, free: 4.008 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.066e-06/1.202, allocations: 0 / 1.037 GB, free: 4.008 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0006379/1.203, allocations: 334.3 kB / 1.038 GB, free: 3.754 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/1.203, allocations: 67.11 kB / 1.038 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/1.203, allocations: 221.1 kB / 1.038 GB, free: 3.496 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/1.203, allocations: 44.89 kB / 1.038 GB, free: 3.457 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/1.203, allocations: 230 kB / 1.038 GB, free: 3.258 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.161e-05/1.203, allocations: 107.7 kB / 1.038 GB, free: 3.168 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/1.203, allocations: 10 kB / 1.038 GB, free: 3.168 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001538/1.203, allocations: 340 kB / 1.039 GB, free: 2.84 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002704/1.204, allocations: 159.2 kB / 1.039 GB, free: 2.742 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/1.204, allocations: 281.2 kB / 1.039 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/1.204, allocations: 161.6 kB / 1.039 GB, free: 2.379 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.204, allocations: 0 / 1.039 GB, free: 2.379 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007216/1.205, allocations: 491.9 kB / 1.04 GB, free: 2.008 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/1.205, allocations: 12.03 kB / 1.04 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.205, allocations: 4 kB / 1.04 GB, free: 1.992 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/1.205, allocations: 4 kB / 1.04 GB, free: 1.988 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/1.205, allocations: 63.16 kB / 1.04 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.927e-05/1.205, allocations: 11.94 kB / 1.04 GB, free: 1.918 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/1.206, allocations: 50.27 kB / 1.04 GB, free: 1.879 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.543e-05/1.206, allocations: 27.56 kB / 1.04 GB, free: 1.855 MB / 0.6511 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$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.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,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.enableFire,con.t4.enableFire) * Number of discrete 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.0001611/1.206, allocations: 170 kB / 1.04 GB, free: 1.703 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/1.206, allocations: 23.72 kB / 1.04 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006974/1.207, allocations: 424.6 kB / 1.041 GB, free: 1.383 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/1.207, allocations: 4 kB / 1.041 GB, free: 1.379 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/1.207, allocations: 0 / 1.041 GB, free: 1.379 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/1.207, allocations: 0 / 1.041 GB, free: 1.379 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/1.208, allocations: 1.051 MB / 1.042 GB, free: 0.5195 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.208, allocations: 0 / 1.042 GB, free: 0.5195 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/1.208, allocations: 43.09 kB / 1.042 GB, free: 492 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/1.208, allocations: 7.953 kB / 1.042 GB, free: 484 kB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/1.209, allocations: 13.8 kB / 1.042 GB, free: 476 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.209, allocations: 0 / 1.042 GB, free: 476 kB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.209, allocations: 0 / 1.042 GB, free: 476 kB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000594/1.209, allocations: 480.7 kB / 1.042 GB, free: 76 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.04e-05/1.209, allocations: 104.8 kB / 1.042 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/1.209, allocations: 14.7 kB / 1.042 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/1.209, allocations: 31.11 kB / 1.042 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/1.21, allocations: 66.77 kB / 1.042 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/1.21, allocations: 19.5 kB / 1.042 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001269/1.21, allocations: 137 kB / 1.042 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.2e-07/1.21, allocations: 0 / 1.042 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004245/1.21, allocations: 86.5 kB / 1.042 GB, free: 15.67 MB / 0.6667 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * 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.001066/1.211, allocations: 1.051 MB / 1.044 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0006649/1.212, allocations: 423.1 kB / 1.044 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.212, allocations: 0 / 1.044 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002774/1.212, allocations: 207.3 kB / 1.044 GB, free: 14.25 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/1.213, allocations: 39.48 kB / 1.044 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/1.214, allocations: 0.6265 MB / 1.045 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/1.214, allocations: 0.8376 MB / 1.046 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002409/1.215, allocations: 63.25 kB / 1.046 GB, free: 12.75 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/1.215, allocations: 143.1 kB / 1.046 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of SimCode: time 6.71e-07/1.215, allocations: 0 / 1.046 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/1.237, allocations: 7.248 MB / 1.053 GB, free: 5.645 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002658/1.237, allocations: 184.7 kB / 1.053 GB, free: 5.426 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/3.449, allocations: 5.781 kB / 1.053 GB, free: 5.422 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)