Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.798/1.798, allocations: 249.3 MB / 261.8 MB, free: 5.766 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 178 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.866/1.866, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009289/0.0009289, allocations: 86.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.818e-05/3.82e-05, allocations: 4 kB / 0.788 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2405, allocations: 106.3 MB / 0.8919 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8801/1.121, allocations: 157.9 MB / 1.046 GB, free: 10.84 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/1.121, allocations: 93 kB / 1.046 GB, free: 10.79 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.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.05343/1.174, allocations: 21.05 MB / 1.067 GB, free: 9.402 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.084e-06/1.175, allocations: 3.938 kB / 1.067 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.301e-05/1.175, allocations: 20 kB / 1.067 GB, free: 9.379 MB / 0.6823 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.001471/1.176, allocations: 0.7799 MB / 1.068 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/1.176, allocations: 8.031 kB / 1.068 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/1.176, allocations: 128.1 kB / 1.068 GB, free: 8.496 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006584/1.177, allocations: 123 kB / 1.068 GB, free: 8.375 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/1.178, allocations: 410.4 kB / 1.068 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.595e-05/1.178, allocations: 75.61 kB / 1.068 GB, free: 7.941 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/1.178, allocations: 79.8 kB / 1.068 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/1.179, allocations: 0.8432 MB / 1.069 GB, free: 7.219 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/1.179, allocations: 3.938 kB / 1.069 GB, free: 7.215 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.678e-05/1.179, allocations: 40.34 kB / 1.069 GB, free: 7.199 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-05/1.179, allocations: 37.98 kB / 1.069 GB, free: 7.16 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009296/1.18, allocations: 0.552 MB / 1.07 GB, free: 6.793 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/1.185, allocations: 3.701 MB / 1.073 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005742/1.185, allocations: 297.8 kB / 1.074 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003765/1.186, allocations: 193 kB / 1.074 GB, free: 3.023 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.944e-05/1.186, allocations: 15.66 kB / 1.074 GB, free: 3.012 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003881/1.186, allocations: 207.1 kB / 1.074 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.547e-06/1.186, allocations: 0 / 1.074 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0006558/1.187, allocations: 331.4 kB / 1.074 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/1.187, allocations: 55.41 kB / 1.074 GB, free: 2.52 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004359/1.187, allocations: 390.3 kB / 1.075 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.764e-05/1.187, allocations: 43.64 kB / 1.075 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/1.188, allocations: 341.4 kB / 1.075 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000123/1.188, allocations: 131.7 kB / 1.075 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/1.188, allocations: 17.81 kB / 1.075 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000192/1.188, allocations: 364 kB / 1.076 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/1.188, allocations: 147.9 kB / 1.076 GB, free: 1.355 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004448/1.189, allocations: 381.6 kB / 1.076 GB, free: 0.9492 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/1.189, allocations: 183 kB / 1.076 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/1.189, allocations: 0 / 1.076 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008986/1.19, allocations: 0.5898 MB / 1.077 GB, free: 352 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001307/1.191, allocations: 2.698 MB / 1.08 GB, free: 13.48 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/1.191, allocations: 11.94 kB / 1.08 GB, free: 13.47 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/1.191, allocations: 12 kB / 1.08 GB, free: 13.46 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/1.192, allocations: 106.6 kB / 1.08 GB, free: 13.36 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/1.192, allocations: 12 kB / 1.08 GB, free: 13.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/1.192, allocations: 57.08 kB / 1.08 GB, free: 13.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-05/1.192, allocations: 34.75 kB / 1.08 GB, free: 13.27 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.832e-06/1.192, allocations: 4 kB / 1.08 GB, free: 13.27 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007636/1.193, allocations: 0.5144 MB / 1.08 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/1.193, allocations: 8 kB / 1.08 GB, free: 12.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/1.193, allocations: 12 kB / 1.08 GB, free: 12.87 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/1.193, allocations: 103.2 kB / 1.08 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/1.193, allocations: 15.89 kB / 1.08 GB, free: 12.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/1.194, allocations: 65.02 kB / 1.08 GB, free: 12.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.647e-05/1.194, allocations: 35.12 kB / 1.08 GB, free: 12.68 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,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 (93): * Single equations (assignments): 93 * 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.0001709/1.194, allocations: 158.2 kB / 1.081 GB, free: 12.54 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/1.194, allocations: 51.42 kB / 1.081 GB, free: 12.49 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006987/1.195, allocations: 375 kB / 1.081 GB, free: 12.23 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/1.195, allocations: 11.98 kB / 1.081 GB, free: 12.21 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/1.195, allocations: 4 kB / 1.081 GB, free: 12.21 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/1.195, allocations: 11.94 kB / 1.081 GB, free: 12.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/1.197, allocations: 1.093 MB / 1.082 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.197, allocations: 3.938 kB / 1.082 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/1.197, allocations: 55.86 kB / 1.082 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/1.197, allocations: 4 kB / 1.082 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/1.197, allocations: 6.562 kB / 1.082 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/1.197, allocations: 4 kB / 1.082 GB, free: 11.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.197, allocations: 0 / 1.082 GB, free: 11.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008764/1.198, allocations: 0.6365 MB / 1.083 GB, free: 10.68 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001799/1.198, allocations: 151.9 kB / 1.083 GB, free: 10.53 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/1.198, allocations: 13.06 kB / 1.083 GB, free: 10.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/1.198, allocations: 18.3 kB / 1.083 GB, free: 10.51 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/1.198, allocations: 42.75 kB / 1.083 GB, free: 10.47 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-05/1.198, allocations: 14.86 kB / 1.083 GB, free: 10.46 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002941/1.199, allocations: 260 kB / 1.083 GB, free: 10.25 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/1.199, allocations: 4.062 kB / 1.083 GB, free: 10.25 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008826/1.2, allocations: 229.3 kB / 1.084 GB, free: 10.05 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (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: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001394/1.201, allocations: 1.356 MB / 1.085 GB, free: 8.758 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001249/1.202, allocations: 0.7041 MB / 1.086 GB, free: 8.059 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/1.202, allocations: 0 / 1.086 GB, free: 8.059 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002741/1.203, allocations: 178.4 kB / 1.086 GB, free: 7.887 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/1.203, allocations: 98.88 kB / 1.086 GB, free: 7.793 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/1.205, allocations: 0.8366 MB / 1.087 GB, free: 6.906 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/1.206, allocations: 0.9277 MB / 1.088 GB, free: 5.953 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005201/1.206, allocations: 140.6 kB / 1.088 GB, free: 5.816 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003297/1.207, allocations: 215.4 kB / 1.088 GB, free: 5.605 MB / 0.698 GB Notification: Performance of SimCode: time 4.709e-06/1.207, allocations: 0 / 1.088 GB, free: 5.605 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/1.233, allocations: 10.56 MB / 1.098 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/1.234, allocations: 170.2 kB / 1.098 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.74, allocations: 4 kB / 1.098 GB, free: 10.95 MB / 0.7136 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)