Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 106.8 kB / 16.27 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 189 kB / 17.19 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002198/0.002198, allocations: 287.5 kB / 291.3 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8761/0.8761, allocations: 169.3 MB / 0.4988 GB, free: 4.516 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 98.42 kB / 0.5959 GB, free: 15.19 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.153, allocations: 86.97 MB / 0.6808 GB, free: 8.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.00319/0.1562, allocations: 1.93 MB / 0.6827 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1576, allocations: 0.8627 MB / 0.6836 GB, free: 5.402 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.1578, allocations: 7.938 kB / 0.6836 GB, free: 5.395 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.158, allocations: 47.91 kB / 0.6836 GB, free: 5.348 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.1582, allocations: 51.56 kB / 0.6837 GB, free: 5.297 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.1585, allocations: 91.77 kB / 0.6837 GB, free: 5.207 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.1587, allocations: 191.3 kB / 0.6839 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1588, allocations: 29.45 kB / 0.684 GB, free: 4.992 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.159, allocations: 91.62 kB / 0.684 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1591, allocations: 79.62 kB / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.1592, allocations: 8 kB / 0.6841 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.1593, allocations: 63.94 kB / 0.6842 GB, free: 4.754 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.877e-05/0.1594, allocations: 27.91 kB / 0.6842 GB, free: 4.727 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.988e-05/0.1595, allocations: 71.59 kB / 0.6843 GB, free: 4.656 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002474/0.1597, allocations: 179.4 kB / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1597, allocations: 0 / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1597, allocations: 0 / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1598, allocations: 4 kB / 0.6845 GB, free: 4.477 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0009521/0.1607, allocations: 0.5003 MB / 0.6849 GB, free: 3.922 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1608, allocations: 12.03 kB / 0.685 GB, free: 3.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.408e-05/0.1608, allocations: 20.75 kB / 0.685 GB, free: 3.891 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.1611, allocations: 231.9 kB / 0.6852 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1611, allocations: 8.375 kB / 0.6852 GB, free: 3.617 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.1612, allocations: 12.38 kB / 0.6852 GB, free: 3.605 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.1615, allocations: 127.2 kB / 0.6853 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1615, allocations: 0 / 0.6853 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.1615, allocations: 4 kB / 0.6853 GB, free: 3.473 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1615, allocations: 7.984 kB / 0.6853 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.1618, allocations: 99.86 kB / 0.6854 GB, free: 3.367 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006608/0.1625, allocations: 420.4 kB / 0.6858 GB, free: 2.906 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.1629, allocations: 130.5 kB / 0.686 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.163, allocations: 72.81 kB / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006006/0.1637, allocations: 445.5 kB / 0.6865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003294/0.164, allocations: 134.1 kB / 0.6866 GB, free: 2.027 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 2.024e-06/0.164, allocations: 3.938 kB / 0.6866 GB, free: 2.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006212/0.1646, allocations: 229.4 kB / 0.6868 GB, free: 1.793 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.1647, allocations: 63.38 kB / 0.6869 GB, free: 1.719 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.1649, allocations: 174.5 kB / 0.687 GB, free: 1.539 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1649, allocations: 37.64 kB / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.534e-05/0.165, allocations: 112 kB / 0.6872 GB, free: 1.383 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.679e-05/0.165, allocations: 51.27 kB / 0.6872 GB, free: 1.332 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.177e-05/0.1651, allocations: 41.7 kB / 0.6873 GB, free: 1.285 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.87e-05/0.1652, allocations: 342.8 kB / 0.6876 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1654, allocations: 72.75 kB / 0.6877 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.1656, allocations: 87.73 kB / 0.6878 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.667/2.833, allocations: 378.8 MB / 1.058 GB, free: 181.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/2.833, allocations: 0 / 1.058 GB, free: 181.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004382/2.833, allocations: 251.3 kB / 1.058 GB, free: 181.3 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/2.833, allocations: 37.69 kB / 1.058 GB, free: 181.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/2.833, allocations: 0 / 1.058 GB, free: 181.2 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/2.833, allocations: 0 / 1.058 GB, free: 181.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/2.834, allocations: 46.31 kB / 1.058 GB, free: 181.2 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/2.834, allocations: 4.062 kB / 1.058 GB, free: 181.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/2.834, allocations: 24.61 kB / 1.058 GB, free: 181.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/2.834, allocations: 5.094 kB / 1.058 GB, free: 181.2 MB / 0.7169 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery.EBou:VARIABLE(start = 0.6850000000000001 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001696/2.834, allocations: 158.7 kB / 1.058 GB, free: 181 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/2.834, allocations: 14.56 kB / 1.058 GB, free: 181 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005101/2.834, allocations: 243 kB / 1.058 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/2.834, allocations: 7.844 kB / 1.058 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/2.834, allocations: 0 / 1.058 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/2.834, allocations: 0 / 1.058 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/2.835, allocations: 263.9 kB / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/2.835, allocations: 0 / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/2.835, allocations: 39.97 kB / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/2.835, allocations: 1.031 kB / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/2.835, allocations: 2.938 kB / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/2.835, allocations: 4 kB / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/2.835, allocations: 2.75 kB / 1.059 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005325/2.835, allocations: 316.7 kB / 1.059 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.719e-05/2.836, allocations: 111.2 kB / 1.059 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/2.836, allocations: 3.984 kB / 1.059 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/2.836, allocations: 15.11 kB / 1.059 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/2.836, allocations: 17.36 kB / 1.059 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/2.836, allocations: 11.48 kB / 1.059 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.186e-05/2.836, allocations: 129.2 kB / 1.059 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/2.836, allocations: 7.672 kB / 1.059 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002564/2.836, allocations: 62.23 kB / 1.059 GB, free: 180 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000133/2.836, allocations: 116.7 kB / 1.059 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000426/2.837, allocations: 231.4 kB / 1.06 GB, free: 179.7 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/2.837, allocations: 0 / 1.06 GB, free: 179.7 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001744/2.837, allocations: 94.58 kB / 1.06 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/2.837, allocations: 29.06 kB / 1.06 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007675/2.838, allocations: 0.565 MB / 1.06 GB, free: 179.1 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/2.838, allocations: 0.7241 MB / 1.061 GB, free: 178.3 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/2.838, allocations: 23.42 kB / 1.061 GB, free: 178.3 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/2.838, allocations: 8 kB / 1.061 GB, free: 178.3 MB / 0.7169 GB Notification: Performance of Templates: time 0.003442/2.842, allocations: 2.664 MB / 1.064 GB, free: 175.7 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)