Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.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.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery",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.277/2.277, 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.001119/0.001119, allocations: 176 kB / 0.4901 GB, free: 2.23 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.607/1.607, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001025/0.001025, allocations: 110.1 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004247, allocations: 13.41 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3533, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2457/0.5991, allocations: 176.6 MB / 1.402 GB, free: 8.816 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.5995, allocations: 91.95 kB / 1.402 GB, free: 8.727 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.06501/0.6645, allocations: 24.31 MB / 1.426 GB, free: 160 kB / 0.9167 GB Notification: Performance of FrontEnd: time 2.615e-06/0.6646, allocations: 0 / 1.426 GB, free: 160 kB / 0.9167 GB Notification: Performance of Transformations before backend: time 8.962e-05/0.6647, allocations: 23.94 kB / 1.426 GB, free: 136 kB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.7229/1.388, allocations: 0.8358 MB / 1.426 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/1.388, allocations: 8.688 kB / 1.426 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001858/1.388, allocations: 124.1 kB / 1.427 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007051/1.389, allocations: 121.5 kB / 1.427 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007289/1.389, allocations: 426.4 kB / 1.427 GB, free: 179 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/1.389, allocations: 66.81 kB / 1.427 GB, free: 179 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/1.39, allocations: 81.3 kB / 1.427 GB, free: 179 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/1.391, allocations: 0.8619 MB / 1.428 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/1.391, allocations: 3.75 kB / 1.428 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/1.391, allocations: 35.48 kB / 1.428 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-05/1.391, allocations: 42.73 kB / 1.428 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000893/1.392, allocations: 0.5656 MB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003963/1.396, allocations: 3.713 MB / 1.432 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006937/1.397, allocations: 384.3 kB / 1.433 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/1.397, allocations: 8.297 kB / 1.433 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005017/1.397, allocations: 288.6 kB / 1.433 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=50): time 3.306e-06/1.397, allocations: 0.6562 kB / 1.433 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of matching and sorting (n=50): time 0.001004/1.398, allocations: 487.2 kB / 1.433 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.238e-05/1.398, allocations: 171.9 kB / 1.434 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005057/1.399, allocations: 381.4 kB / 1.434 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.951e-05/1.399, allocations: 59.59 kB / 1.434 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/1.399, allocations: 331.5 kB / 1.434 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/1.399, allocations: 133.8 kB / 1.434 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/1.399, allocations: 15.06 kB / 1.434 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001277/1.399, allocations: 366.6 kB / 1.435 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/1.4, allocations: 163.8 kB / 1.435 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/1.4, allocations: 402.5 kB / 1.435 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/1.401, allocations: 197.1 kB / 1.436 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/1.401, allocations: 6.062 kB / 1.436 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001323/1.402, allocations: 0.619 MB / 1.436 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001101/1.403, allocations: 2.702 MB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/1.403, allocations: 6.75 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.429e-05/1.403, allocations: 14.34 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005088/1.404, allocations: 109.9 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.192e-05/1.404, allocations: 15.5 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/1.404, allocations: 60.81 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.23e-05/1.404, allocations: 34.19 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/1.405, allocations: 4.688 kB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001304/1.406, allocations: 0.5525 MB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/1.406, allocations: 9.547 kB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/1.406, allocations: 19.06 kB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/1.406, allocations: 99.2 kB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.525e-05/1.406, allocations: 16.5 kB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/1.407, allocations: 60.08 kB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-05/1.407, allocations: 35.39 kB / 1.44 GB, free: 171.9 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$PRE.toOn.t_start,toOn.t_start,$PRE.toHold.t_start,toHold.t_start,$PRE.toDischarge.t_start,toDischarge.t_start,$PRE.toOff.t_start,toOff.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 97 * 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.0007236/1.408, allocations: 322.9 kB / 1.44 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/1.408, allocations: 56.77 kB / 1.44 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009237/1.409, allocations: 399.6 kB / 1.441 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/1.409, allocations: 7.031 kB / 1.441 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/1.409, allocations: 4 kB / 1.441 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/1.409, allocations: 7.453 kB / 1.441 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/1.411, allocations: 1.049 MB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/1.411, allocations: 6.969 kB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/1.411, allocations: 42.66 kB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.387e-05/1.411, allocations: 3.531 kB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/1.411, allocations: 13.45 kB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/1.411, allocations: 4.5 kB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/1.411, allocations: 5.156 kB / 1.442 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/1.413, allocations: 0.7082 MB / 1.442 GB, free: 170.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/1.413, allocations: 161.3 kB / 1.442 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/1.413, allocations: 18.47 kB / 1.442 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/1.413, allocations: 19.48 kB / 1.442 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/1.413, allocations: 52.41 kB / 1.443 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.493e-05/1.414, allocations: 18.38 kB / 1.443 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004543/1.414, allocations: 259.7 kB / 1.443 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.81e-07/1.414, allocations: 0 / 1.443 GB, free: 170.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001425/1.415, allocations: 246.6 kB / 1.443 GB, free: 170.7 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 36 (toOff.t_start,toDischarge.t_start,toHold.t_start,toOn.t_start,off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 10 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged,toOn.t_start,toHold.t_start,toDischarge.t_start,toOff.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.00159/1.417, allocations: 1.572 MB / 1.445 GB, free: 169.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001611/1.419, allocations: 0.7496 MB / 1.445 GB, free: 169.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.419, allocations: 5.281 kB / 1.445 GB, free: 169.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003397/1.419, allocations: 191.9 kB / 1.446 GB, free: 169.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005756/1.42, allocations: 98.7 kB / 1.446 GB, free: 169.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006259/1.426, allocations: 7.517 MB / 1.453 GB, free: 163.7 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007402/1.427, allocations: 0.9252 MB / 1.454 GB, free: 163 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0006159/1.427, allocations: 115.8 kB / 1.454 GB, free: 163 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/1.428, allocations: 212.4 kB / 1.454 GB, free: 163 MB / 0.9167 GB Notification: Performance of SimCode: time 1.734e-06/1.428, allocations: 0 / 1.454 GB, free: 163 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03124/1.459, allocations: 10.25 MB / 1.464 GB, free: 162.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/1.459, allocations: 182.6 kB / 1.464 GB, free: 162.2 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.533/3.992, allocations: 3.938 kB / 1.464 GB, free: 162.2 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat does not exist to compare? outputFormat=mat