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.646/2.646, allocations: 390.5 MB / 398 MB, free: 10.98 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.001132/0.001132, allocations: 180.8 kB / 491.2 MB, free: 1.574 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.677/1.677, allocations: 221.5 MB / 0.7868 GB, free: 13.37 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.0009707/0.0009707, allocations: 95.42 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.97e-05/1.972e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3007, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.406, allocations: 175.8 MB / 1.384 GB, free: 17.62 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/1.406, allocations: 80.94 kB / 1.384 GB, free: 17.62 MB / 0.823 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.05025/1.456, allocations: 23.99 MB / 1.408 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.663e-06/1.456, allocations: 0 / 1.408 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.355e-05/1.456, allocations: 23.75 kB / 1.408 GB, free: 20.36 MB / 0.8386 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.001675/1.458, allocations: 0.8023 MB / 1.408 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/1.458, allocations: 8.031 kB / 1.408 GB, free: 19.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006802/1.459, allocations: 134.9 kB / 1.409 GB, free: 19.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005511/1.459, allocations: 423.4 kB / 1.409 GB, free: 19.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/1.46, allocations: 24 kB / 1.409 GB, free: 19.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.287e-05/1.46, allocations: 51.5 kB / 1.409 GB, free: 18.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007485/1.46, allocations: 490.6 kB / 1.41 GB, free: 18.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009661/1.461, allocations: 0.7521 MB / 1.41 GB, free: 18.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/1.461, allocations: 0 / 1.41 GB, free: 18.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.237e-05/1.461, allocations: 4 kB / 1.41 GB, free: 18.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.775e-05/1.461, allocations: 45.92 kB / 1.41 GB, free: 17.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003155/1.465, allocations: 3.563 MB / 1.414 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/1.465, allocations: 355.1 kB / 1.414 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/1.466, allocations: 205.2 kB / 1.414 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/1.466, allocations: 11.56 kB / 1.414 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003973/1.466, allocations: 261.9 kB / 1.415 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/1.466, allocations: 0 / 1.415 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=50): time 0.0005854/1.467, allocations: 323.4 kB / 1.415 GB, free: 13.72 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/1.467, allocations: 169.5 kB / 1.415 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/1.467, allocations: 309 kB / 1.415 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/1.467, allocations: 44.5 kB / 1.415 GB, free: 13.24 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/1.467, allocations: 341.2 kB / 1.416 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/1.467, allocations: 126.5 kB / 1.416 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/1.467, allocations: 0 / 1.416 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001509/1.468, allocations: 357.8 kB / 1.416 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/1.468, allocations: 140 kB / 1.416 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/1.468, allocations: 366 kB / 1.417 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/1.469, allocations: 183.4 kB / 1.417 GB, free: 11.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/1.469, allocations: 0 / 1.417 GB, free: 11.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007945/1.469, allocations: 0.5167 MB / 1.417 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.001064/1.47, allocations: 2.709 MB / 1.42 GB, free: 8.625 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.47, allocations: 4 kB / 1.42 GB, free: 8.621 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/1.471, allocations: 12 kB / 1.42 GB, free: 8.609 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003724/1.471, allocations: 110.9 kB / 1.42 GB, free: 8.508 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/1.471, allocations: 15.94 kB / 1.42 GB, free: 8.492 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/1.471, allocations: 43.52 kB / 1.42 GB, free: 8.449 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/1.471, allocations: 34.75 kB / 1.42 GB, free: 8.422 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/1.471, allocations: 4 kB / 1.42 GB, free: 8.418 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006534/1.472, allocations: 446 kB / 1.421 GB, free: 8.074 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/1.472, allocations: 8 kB / 1.421 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/1.472, allocations: 19.92 kB / 1.421 GB, free: 8.047 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/1.472, allocations: 102.1 kB / 1.421 GB, free: 7.953 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/1.472, allocations: 12 kB / 1.421 GB, free: 7.941 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/1.473, allocations: 27.73 kB / 1.421 GB, free: 7.914 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/1.473, allocations: 38.11 kB / 1.421 GB, free: 7.883 MB / 0.8386 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 () * 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.0001641/1.473, allocations: 156.5 kB / 1.421 GB, free: 7.73 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000487/1.473, allocations: 319.6 kB / 1.421 GB, free: 7.473 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.612e-05/1.473, allocations: 39.53 kB / 1.421 GB, free: 7.434 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006025/1.474, allocations: 349.1 kB / 1.422 GB, free: 7.176 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/1.474, allocations: 12.12 kB / 1.422 GB, free: 7.164 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.474, allocations: 3.953 kB / 1.422 GB, free: 7.16 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/1.474, allocations: 4 kB / 1.422 GB, free: 7.156 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/1.476, allocations: 0.9778 MB / 1.423 GB, free: 6.332 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.476, allocations: 8.062 kB / 1.423 GB, free: 6.324 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/1.476, allocations: 51.23 kB / 1.423 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/1.476, allocations: 7.953 kB / 1.423 GB, free: 6.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/1.476, allocations: 7.984 kB / 1.423 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.024e-06/1.476, allocations: 4 kB / 1.423 GB, free: 6.258 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.476, allocations: 3.938 kB / 1.423 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008768/1.477, allocations: 0.6972 MB / 1.423 GB, free: 5.637 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/1.477, allocations: 146.7 kB / 1.424 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.02e-05/1.477, allocations: 7.953 kB / 1.424 GB, free: 5.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/1.477, allocations: 15.39 kB / 1.424 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/1.477, allocations: 47.55 kB / 1.424 GB, free: 5.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/1.477, allocations: 19.62 kB / 1.424 GB, free: 5.414 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000194/1.478, allocations: 195.4 kB / 1.424 GB, free: 5.258 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.9e-07/1.478, allocations: 4.062 kB / 1.424 GB, free: 5.254 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008404/1.478, allocations: 218.6 kB / 1.424 GB, free: 5.043 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * 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.001479/1.48, allocations: 1.69 MB / 1.426 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001051/1.481, allocations: 0.6676 MB / 1.426 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.481, allocations: 0.625 kB / 1.426 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002581/1.481, allocations: 180 kB / 1.426 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005528/1.482, allocations: 90.02 kB / 1.427 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/1.484, allocations: 0.8356 MB / 1.427 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/1.484, allocations: 0.9271 MB / 1.428 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004411/1.485, allocations: 116.6 kB / 1.428 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002852/1.485, allocations: 211.8 kB / 1.429 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of SimCode: time 6.51e-07/1.485, allocations: 0 / 1.429 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03465/1.52, allocations: 9.675 MB / 1.438 GB, free: 7.246 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/1.52, allocations: 144.7 kB / 1.438 GB, free: 7.051 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/3.878, allocations: 0 / 1.438 GB, free: 7.051 MB / 0.8542 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