Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001194/0.001194, allocations: 179.3 kB / 498.1 MB, free: 5.723 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.56/1.56, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.001135/0.001135, allocations: 90.75 kB / 0.9346 GB, free: 6.113 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003897, allocations: 6.938 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3033, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2154/0.5187, allocations: 175.8 MB / 1.395 GB, free: 2.043 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/0.5191, allocations: 87.95 kB / 1.395 GB, free: 1.957 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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.06116/0.5803, allocations: 24.31 MB / 1.418 GB, free: 9.387 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.355e-06/0.5804, allocations: 0 / 1.418 GB, free: 9.387 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 6.344e-05/0.5804, allocations: 16.44 kB / 1.418 GB, free: 9.371 MB / 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.002182/0.5826, allocations: 0.8474 MB / 1.419 GB, free: 8.465 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.5827, allocations: 12.03 kB / 1.419 GB, free: 8.453 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003658/0.5831, allocations: 122.7 kB / 1.419 GB, free: 8.324 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008606/0.5839, allocations: 127 kB / 1.42 GB, free: 8.199 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008973/0.5849, allocations: 421.8 kB / 1.42 GB, free: 7.75 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.105e-05/0.585, allocations: 69.98 kB / 1.42 GB, free: 7.684 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/0.5851, allocations: 83.94 kB / 1.42 GB, free: 7.602 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.5868, allocations: 0.8574 MB / 1.421 GB, free: 6.68 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.5869, allocations: 4 kB / 1.421 GB, free: 6.676 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.201e-05/0.5869, allocations: 32 kB / 1.421 GB, free: 6.645 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.5871, allocations: 45.92 kB / 1.421 GB, free: 6.602 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.5882, allocations: 0.5659 MB / 1.422 GB, free: 6.035 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004899/0.5931, allocations: 3.72 MB / 1.425 GB, free: 2.098 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007372/0.5939, allocations: 383.5 kB / 1.426 GB, free: 1.672 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.712e-05/0.5939, allocations: 12.31 kB / 1.426 GB, free: 1.66 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.5944, allocations: 276 kB / 1.426 GB, free: 1.363 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=50): time 3.546e-06/0.5945, allocations: 0 / 1.426 GB, free: 1.363 MB / 0.9167 GB Notification: Performance of matching and sorting (n=50): time 0.001015/0.5955, allocations: 494.5 kB / 1.426 GB, free: 0.875 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.5956, allocations: 162.7 kB / 1.426 GB, free: 0.6797 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.5961, allocations: 392.3 kB / 1.427 GB, free: 300 kB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.415e-05/0.5962, allocations: 49.69 kB / 1.427 GB, free: 244 kB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.6701/1.266, allocations: 327 kB / 1.427 GB, free: 186.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/1.267, allocations: 137.3 kB / 1.427 GB, free: 186.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/1.267, allocations: 16.81 kB / 1.427 GB, free: 186.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001596/1.267, allocations: 360.9 kB / 1.428 GB, free: 186 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003833/1.267, allocations: 165.4 kB / 1.428 GB, free: 186 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/1.268, allocations: 400.7 kB / 1.428 GB, free: 185.7 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/1.268, allocations: 201.6 kB / 1.428 GB, free: 185.7 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/1.268, allocations: 2.281 kB / 1.428 GB, free: 185.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001027/1.269, allocations: 0.6137 MB / 1.429 GB, free: 185.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006809/1.27, allocations: 2.709 MB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/1.27, allocations: 9.625 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.569e-05/1.27, allocations: 11.53 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/1.27, allocations: 106.2 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.582e-05/1.27, allocations: 15.89 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/1.271, allocations: 64.36 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/1.271, allocations: 35.41 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/1.271, allocations: 3.812 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001066/1.272, allocations: 0.5467 MB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/1.272, allocations: 7.75 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.272, allocations: 12 kB / 1.432 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/1.272, allocations: 106.3 kB / 1.433 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.248e-05/1.272, allocations: 16.23 kB / 1.433 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/1.273, allocations: 54.38 kB / 1.433 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/1.273, allocations: 32.97 kB / 1.433 GB, free: 182.8 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.0004967/1.273, allocations: 330.3 kB / 1.433 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.995e-05/1.273, allocations: 47.72 kB / 1.433 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007845/1.274, allocations: 399.6 kB / 1.433 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/1.274, allocations: 12.72 kB / 1.433 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/1.274, allocations: 0 / 1.433 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/1.274, allocations: 4.641 kB / 1.433 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/1.276, allocations: 1.05 MB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/1.276, allocations: 6.688 kB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/1.276, allocations: 46.83 kB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/1.276, allocations: 3.25 kB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/1.276, allocations: 11.92 kB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/1.276, allocations: 16.09 kB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.276, allocations: 2.141 kB / 1.434 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/1.277, allocations: 0.7158 MB / 1.435 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/1.278, allocations: 158 kB / 1.435 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.075e-05/1.278, allocations: 11.8 kB / 1.435 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/1.278, allocations: 13.06 kB / 1.435 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/1.278, allocations: 51.92 kB / 1.435 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.467e-05/1.278, allocations: 25.75 kB / 1.435 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003458/1.278, allocations: 262.2 kB / 1.436 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.61e-07/1.278, allocations: 0 / 1.436 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001147/1.28, allocations: 246.4 kB / 1.436 GB, free: 181.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.001613/1.281, allocations: 1.566 MB / 1.437 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001544/1.283, allocations: 0.757 MB / 1.438 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.283, allocations: 0 / 1.438 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003758/1.283, allocations: 193.4 kB / 1.438 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007445/1.284, allocations: 95.64 kB / 1.438 GB, free: 180.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/1.29, allocations: 7.526 MB / 1.446 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007046/1.291, allocations: 0.9241 MB / 1.447 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0007386/1.292, allocations: 109.8 kB / 1.447 GB, free: 174 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003787/1.292, allocations: 215.6 kB / 1.447 GB, free: 174 MB / 0.9167 GB Notification: Performance of SimCode: time 2.475e-06/1.292, allocations: 0 / 1.447 GB, free: 174 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/1.325, allocations: 10.25 MB / 1.457 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/1.325, allocations: 169.9 kB / 1.457 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.316/3.641, allocations: 4.688 kB / 1.457 GB, free: 173.2 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat does not exist to compare? outputFormat=mat