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.336/2.336, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001431/0.001431, allocations: 172.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.682/1.682, allocations: 221.3 MB / 0.7915 GB, free: 5.422 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.001176/0.001176, allocations: 83.95 kB / 0.9317 GB, free: 5.73 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.722e-05/5.758e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3252, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.116/1.442, allocations: 176.5 MB / 1.391 GB, free: 11.61 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003288/1.442, allocations: 90.33 kB / 1.391 GB, free: 11.56 MB / 0.8542 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.06193/1.504, allocations: 24.15 MB / 1.415 GB, free: 7.387 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.064e-06/1.504, allocations: 3.938 kB / 1.415 GB, free: 7.383 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.178e-05/1.504, allocations: 23.98 kB / 1.415 GB, free: 7.359 MB / 0.8698 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.002086/1.506, allocations: 0.8039 MB / 1.416 GB, free: 6.551 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.506, allocations: 8.031 kB / 1.416 GB, free: 6.543 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003252/1.507, allocations: 125.2 kB / 1.416 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009746/1.508, allocations: 126.9 kB / 1.416 GB, free: 6.332 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009453/1.509, allocations: 423.3 kB / 1.416 GB, free: 5.934 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.152e-05/1.509, allocations: 61.36 kB / 1.416 GB, free: 5.898 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/1.509, allocations: 86.8 kB / 1.417 GB, free: 5.84 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/1.51, allocations: 0.8495 MB / 1.417 GB, free: 5.16 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/1.511, allocations: 7.875 kB / 1.417 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.121e-05/1.511, allocations: 35.8 kB / 1.417 GB, free: 5.141 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.568e-05/1.511, allocations: 41.98 kB / 1.417 GB, free: 5.102 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/1.512, allocations: 0.5544 MB / 1.418 GB, free: 4.723 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004957/1.517, allocations: 3.72 MB / 1.422 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/1.517, allocations: 368.4 kB / 1.422 GB, free: 0.9648 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004118/1.518, allocations: 224.2 kB / 1.422 GB, free: 0.7969 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/1.518, allocations: 8.359 kB / 1.422 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000448/1.518, allocations: 275.6 kB / 1.422 GB, free: 0.5586 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=50): time 4.879e-06/1.518, allocations: 3.938 kB / 1.422 GB, free: 0.5547 MB / 0.8698 GB Notification: Performance of matching and sorting (n=50): time 0.0007745/1.519, allocations: 367.5 kB / 1.423 GB, free: 264 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/1.519, allocations: 177.6 kB / 1.423 GB, free: 52 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005147/1.52, allocations: 380.8 kB / 1.423 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.688e-05/1.52, allocations: 55.94 kB / 1.423 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/1.52, allocations: 330.5 kB / 1.424 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/1.52, allocations: 133.1 kB / 1.424 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.93e-05/1.52, allocations: 17.44 kB / 1.424 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002041/1.521, allocations: 362.6 kB / 1.424 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/1.521, allocations: 153.6 kB / 1.424 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/1.522, allocations: 390.6 kB / 1.425 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/1.522, allocations: 195.1 kB / 1.425 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/1.522, allocations: 4 kB / 1.425 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001045/1.523, allocations: 0.6015 MB / 1.425 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.00143/1.524, allocations: 2.702 MB / 1.428 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/1.524, allocations: 4 kB / 1.428 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.92e-05/1.525, allocations: 15.98 kB / 1.428 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/1.525, allocations: 106.6 kB / 1.428 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.758e-05/1.525, allocations: 15.98 kB / 1.428 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/1.525, allocations: 61.53 kB / 1.428 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-05/1.526, allocations: 34.11 kB / 1.428 GB, free: 10.78 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/1.526, allocations: 8 kB / 1.428 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008808/1.526, allocations: 0.5322 MB / 1.429 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/1.526, allocations: 4 kB / 1.429 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/1.526, allocations: 15.94 kB / 1.429 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/1.527, allocations: 102.5 kB / 1.429 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.128e-05/1.527, allocations: 19.94 kB / 1.429 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003865/1.527, allocations: 50.62 kB / 1.429 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.678e-05/1.527, allocations: 42.42 kB / 1.429 GB, free: 10.16 MB / 0.8855 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.0002178/1.528, allocations: 166 kB / 1.429 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/1.528, allocations: 47.44 kB / 1.429 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007291/1.528, allocations: 383.7 kB / 1.43 GB, free: 9.703 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/1.528, allocations: 8 kB / 1.43 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.528, allocations: 0 / 1.43 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/1.528, allocations: 15.94 kB / 1.43 GB, free: 9.68 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/1.53, allocations: 1.111 MB / 1.431 GB, free: 8.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/1.53, allocations: 4 kB / 1.431 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/1.531, allocations: 55.92 kB / 1.431 GB, free: 8.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/1.531, allocations: 4 kB / 1.431 GB, free: 8.566 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/1.531, allocations: 8 kB / 1.431 GB, free: 8.559 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.398e-06/1.531, allocations: 11.92 kB / 1.431 GB, free: 8.547 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.531, allocations: 0 / 1.431 GB, free: 8.547 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/1.532, allocations: 0.7404 MB / 1.432 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/1.532, allocations: 164.5 kB / 1.432 GB, free: 7.555 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/1.532, allocations: 15.94 kB / 1.432 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/1.532, allocations: 19.98 kB / 1.432 GB, free: 7.52 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/1.533, allocations: 48.36 kB / 1.432 GB, free: 7.473 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/1.533, allocations: 20 kB / 1.432 GB, free: 7.453 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003425/1.533, allocations: 253.2 kB / 1.432 GB, free: 7.207 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/1.533, allocations: 0 / 1.432 GB, free: 7.207 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001139/1.534, allocations: 247.6 kB / 1.432 GB, free: 6.965 MB / 0.8855 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.001989/1.536, allocations: 1.733 MB / 1.434 GB, free: 5.164 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001501/1.538, allocations: 0.7448 MB / 1.435 GB, free: 4.426 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.538, allocations: 0 / 1.435 GB, free: 4.426 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003607/1.538, allocations: 190.4 kB / 1.435 GB, free: 4.234 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/1.539, allocations: 95.59 kB / 1.435 GB, free: 4.145 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/1.541, allocations: 0.8987 MB / 1.436 GB, free: 3.195 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007497/1.542, allocations: 0.9239 MB / 1.437 GB, free: 2.246 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0005575/1.543, allocations: 132.7 kB / 1.437 GB, free: 2.113 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/1.543, allocations: 224.2 kB / 1.437 GB, free: 1.895 MB / 0.8855 GB Notification: Performance of SimCode: time 1.012e-06/1.543, allocations: 0 / 1.437 GB, free: 1.895 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03352/1.576, allocations: 10.77 MB / 1.448 GB, free: 7.312 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/1.577, allocations: 152.8 kB / 1.448 GB, free: 7.09 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/3.947, allocations: 3.938 kB / 1.448 GB, free: 7.086 MB / 0.9011 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