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.436/1.436, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 185.9 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.001182/0.001182, allocations: 88.33 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.0004759, allocations: 13.19 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2967, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2289/0.5257, allocations: 158 MB / 1.054 GB, free: 1.656 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003973/0.5261, allocations: 95.92 kB / 1.055 GB, free: 1.562 MB / 0.698 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.6976/1.224, allocations: 21.19 MB / 1.075 GB, free: 151.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.246e-06/1.224, allocations: 0 / 1.075 GB, free: 151.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.601e-05/1.224, allocations: 19.53 kB / 1.075 GB, free: 151.4 MB / 0.698 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.002614/1.227, allocations: 0.8254 MB / 1.076 GB, free: 150.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.526e-05/1.227, allocations: 13.31 kB / 1.076 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004025/1.227, allocations: 122.7 kB / 1.076 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/1.228, allocations: 121.2 kB / 1.076 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009954/1.229, allocations: 413.4 kB / 1.077 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/1.229, allocations: 68.83 kB / 1.077 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002288/1.229, allocations: 78.72 kB / 1.077 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/1.232, allocations: 0.8601 MB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.449e-05/1.232, allocations: 1.25 kB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.51e-05/1.232, allocations: 31.86 kB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.603e-05/1.232, allocations: 44.33 kB / 1.078 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/1.233, allocations: 0.5596 MB / 1.078 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/1.238, allocations: 3.707 MB / 1.082 GB, free: 147 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006733/1.238, allocations: 304.1 kB / 1.082 GB, free: 146.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.172e-05/1.238, allocations: 5.656 kB / 1.082 GB, free: 146.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/1.239, allocations: 218 kB / 1.082 GB, free: 146.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.867e-06/1.239, allocations: 7.875 kB / 1.082 GB, free: 146.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0009351/1.24, allocations: 449.5 kB / 1.083 GB, free: 146.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/1.24, allocations: 64.8 kB / 1.083 GB, free: 146.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/1.24, allocations: 385.4 kB / 1.083 GB, free: 146.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.742e-05/1.24, allocations: 44.61 kB / 1.083 GB, free: 146.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/1.241, allocations: 346 kB / 1.084 GB, free: 146.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.667e-05/1.241, allocations: 120.6 kB / 1.084 GB, free: 146 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/1.241, allocations: 19.88 kB / 1.084 GB, free: 146 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.241, allocations: 361.6 kB / 1.084 GB, free: 145.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/1.241, allocations: 154.8 kB / 1.084 GB, free: 145.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/1.242, allocations: 395.3 kB / 1.085 GB, free: 145.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/1.242, allocations: 191.3 kB / 1.085 GB, free: 145.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/1.242, allocations: 2.531 kB / 1.085 GB, free: 145.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001123/1.243, allocations: 0.6019 MB / 1.085 GB, free: 144.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006492/1.244, allocations: 2.702 MB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/1.244, allocations: 6.281 kB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/1.244, allocations: 11.97 kB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/1.244, allocations: 107.3 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.135e-05/1.244, allocations: 14.97 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/1.245, allocations: 73.58 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.547e-05/1.245, allocations: 33.48 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/1.245, allocations: 4.094 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001116/1.246, allocations: 0.5263 MB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/1.246, allocations: 6.531 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/1.246, allocations: 12.97 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/1.247, allocations: 103 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.83e-05/1.247, allocations: 19.09 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/1.247, allocations: 55.06 kB / 1.089 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/1.247, allocations: 33.97 kB / 1.089 GB, free: 141.4 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 () * Number of clocked 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.0004733/1.248, allocations: 321.2 kB / 1.089 GB, free: 141.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/1.248, allocations: 45.22 kB / 1.089 GB, free: 141.1 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007361/1.248, allocations: 394.4 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/1.248, allocations: 5.438 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.248, allocations: 0 / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/1.248, allocations: 13.84 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/1.25, allocations: 1.026 MB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.25, allocations: 0 / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/1.25, allocations: 38.2 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/1.25, allocations: 19.41 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/1.25, allocations: 11.12 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/1.25, allocations: 3.938 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/1.25, allocations: 0 / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007325/1.251, allocations: 0.6109 MB / 1.091 GB, free: 139.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/1.251, allocations: 151.8 kB / 1.092 GB, free: 139.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/1.251, allocations: 15.06 kB / 1.092 GB, free: 139.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/1.251, allocations: 14.28 kB / 1.092 GB, free: 139.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/1.251, allocations: 51.08 kB / 1.092 GB, free: 139.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/1.252, allocations: 15.59 kB / 1.092 GB, free: 139.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002283/1.252, allocations: 257.1 kB / 1.092 GB, free: 139.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/1.252, allocations: 0 / 1.092 GB, free: 139.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008411/1.253, allocations: 245.3 kB / 1.092 GB, free: 139.3 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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.0009514/1.254, allocations: 1.181 MB / 1.093 GB, free: 138.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001042/1.255, allocations: 0.7172 MB / 1.094 GB, free: 138.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.255, allocations: 0 / 1.094 GB, free: 138.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002295/1.255, allocations: 177.1 kB / 1.094 GB, free: 138 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/1.255, allocations: 97.12 kB / 1.094 GB, free: 138 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004666/1.26, allocations: 7.421 MB / 1.102 GB, free: 131 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/1.26, allocations: 0.927 MB / 1.102 GB, free: 130.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004343/1.261, allocations: 108.7 kB / 1.103 GB, free: 129.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/1.261, allocations: 215.3 kB / 1.103 GB, free: 129.7 MB / 0.698 GB Notification: Performance of SimCode: time 1.783e-06/1.261, allocations: 4 kB / 1.103 GB, free: 129.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/1.285, allocations: 10.08 MB / 1.113 GB, free: 119.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/1.285, allocations: 182.3 kB / 1.113 GB, free: 119.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/3.885, allocations: 4 kB / 1.113 GB, free: 119.6 MB / 0.698 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)