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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 165 kB / 23.01 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9475/0.9475, allocations: 177.1 MB / 203.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001697/0.001697, allocations: 233.1 kB / 260.2 MB, free: 12.81 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7217/0.7217, allocations: 138.4 MB / 455.2 MB, free: 1.547 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 0.5551 GB, free: 0.582 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.633e-05, allocations: 6.312 kB / 0.5551 GB, free: 0.5742 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002052/0.002069, allocations: 1.969 MB / 0.557 GB, free: 14.59 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.003178, allocations: 0.8854 MB / 0.5579 GB, free: 13.69 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.877e-05/0.003257, allocations: 7.938 kB / 0.5579 GB, free: 13.68 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.003468, allocations: 51.58 kB / 0.5579 GB, free: 13.63 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 7.63e-05/0.003544, allocations: 51.56 kB / 0.558 GB, free: 13.58 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.003779, allocations: 99.62 kB / 0.5581 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.00396, allocations: 199.1 kB / 0.5583 GB, free: 13.29 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.772e-05/0.004048, allocations: 17.8 kB / 0.5583 GB, free: 13.27 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.004199, allocations: 115.7 kB / 0.5584 GB, free: 13.16 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.56e-05/0.004295, allocations: 67.8 kB / 0.5585 GB, free: 13.09 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.004318, allocations: 8 kB / 0.5585 GB, free: 13.09 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.004419, allocations: 67.94 kB / 0.5585 GB, free: 13.02 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.062e-05/0.00445, allocations: 23.91 kB / 0.5585 GB, free: 13 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 5.129e-05/0.004501, allocations: 51.78 kB / 0.5586 GB, free: 12.95 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.004693, allocations: 171.4 kB / 0.5588 GB, free: 12.78 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.004695, allocations: 0 / 0.5588 GB, free: 12.78 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004695, allocations: 0 / 0.5588 GB, free: 12.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.004699, allocations: 0 / 0.5588 GB, free: 12.78 MB / 490.7 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.000622/0.005321, allocations: 0.5325 MB / 0.5593 GB, free: 12.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.005356, allocations: 8.75 kB / 0.5593 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.00552, allocations: 36.83 kB / 0.5593 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.005701, allocations: 188.2 kB / 0.5595 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.005714, allocations: 8.375 kB / 0.5595 GB, free: 11.94 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.005744, allocations: 8.375 kB / 0.5595 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.005923, allocations: 110.9 kB / 0.5596 GB, free: 11.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.005935, allocations: 8.188 kB / 0.5596 GB, free: 11.81 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.005948, allocations: 384 / 0.5596 GB, free: 11.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.005957, allocations: 7.938 kB / 0.5596 GB, free: 11.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.54e-05/0.006042, allocations: 54.23 kB / 0.5597 GB, free: 11.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006675/0.00671, allocations: 375.5 kB / 0.56 GB, free: 11.35 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.00684, allocations: 79.02 kB / 0.5601 GB, free: 11.26 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.969e-05/0.006899, allocations: 47.61 kB / 0.5602 GB, free: 11.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.007114, allocations: 55.94 kB / 0.5602 GB, free: 11.15 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.007261, allocations: 108.7 kB / 0.5603 GB, free: 11.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 1.132e-06/0.007262, allocations: 0 / 0.5603 GB, free: 11.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002746/0.007537, allocations: 165.9 kB / 0.5605 GB, free: 10.87 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.007564, allocations: 51.41 kB / 0.5605 GB, free: 10.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.007682, allocations: 226.7 kB / 0.5608 GB, free: 10.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.007699, allocations: 33.7 kB / 0.5608 GB, free: 10.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.007767, allocations: 158.8 kB / 0.5609 GB, free: 10.37 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.007802, allocations: 59.42 kB / 0.561 GB, free: 10.31 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.087e-05/0.007853, allocations: 51.34 kB / 0.561 GB, free: 10.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.007958, allocations: 0.5001 MB / 0.5615 GB, free: 9.738 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.727e-05/0.008035, allocations: 73.36 kB / 0.5616 GB, free: 9.656 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.562e-05/0.008111, allocations: 88.73 kB / 0.5617 GB, free: 9.551 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.00829, allocations: 196.9 kB / 0.5619 GB, free: 9.336 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.008292, allocations: 0 / 0.5619 GB, free: 9.336 MB / 490.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000209/0.008501, allocations: 224.8 kB / 0.5621 GB, free: 9.098 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.008529, allocations: 37.69 kB / 0.5621 GB, free: 9.055 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.008534, allocations: 4 kB / 0.5621 GB, free: 9.051 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.008548, allocations: 4.062 kB / 0.5621 GB, free: 9.047 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.008691, allocations: 39.97 kB / 0.5622 GB, free: 9.008 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.008696, allocations: 0 / 0.5622 GB, free: 9.008 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.552e-05/0.008771, allocations: 23.83 kB / 0.5622 GB, free: 8.984 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.008783, allocations: 11.98 kB / 0.5622 GB, free: 8.973 MB / 490.7 MB 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.685 * 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.0001337/0.008917, allocations: 196.7 kB / 0.5624 GB, free: 8.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.00894, allocations: 19.84 kB / 0.5624 GB, free: 8.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00026/0.0092, allocations: 197.5 kB / 0.5626 GB, free: 8.551 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.009202, allocations: 4 kB / 0.5626 GB, free: 8.547 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.009205, allocations: 0 / 0.5626 GB, free: 8.547 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.009209, allocations: 0 / 0.5626 GB, free: 8.547 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.009335, allocations: 188.5 kB / 0.5628 GB, free: 8.328 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.009336, allocations: 0 / 0.5628 GB, free: 8.328 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.009455, allocations: 39.97 kB / 0.5628 GB, free: 8.289 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.009458, allocations: 3.938 kB / 0.5628 GB, free: 8.285 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.009476, allocations: 8 kB / 0.5628 GB, free: 8.277 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.009477, allocations: 0 / 0.5628 GB, free: 8.277 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.009478, allocations: 0 / 0.5628 GB, free: 8.277 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.009745, allocations: 240.9 kB / 0.5631 GB, free: 8.02 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.654e-05/0.009791, allocations: 31.75 kB / 0.5631 GB, free: 7.988 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.009811, allocations: 8 kB / 0.5631 GB, free: 7.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.135e-05/0.009872, allocations: 8 kB / 0.5631 GB, free: 7.973 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.009922, allocations: 19.95 kB / 0.5631 GB, free: 7.953 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.009932, allocations: 12 kB / 0.5631 GB, free: 7.941 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.095e-05/0.01, allocations: 165.1 kB / 0.5633 GB, free: 7.781 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01, allocations: 0 / 0.5633 GB, free: 7.781 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001675/0.01017, allocations: 55.92 kB / 0.5633 GB, free: 7.727 MB / 490.7 MB 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.0001239/0.01029, allocations: 123.1 kB / 0.5635 GB, free: 7.598 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000214/0.01051, allocations: 195.7 kB / 0.5636 GB, free: 7.387 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.01051, allocations: 0 / 0.5636 GB, free: 7.387 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 7.802e-05/0.01059, allocations: 67.59 kB / 0.5637 GB, free: 7.316 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.01078, allocations: 43.97 kB / 0.5638 GB, free: 7.273 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006921/0.01147, allocations: 451.8 kB / 0.5642 GB, free: 6.801 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.844e-05/0.01151, allocations: 75.98 kB / 0.5643 GB, free: 6.707 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.078e-05/0.01158, allocations: 25.62 kB / 0.5643 GB, free: 6.684 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.01164, allocations: 24.48 kB / 0.5643 GB, free: 6.66 MB / 490.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01164, allocations: 7.938 kB / 0.5643 GB, free: 6.652 MB / 490.7 MB Notification: Performance of Templates: time 0.004131/0.01577, allocations: 2.653 MB / 0.5669 GB, free: 4.047 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.682775883935392]