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.0009217/0.0009217, allocations: 92.22 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.00152/0.00152, allocations: 173 kB / 23.03 MB, free: 1.543 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.9915/0.9915, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.001593/0.001593, allocations: 233.5 kB / 260.2 MB, free: 12.82 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.7034/0.7034, allocations: 138.4 MB / 455.2 MB, free: 1.531 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.532e-06/1.532e-06, allocations: 0 / 0.5551 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.054e-05/3.207e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002539/0.002571, allocations: 1.977 MB / 0.557 GB, free: 14.55 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.003668, allocations: 0.8854 MB / 0.5579 GB, free: 13.66 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.003772, allocations: 7.938 kB / 0.5579 GB, free: 13.65 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.003994, allocations: 51.58 kB / 0.5579 GB, free: 13.6 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.004095, allocations: 51.58 kB / 0.558 GB, free: 13.55 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.004442, allocations: 95.62 kB / 0.5581 GB, free: 13.46 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.004653, allocations: 207.1 kB / 0.5583 GB, free: 13.25 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.974e-05/0.004743, allocations: 9.797 kB / 0.5583 GB, free: 13.25 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.004924, allocations: 119.7 kB / 0.5584 GB, free: 13.13 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.981e-05/0.005024, allocations: 67.78 kB / 0.5585 GB, free: 13.06 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.00505, allocations: 8 kB / 0.5585 GB, free: 13.05 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.005165, allocations: 63.95 kB / 0.5585 GB, free: 12.99 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.005196, allocations: 23.91 kB / 0.5586 GB, free: 12.97 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 5.698e-05/0.005253, allocations: 55.77 kB / 0.5586 GB, free: 12.91 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.00548, allocations: 163.4 kB / 0.5588 GB, free: 12.75 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.005483, allocations: 4 kB / 0.5588 GB, free: 12.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.005484, allocations: 0 / 0.5588 GB, free: 12.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.82e-06/0.005489, allocations: 4 kB / 0.5588 GB, free: 12.75 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.0007196/0.006208, allocations: 0.5325 MB / 0.5593 GB, free: 12.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.00625, allocations: 8.75 kB / 0.5593 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.006445, allocations: 44.83 kB / 0.5593 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.00665, allocations: 184.2 kB / 0.5595 GB, free: 11.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.006663, allocations: 384 / 0.5595 GB, free: 11.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.006689, allocations: 12.38 kB / 0.5595 GB, free: 11.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.006881, allocations: 110.9 kB / 0.5596 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.006893, allocations: 4.188 kB / 0.5596 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.006907, allocations: 384 / 0.5596 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.006916, allocations: 7.875 kB / 0.5596 GB, free: 11.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.073e-05/0.007007, allocations: 54.3 kB / 0.5597 GB, free: 11.72 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004665/0.007473, allocations: 371.5 kB / 0.5601 GB, free: 11.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.007615, allocations: 91.02 kB / 0.5601 GB, free: 11.22 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.187e-05/0.007677, allocations: 43.61 kB / 0.5602 GB, free: 11.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002302/0.007907, allocations: 51.94 kB / 0.5602 GB, free: 11.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/0.008066, allocations: 108.4 kB / 0.5603 GB, free: 11.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 2.114e-06/0.008068, allocations: 0 / 0.5603 GB, free: 11.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003126/0.008381, allocations: 157.9 kB / 0.5605 GB, free: 10.85 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.008423, allocations: 63.39 kB / 0.5605 GB, free: 10.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.008554, allocations: 230.7 kB / 0.5608 GB, free: 10.53 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.008573, allocations: 29.7 kB / 0.5608 GB, free: 10.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.007e-05/0.008643, allocations: 154.8 kB / 0.5609 GB, free: 10.34 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.008683, allocations: 67.41 kB / 0.561 GB, free: 10.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.008739, allocations: 43.36 kB / 0.561 GB, free: 10.22 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.008861, allocations: 0.504 MB / 0.5615 GB, free: 9.707 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.201e-05/0.008953, allocations: 69.36 kB / 0.5616 GB, free: 9.629 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.226e-05/0.009035, allocations: 92.73 kB / 0.5617 GB, free: 9.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.009231, allocations: 201.1 kB / 0.5619 GB, free: 9.301 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.009234, allocations: 4 kB / 0.5619 GB, free: 9.297 MB / 490.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002454/0.009479, allocations: 224.8 kB / 0.5621 GB, free: 9.059 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.009512, allocations: 33.69 kB / 0.5621 GB, free: 9.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.009517, allocations: 0 / 0.5621 GB, free: 9.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.009532, allocations: 4 kB / 0.5621 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.009687, allocations: 39.97 kB / 0.5622 GB, free: 8.977 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.009694, allocations: 0 / 0.5622 GB, free: 8.977 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.162e-05/0.009775, allocations: 23.83 kB / 0.5622 GB, free: 8.953 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.00979, allocations: 11.98 kB / 0.5622 GB, free: 8.941 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.0001645/0.009954, allocations: 181.9 kB / 0.5624 GB, free: 8.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.009984, allocations: 31.78 kB / 0.5624 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.01028, allocations: 193.5 kB / 0.5626 GB, free: 8.523 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.01028, allocations: 0 / 0.5626 GB, free: 8.523 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.01029, allocations: 8 kB / 0.5626 GB, free: 8.516 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.01029, allocations: 4 kB / 0.5626 GB, free: 8.512 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.01044, allocations: 180.5 kB / 0.5628 GB, free: 8.301 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01044, allocations: 0 / 0.5628 GB, free: 8.301 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.01057, allocations: 39.97 kB / 0.5628 GB, free: 8.262 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.01057, allocations: 3.938 kB / 0.5628 GB, free: 8.258 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.01059, allocations: 4 kB / 0.5628 GB, free: 8.254 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.01059, allocations: 0 / 0.5628 GB, free: 8.254 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.01059, allocations: 0 / 0.5628 GB, free: 8.254 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.01089, allocations: 236.9 kB / 0.5631 GB, free: 8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.01094, allocations: 43.75 kB / 0.5631 GB, free: 7.957 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.01097, allocations: 4 kB / 0.5631 GB, free: 7.953 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.865e-05/0.01104, allocations: 8 kB / 0.5631 GB, free: 7.945 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.01109, allocations: 23.95 kB / 0.5631 GB, free: 7.922 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.01111, allocations: 4 kB / 0.5631 GB, free: 7.918 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.638e-05/0.01118, allocations: 165.1 kB / 0.5633 GB, free: 7.758 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01118, allocations: 0 / 0.5633 GB, free: 7.758 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002018/0.01138, allocations: 59.92 kB / 0.5633 GB, free: 7.699 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.0001575/0.01154, allocations: 123.1 kB / 0.5635 GB, free: 7.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002518/0.01179, allocations: 199.7 kB / 0.5637 GB, free: 7.355 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.0118, allocations: 0 / 0.5637 GB, free: 7.355 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.457e-05/0.01188, allocations: 63.59 kB / 0.5637 GB, free: 7.289 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.0121, allocations: 35.86 kB / 0.5638 GB, free: 7.254 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.01319, allocations: 454.8 kB / 0.5642 GB, free: 6.781 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.456e-05/0.01323, allocations: 75.98 kB / 0.5643 GB, free: 6.688 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.845e-05/0.01332, allocations: 29.62 kB / 0.5643 GB, free: 6.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.01338, allocations: 32.42 kB / 0.5643 GB, free: 6.629 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/0.01339, allocations: 0 / 0.5643 GB, free: 6.629 MB / 490.7 MB Notification: Performance of Templates: time 0.005088/0.01847, allocations: 2.833 MB / 0.5671 GB, free: 3.84 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.356969458982348]