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.001203/0.001203, allocations: 104.4 kB / 15.98 MB, free: 6.344 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.001242/0.001242, allocations: 195.5 kB / 16.91 MB, free: 6.184 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.198/1.198, allocations: 222.9 MB / 240.6 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001943/0.001943, allocations: 288.2 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8595/0.8595, allocations: 169.2 MB / 0.4985 GB, free: 4.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 93.53 kB / 0.5953 GB, free: 4.477 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1435, allocations: 86.98 MB / 0.6803 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002688/0.1462, allocations: 1.992 MB / 0.6822 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.1473, allocations: 0.8466 MB / 0.683 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.945e-05/0.1474, allocations: 7.938 kB / 0.683 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.1476, allocations: 43.97 kB / 0.6831 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.468e-05/0.1477, allocations: 39.69 kB / 0.6831 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.148, allocations: 83.84 kB / 0.6832 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.1481, allocations: 191.3 kB / 0.6834 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.656e-05/0.1482, allocations: 25.48 kB / 0.6834 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.1484, allocations: 83.58 kB / 0.6835 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.1485, allocations: 79.67 kB / 0.6836 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.1485, allocations: 12 kB / 0.6836 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1486, allocations: 63.95 kB / 0.6836 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.3e-05/0.1487, allocations: 35.83 kB / 0.6837 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.883e-05/0.1487, allocations: 71.55 kB / 0.6837 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.1489, allocations: 127.7 kB / 0.6839 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1489, allocations: 0 / 0.6839 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.032e-06/0.1489, allocations: 0 / 0.6839 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.1489, allocations: 0 / 0.6839 GB, free: 9.789 MB / 0.5294 GB 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.0008179/0.1497, allocations: 0.5042 MB / 0.6844 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1498, allocations: 8.031 kB / 0.6844 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.931e-05/0.1498, allocations: 20.75 kB / 0.6844 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.15, allocations: 235.9 kB / 0.6846 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1501, allocations: 12.31 kB / 0.6846 GB, free: 8.922 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.1501, allocations: 8.359 kB / 0.6846 GB, free: 8.914 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.1504, allocations: 128.6 kB / 0.6848 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1504, allocations: 8 kB / 0.6848 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.1504, allocations: 4 kB / 0.6848 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1504, allocations: 0 / 0.6848 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.1507, allocations: 103.9 kB / 0.6849 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.1512, allocations: 408.5 kB / 0.6853 GB, free: 8.223 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1516, allocations: 141.2 kB / 0.6854 GB, free: 8.078 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.1517, allocations: 72.81 kB / 0.6855 GB, free: 8.004 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005636/0.1523, allocations: 449.5 kB / 0.6859 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.1526, allocations: 131.4 kB / 0.686 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.1526, allocations: 0 / 0.686 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of matching and sorting (n=16): time 0.0005668/0.1532, allocations: 229.3 kB / 0.6862 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.1532, allocations: 55.41 kB / 0.6863 GB, free: 7.035 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.1534, allocations: 178.5 kB / 0.6865 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.1534, allocations: 33.7 kB / 0.6865 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.1535, allocations: 111.9 kB / 0.6866 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.1535, allocations: 55.25 kB / 0.6866 GB, free: 6.645 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.409e-05/0.1536, allocations: 37.7 kB / 0.6867 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.043e-05/0.1537, allocations: 330.8 kB / 0.687 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1539, allocations: 80.7 kB / 0.6871 GB, free: 6.188 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1541, allocations: 86.53 kB / 0.6872 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.493/2.647, allocations: 378.8 MB / 1.057 GB, free: 203.2 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/2.647, allocations: 0 / 1.057 GB, free: 203.2 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004429/2.647, allocations: 241.9 kB / 1.057 GB, free: 203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/2.647, allocations: 33.7 kB / 1.057 GB, free: 203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/2.647, allocations: 0 / 1.057 GB, free: 203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/2.647, allocations: 6.344 kB / 1.057 GB, free: 203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/2.648, allocations: 48.61 kB / 1.057 GB, free: 202.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/2.648, allocations: 4 kB / 1.057 GB, free: 202.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/2.648, allocations: 18.12 kB / 1.057 GB, free: 202.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/2.648, allocations: 10.73 kB / 1.057 GB, free: 202.9 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.0001861/2.648, allocations: 160.1 kB / 1.058 GB, free: 202.8 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/2.648, allocations: 19.17 kB / 1.058 GB, free: 202.8 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005079/2.648, allocations: 232.8 kB / 1.058 GB, free: 202.6 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/2.648, allocations: 4 kB / 1.058 GB, free: 202.6 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/2.649, allocations: 0 / 1.058 GB, free: 202.6 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/2.649, allocations: 7.984 kB / 1.058 GB, free: 202.6 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/2.649, allocations: 261.7 kB / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/2.649, allocations: 0 / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/2.649, allocations: 39.08 kB / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/2.649, allocations: 0 / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/2.649, allocations: 11.17 kB / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/2.649, allocations: 0 / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/2.649, allocations: 0 / 1.058 GB, free: 202.3 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005218/2.649, allocations: 321.1 kB / 1.058 GB, free: 202 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/2.65, allocations: 106.9 kB / 1.059 GB, free: 201.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/2.65, allocations: 4 kB / 1.059 GB, free: 201.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/2.65, allocations: 11.36 kB / 1.059 GB, free: 201.9 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/2.65, allocations: 19.34 kB / 1.059 GB, free: 201.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/2.65, allocations: 11.06 kB / 1.059 GB, free: 201.9 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.866e-05/2.65, allocations: 135.7 kB / 1.059 GB, free: 201.8 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/2.65, allocations: 4 kB / 1.059 GB, free: 201.8 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002469/2.65, allocations: 59.25 kB / 1.059 GB, free: 201.7 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.0001353/2.65, allocations: 119.5 kB / 1.059 GB, free: 201.6 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004064/2.651, allocations: 231.6 kB / 1.059 GB, free: 201.4 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/2.651, allocations: 0 / 1.059 GB, free: 201.4 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001673/2.651, allocations: 94.78 kB / 1.059 GB, free: 201.4 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/2.651, allocations: 29.23 kB / 1.059 GB, free: 201.3 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007535/2.652, allocations: 0.6086 MB / 1.06 GB, free: 200.8 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/2.652, allocations: 0.7233 MB / 1.061 GB, free: 200 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.933e-05/2.652, allocations: 27.44 kB / 1.061 GB, free: 200 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/2.652, allocations: 0 / 1.061 GB, free: 200 MB / 0.7169 GB Notification: Performance of Templates: time 0.003396/2.656, allocations: 2.669 MB / 1.063 GB, free: 197.4 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)