Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.364/2.364, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 187.9 kB / 0.4901 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.602/1.602, allocations: 223.1 MB / 0.7992 GB, free: 14.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009769/0.0009766, allocations: 104.9 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005335/0.0005338, allocations: 11.28 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4052, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2327/0.638, allocations: 154.2 MB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004297/0.6385, allocations: 99.92 kB / 1.38 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02318/0.6617, allocations: 8.397 MB / 1.388 GB, free: 6.656 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.767e-06/0.6618, allocations: 0 / 1.388 GB, free: 6.656 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.879e-05/0.6618, allocations: 12.66 kB / 1.388 GB, free: 6.645 MB / 0.8855 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.001245/0.6631, allocations: 0.6498 MB / 1.389 GB, free: 5.941 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.535e-05/0.6632, allocations: 8.031 kB / 1.389 GB, free: 5.934 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.6633, allocations: 98.5 kB / 1.389 GB, free: 5.828 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.6635, allocations: 51.44 kB / 1.389 GB, free: 5.777 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.664, allocations: 327.2 kB / 1.389 GB, free: 5.414 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.447e-05/0.6641, allocations: 53.25 kB / 1.389 GB, free: 5.359 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.6642, allocations: 56.34 kB / 1.389 GB, free: 5.305 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.6652, allocations: 0.5695 MB / 1.39 GB, free: 4.707 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.6652, allocations: 3.938 kB / 1.39 GB, free: 4.703 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.6653, allocations: 20 kB / 1.39 GB, free: 4.684 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.285e-05/0.6654, allocations: 21 kB / 1.39 GB, free: 4.664 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007765/0.6661, allocations: 423.6 kB / 1.39 GB, free: 4.246 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002733/0.6689, allocations: 1.919 MB / 1.392 GB, free: 2.25 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007348/0.6696, allocations: 401 kB / 1.393 GB, free: 1.828 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 8.158e-05/0.6697, allocations: 15.98 kB / 1.393 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.6702, allocations: 273 kB / 1.393 GB, free: 1.52 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.074e-06/0.6702, allocations: 0 / 1.393 GB, free: 1.52 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001033/0.6713, allocations: 499.8 kB / 1.393 GB, free: 1.027 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.957e-05/0.6714, allocations: 126.7 kB / 1.394 GB, free: 0.8789 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.6716, allocations: 217.2 kB / 1.394 GB, free: 0.6602 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/0.6717, allocations: 53.69 kB / 1.394 GB, free: 0.6016 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.6719, allocations: 208.9 kB / 1.394 GB, free: 404 kB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.672, allocations: 118.6 kB / 1.394 GB, free: 284 kB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.542e-05/0.6721, allocations: 8 kB / 1.394 GB, free: 276 kB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002219/0.6723, allocations: 342.8 kB / 1.394 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.6726, allocations: 161.2 kB / 1.395 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.673, allocations: 296.8 kB / 1.395 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.6734, allocations: 174.1 kB / 1.395 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.6734, allocations: 0 / 1.395 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008621/0.6743, allocations: 0.5105 MB / 1.396 GB, free: 14.74 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.6743, allocations: 12 kB / 1.396 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.6743, allocations: 4 kB / 1.396 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.6743, allocations: 4 kB / 1.396 GB, free: 14.72 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.6746, allocations: 75.77 kB / 1.396 GB, free: 14.65 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.6746, allocations: 4 kB / 1.396 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.6749, allocations: 51.72 kB / 1.396 GB, free: 14.59 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.309e-05/0.675, allocations: 31.98 kB / 1.396 GB, free: 14.56 MB / 0.9011 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,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003261/0.6753, allocations: 228.5 kB / 1.396 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.978e-05/0.6754, allocations: 27.7 kB / 1.396 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008394/0.6762, allocations: 443.4 kB / 1.396 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.6762, allocations: 4 kB / 1.396 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.036e-06/0.6762, allocations: 0 / 1.396 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.6763, allocations: 4 kB / 1.396 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.6779, allocations: 1.077 MB / 1.397 GB, free: 12.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.6779, allocations: 0 / 1.397 GB, free: 12.73 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.6781, allocations: 43.84 kB / 1.397 GB, free: 12.68 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.6781, allocations: 7.953 kB / 1.397 GB, free: 12.68 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.6782, allocations: 19.97 kB / 1.397 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.6782, allocations: 0 / 1.397 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.6782, allocations: 4 kB / 1.398 GB, free: 12.65 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007606/0.679, allocations: 0.5321 MB / 1.398 GB, free: 12.08 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 7.526e-05/0.6791, allocations: 104.7 kB / 1.398 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.754e-05/0.6791, allocations: 12 kB / 1.398 GB, free: 11.95 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.6793, allocations: 35.91 kB / 1.398 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.6795, allocations: 68.28 kB / 1.398 GB, free: 11.85 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-05/0.6795, allocations: 16 kB / 1.398 GB, free: 11.83 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001251/0.6797, allocations: 136.3 kB / 1.398 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6797, allocations: 0 / 1.398 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004451/0.6801, allocations: 95.94 kB / 1.398 GB, free: 11.61 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,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: 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 (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001425/0.6815, allocations: 1.269 MB / 1.4 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0008367/0.6824, allocations: 453.8 kB / 1.4 GB, free: 9.852 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.6824, allocations: 0 / 1.4 GB, free: 9.852 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000405/0.6828, allocations: 226.4 kB / 1.4 GB, free: 9.633 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.6832, allocations: 41.81 kB / 1.4 GB, free: 9.594 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004687/0.6879, allocations: 4.324 MB / 1.405 GB, free: 5.145 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.6884, allocations: 0.8311 MB / 1.405 GB, free: 4.289 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000242/0.6887, allocations: 67.23 kB / 1.405 GB, free: 4.227 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002536/0.689, allocations: 139.4 kB / 1.406 GB, free: 4.094 MB / 0.9011 GB Notification: Performance of SimCode: time 7.82e-07/0.689, allocations: 0 / 1.406 GB, free: 4.094 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.7132, allocations: 7.195 MB / 1.413 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002221/0.7135, allocations: 209 kB / 1.413 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.336, allocations: 2.391 kB / 1.413 GB, free: 12.85 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat does not exist to compare? outputFormat=mat