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.174/2.174, allocations: 387.4 MB / 394.9 MB, free: 13.43 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.00106/0.00106, allocations: 184.6 kB / 487.4 MB, free: 5.051 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.357/1.357, allocations: 221.5 MB / 0.7824 GB, free: 1.004 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009094/0.0009094, allocations: 91.91 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.85e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2269, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8291/1.056, allocations: 175 MB / 1.377 GB, free: 17.93 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/1.056, allocations: 96.34 kB / 1.377 GB, free: 17.93 MB / 0.823 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.04956/1.106, allocations: 23.99 MB / 1.401 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.182e-06/1.106, allocations: 0 / 1.401 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.048e-05/1.106, allocations: 23.34 kB / 1.401 GB, free: 24.95 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.001093/1.107, allocations: 0.8006 MB / 1.401 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/1.107, allocations: 7.719 kB / 1.401 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006011/1.108, allocations: 131.1 kB / 1.401 GB, free: 24.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/1.108, allocations: 428.5 kB / 1.402 GB, free: 23.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/1.108, allocations: 30.8 kB / 1.402 GB, free: 23.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/1.108, allocations: 49.62 kB / 1.402 GB, free: 23.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000708/1.109, allocations: 489.8 kB / 1.402 GB, free: 23.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009531/1.11, allocations: 0.7458 MB / 1.403 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/1.11, allocations: 0 / 1.403 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/1.11, allocations: 7.469 kB / 1.403 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.179e-05/1.11, allocations: 40.89 kB / 1.403 GB, free: 23.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003091/1.113, allocations: 3.574 MB / 1.407 GB, free: 20.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000429/1.114, allocations: 345.6 kB / 1.407 GB, free: 20.66 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002799/1.114, allocations: 204 kB / 1.407 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/1.114, allocations: 15.5 kB / 1.407 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/1.114, allocations: 255.8 kB / 1.407 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=50): time 2.966e-06/1.114, allocations: 0 / 1.407 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=50): time 0.0005236/1.115, allocations: 332.4 kB / 1.408 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/1.115, allocations: 161.8 kB / 1.408 GB, free: 20.19 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/1.115, allocations: 308.4 kB / 1.408 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/1.115, allocations: 45.06 kB / 1.408 GB, free: 19.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/1.116, allocations: 338.9 kB / 1.409 GB, free: 19.63 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.571e-05/1.116, allocations: 126.9 kB / 1.409 GB, free: 19.53 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/1.116, allocations: 0 / 1.409 GB, free: 19.53 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001274/1.116, allocations: 368.4 kB / 1.409 GB, free: 19.18 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/1.116, allocations: 138.5 kB / 1.409 GB, free: 19.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/1.116, allocations: 365.7 kB / 1.41 GB, free: 18.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/1.117, allocations: 184.6 kB / 1.41 GB, free: 18.58 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/1.117, allocations: 0 / 1.41 GB, free: 18.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007006/1.117, allocations: 0.5126 MB / 1.41 GB, free: 18.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008405/1.118, allocations: 2.711 MB / 1.413 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.118, allocations: 4 kB / 1.413 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/1.118, allocations: 16 kB / 1.413 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/1.119, allocations: 106.1 kB / 1.413 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/1.119, allocations: 15.94 kB / 1.413 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/1.119, allocations: 43.52 kB / 1.413 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.882e-05/1.119, allocations: 38.38 kB / 1.413 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.472e-06/1.119, allocations: 4 kB / 1.413 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005832/1.12, allocations: 445.5 kB / 1.413 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/1.12, allocations: 12.03 kB / 1.414 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/1.12, allocations: 15.98 kB / 1.414 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/1.12, allocations: 102.7 kB / 1.414 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/1.12, allocations: 12 kB / 1.414 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/1.12, allocations: 27.73 kB / 1.414 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/1.12, allocations: 35.92 kB / 1.414 GB, free: 14.54 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.0001497/1.12, allocations: 160.3 kB / 1.414 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004188/1.121, allocations: 318.2 kB / 1.414 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.778e-05/1.121, allocations: 39.53 kB / 1.414 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005416/1.121, allocations: 351.9 kB / 1.415 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/1.121, allocations: 8 kB / 1.415 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.121, allocations: 0 / 1.415 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/1.121, allocations: 7.953 kB / 1.415 GB, free: 13.81 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/1.123, allocations: 0.9787 MB / 1.415 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/1.123, allocations: 4 kB / 1.415 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/1.123, allocations: 46.61 kB / 1.416 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/1.123, allocations: 8.062 kB / 1.416 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/1.123, allocations: 11.94 kB / 1.416 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/1.123, allocations: 4 kB / 1.416 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/1.123, allocations: 0 / 1.416 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006849/1.124, allocations: 0.6924 MB / 1.416 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/1.124, allocations: 149.9 kB / 1.416 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/1.124, allocations: 15.14 kB / 1.416 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/1.124, allocations: 7.984 kB / 1.416 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/1.124, allocations: 53.98 kB / 1.416 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/1.124, allocations: 15.88 kB / 1.416 GB, free: 12.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001472/1.124, allocations: 197.2 kB / 1.417 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.71e-07/1.124, allocations: 0 / 1.417 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007161/1.125, allocations: 219.4 kB / 1.417 GB, free: 11.71 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.001124/1.126, allocations: 1.688 MB / 1.419 GB, free: 10.11 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000931/1.127, allocations: 0.6756 MB / 1.419 GB, free: 9.617 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.127, allocations: 0 / 1.419 GB, free: 9.617 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002794/1.127, allocations: 179.2 kB / 1.419 GB, free: 9.492 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/1.128, allocations: 84.2 kB / 1.419 GB, free: 9.426 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/1.13, allocations: 0.8422 MB / 1.42 GB, free: 8.621 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/1.13, allocations: 0.9255 MB / 1.421 GB, free: 7.676 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004219/1.131, allocations: 120.6 kB / 1.421 GB, free: 7.559 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/1.131, allocations: 215 kB / 1.421 GB, free: 7.5 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.131, allocations: 0 / 1.421 GB, free: 7.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02921/1.16, allocations: 9.677 MB / 1.431 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/1.16, allocations: 129.5 kB / 1.431 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/3.346, allocations: 0 / 1.431 GB, free: 13.7 MB / 0.8542 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