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.0007627/0.0007628, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004793/0.004793, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.291/1.291, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001716/0.001715, allocations: 270.5 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.949/0.949, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.0004221, allocations: 10.62 kB / 0.5986 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.163, allocations: 88.56 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.001854/0.1649, allocations: 1.644 MB / 0.6867 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.1661, allocations: 0.852 MB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.385e-05/0.1662, allocations: 4 kB / 0.6876 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.1664, allocations: 47.91 kB / 0.6876 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.514e-05/0.1665, allocations: 47.03 kB / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.1667, allocations: 71.86 kB / 0.6877 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.1669, allocations: 179.3 kB / 0.6879 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.56e-05/0.167, allocations: 29.97 kB / 0.6879 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1672, allocations: 72.19 kB / 0.688 GB, free: 12.1 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.1673, allocations: 85.75 kB / 0.6881 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.167e-05/0.1673, allocations: 4 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.1674, allocations: 59.95 kB / 0.6881 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.1675, allocations: 19.91 kB / 0.6882 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.663e-05/0.1676, allocations: 93.3 kB / 0.6882 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.1678, allocations: 172.2 kB / 0.6884 GB, free: 11.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1678, allocations: 0 / 0.6884 GB, free: 11.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1678, allocations: 0.7812 kB / 0.6884 GB, free: 11.67 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.1678, allocations: 0 / 0.6884 GB, free: 11.67 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.0008533/0.1687, allocations: 493.1 kB / 0.6889 GB, free: 11.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1687, allocations: 12.03 kB / 0.6889 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.521e-05/0.1688, allocations: 16.75 kB / 0.6889 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.169, allocations: 239.8 kB / 0.6891 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.1691, allocations: 4.375 kB / 0.6891 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.1691, allocations: 10.75 kB / 0.6891 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.1694, allocations: 135.9 kB / 0.6893 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1694, allocations: 0 / 0.6893 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.1694, allocations: 4.531 kB / 0.6893 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1695, allocations: 4 kB / 0.6893 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.1698, allocations: 110.5 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006028/0.1704, allocations: 433.2 kB / 0.6898 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.1707, allocations: 142.5 kB / 0.6899 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001733/0.1709, allocations: 78.94 kB / 0.69 GB, free: 9.875 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005783/0.1715, allocations: 445.5 kB / 0.6904 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003181/0.1718, allocations: 139.5 kB / 0.6906 GB, free: 9.199 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.1718, allocations: 0 / 0.6906 GB, free: 9.199 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006347/0.1725, allocations: 245.4 kB / 0.6908 GB, free: 8.953 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.1725, allocations: 59.34 kB / 0.6909 GB, free: 8.883 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.1727, allocations: 184.1 kB / 0.691 GB, free: 8.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.1727, allocations: 33.7 kB / 0.6911 GB, free: 8.656 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.917e-05/0.1728, allocations: 108.1 kB / 0.6912 GB, free: 8.547 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.1729, allocations: 55.25 kB / 0.6912 GB, free: 8.492 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.1729, allocations: 25.7 kB / 0.6913 GB, free: 8.461 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1731, allocations: 330.8 kB / 0.6916 GB, free: 8.129 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1733, allocations: 84.66 kB / 0.6916 GB, free: 8.043 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.1735, allocations: 98.52 kB / 0.6917 GB, free: 7.938 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.015/3.188, allocations: 445.4 MB / 1.127 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/3.188, allocations: 0 / 1.127 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004969/3.189, allocations: 259.8 kB / 1.127 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/3.189, allocations: 33.7 kB / 1.127 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/3.189, allocations: 8.047 kB / 1.127 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/3.189, allocations: 0 / 1.127 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/3.189, allocations: 43.97 kB / 1.127 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/3.189, allocations: 1.875 kB / 1.127 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/3.189, allocations: 22.77 kB / 1.127 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/3.189, allocations: 11.25 kB / 1.127 GB, free: 180.4 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.0002065/3.189, allocations: 156 kB / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/3.189, allocations: 17.38 kB / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005438/3.19, allocations: 256.6 kB / 1.128 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/3.19, allocations: 4 kB / 1.128 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/3.19, allocations: 3.984 kB / 1.128 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/3.19, allocations: 0.5625 kB / 1.128 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/3.19, allocations: 254.1 kB / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/3.19, allocations: 0 / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002141/3.19, allocations: 44.67 kB / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/3.19, allocations: 7.984 kB / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/3.19, allocations: 4.375 kB / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/3.19, allocations: 0.5625 kB / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/3.19, allocations: 0 / 1.128 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/3.191, allocations: 330.8 kB / 1.128 GB, free: 179.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/3.191, allocations: 110.3 kB / 1.128 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/3.191, allocations: 11.42 kB / 1.128 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/3.191, allocations: 11.31 kB / 1.128 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/3.191, allocations: 20.81 kB / 1.128 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/3.191, allocations: 14.42 kB / 1.128 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.129e-05/3.191, allocations: 132.1 kB / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.132e-06/3.191, allocations: 0 / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002477/3.192, allocations: 55.14 kB / 1.128 GB, free: 179.2 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.0001318/3.192, allocations: 120.8 kB / 1.129 GB, free: 179.1 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004037/3.192, allocations: 237.8 kB / 1.129 GB, free: 178.9 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/3.192, allocations: 0 / 1.129 GB, free: 178.9 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001844/3.192, allocations: 95.95 kB / 1.129 GB, free: 178.8 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/3.193, allocations: 32.06 kB / 1.129 GB, free: 178.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007973/3.193, allocations: 0.65 MB / 1.13 GB, free: 178.2 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/3.194, allocations: 0.7245 MB / 1.13 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001372/3.194, allocations: 25.53 kB / 1.13 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/3.194, allocations: 20.56 kB / 1.13 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/3.194, allocations: 4 kB / 1.13 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of Templates: time 0.004672/3.198, allocations: 2.354 MB / 1.133 GB, free: 175.1 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)