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.001036/0.001036, allocations: 85.95 kB / 19.87 MB, free: 4.609 MB / 18.57 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.0008705/0.0008705, allocations: 165.7 kB / 23.27 MB, free: 1.215 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.9426/0.9426, allocations: 177.1 MB / 203.7 MB, free: 5.52 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.001834/0.001834, allocations: 238.6 kB / 260.5 MB, free: 12.67 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.6925/0.6925, allocations: 138.4 MB / 455.5 MB, free: 1.422 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.392e-06/1.392e-06, allocations: 0 / 0.5556 GB, free: 312 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.334e-05/1.473e-05, allocations: 6.109 kB / 0.5556 GB, free: 308 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002111/0.002126, allocations: 1.954 MB / 0.5575 GB, free: 14.33 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009961/0.003122, allocations: 0.8815 MB / 0.5583 GB, free: 13.44 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.003207, allocations: 7.938 kB / 0.5583 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.003366, allocations: 51.58 kB / 0.5584 GB, free: 13.38 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 7.782e-05/0.003443, allocations: 55.5 kB / 0.5584 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.003666, allocations: 87.7 kB / 0.5585 GB, free: 13.24 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.003823, allocations: 203.1 kB / 0.5587 GB, free: 13.04 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.312e-05/0.003896, allocations: 13.8 kB / 0.5587 GB, free: 13.03 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.004053, allocations: 123.6 kB / 0.5589 GB, free: 12.91 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.489e-05/0.004138, allocations: 67.78 kB / 0.5589 GB, free: 12.84 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.004161, allocations: 12 kB / 0.5589 GB, free: 12.83 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.491e-05/0.004256, allocations: 63.94 kB / 0.559 GB, free: 12.77 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.004283, allocations: 23.92 kB / 0.559 GB, free: 12.74 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 4.141e-05/0.004324, allocations: 47.83 kB / 0.5591 GB, free: 12.7 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.004509, allocations: 175.3 kB / 0.5592 GB, free: 12.52 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.004511, allocations: 0 / 0.5592 GB, free: 12.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.72e-07/0.004511, allocations: 0 / 0.5592 GB, free: 12.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.004515, allocations: 0 / 0.5592 GB, free: 12.52 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.0005453/0.00506, allocations: 0.5364 MB / 0.5597 GB, free: 11.95 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.005094, allocations: 12.75 kB / 0.5598 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.005241, allocations: 36.83 kB / 0.5598 GB, free: 11.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.005392, allocations: 180.3 kB / 0.56 GB, free: 11.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.005404, allocations: 12.36 kB / 0.56 GB, free: 11.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.005424, allocations: 12.38 kB / 0.56 GB, free: 11.67 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.005568, allocations: 106.8 kB / 0.5601 GB, free: 11.56 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.005577, allocations: 192 / 0.5601 GB, free: 11.56 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.005587, allocations: 4.375 kB / 0.5601 GB, free: 11.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.005593, allocations: 7.938 kB / 0.5601 GB, free: 11.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.927e-05/0.005652, allocations: 35.95 kB / 0.5601 GB, free: 11.51 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003529/0.006005, allocations: 348.1 kB / 0.5605 GB, free: 11.14 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.02e-05/0.006095, allocations: 74.95 kB / 0.5605 GB, free: 11.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.958e-05/0.006135, allocations: 39.66 kB / 0.5606 GB, free: 11.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001927/0.006328, allocations: 71.84 kB / 0.5607 GB, free: 10.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/0.006445, allocations: 100.9 kB / 0.5607 GB, free: 10.83 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.006447, allocations: 0 / 0.5607 GB, free: 10.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002147/0.006661, allocations: 153.9 kB / 0.5609 GB, free: 10.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.465e-05/0.006686, allocations: 55.41 kB / 0.5609 GB, free: 10.61 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.006798, allocations: 222.7 kB / 0.5612 GB, free: 10.38 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.006818, allocations: 29.7 kB / 0.5612 GB, free: 10.34 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.006933, allocations: 158.8 kB / 0.5613 GB, free: 10.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.573e-05/0.006989, allocations: 71.45 kB / 0.5614 GB, free: 10.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.007058, allocations: 43.33 kB / 0.5614 GB, free: 10.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.007187, allocations: 0.504 MB / 0.5619 GB, free: 9.543 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.064e-05/0.007247, allocations: 61.34 kB / 0.562 GB, free: 9.473 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.875e-05/0.007306, allocations: 88.7 kB / 0.5621 GB, free: 9.367 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.007441, allocations: 180.9 kB / 0.5623 GB, free: 9.168 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.007442, allocations: 0 / 0.5623 GB, free: 9.168 MB / 490.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001788/0.007621, allocations: 211.5 kB / 0.5625 GB, free: 8.945 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.007643, allocations: 37.7 kB / 0.5625 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.007648, allocations: 4 kB / 0.5625 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.007659, allocations: 0 / 0.5625 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.007793, allocations: 47.91 kB / 0.5625 GB, free: 8.852 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.818e-06/0.007797, allocations: 4 kB / 0.5625 GB, free: 8.848 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.414e-05/0.007871, allocations: 19.88 kB / 0.5626 GB, free: 8.828 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.007882, allocations: 8 kB / 0.5626 GB, free: 8.82 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.0001236/0.008006, allocations: 185.7 kB / 0.5628 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.008031, allocations: 23.91 kB / 0.5628 GB, free: 8.602 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.008252, allocations: 175.3 kB / 0.5629 GB, free: 8.422 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.008255, allocations: 4 kB / 0.5629 GB, free: 8.418 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.008257, allocations: 4 kB / 0.5629 GB, free: 8.414 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.008262, allocations: 3.984 kB / 0.563 GB, free: 8.41 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.008451, allocations: 161.1 kB / 0.5631 GB, free: 8.227 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.008452, allocations: 0 / 0.5631 GB, free: 8.227 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.008564, allocations: 39.92 kB / 0.5631 GB, free: 8.188 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.008567, allocations: 4 kB / 0.5631 GB, free: 8.184 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.008578, allocations: 7.922 kB / 0.5632 GB, free: 8.176 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.00858, allocations: 3.938 kB / 0.5632 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.008582, allocations: 4 kB / 0.5632 GB, free: 8.168 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002182/0.0088, allocations: 216.4 kB / 0.5634 GB, free: 7.938 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.008843, allocations: 27.83 kB / 0.5634 GB, free: 7.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.008862, allocations: 11.94 kB / 0.5634 GB, free: 7.898 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.32e-05/0.008926, allocations: 15.98 kB / 0.5634 GB, free: 7.883 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.974e-05/0.008965, allocations: 15.97 kB / 0.5634 GB, free: 7.867 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.008974, allocations: 8.031 kB / 0.5634 GB, free: 7.859 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.431e-05/0.009029, allocations: 165 kB / 0.5636 GB, free: 7.699 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009029, allocations: 0 / 0.5636 GB, free: 7.699 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001686/0.009197, allocations: 55.94 kB / 0.5637 GB, free: 7.645 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.0001092/0.009307, allocations: 130.1 kB / 0.5638 GB, free: 7.512 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.009474, allocations: 180.6 kB / 0.564 GB, free: 7.312 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.009476, allocations: 8.125 kB / 0.564 GB, free: 7.305 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 6.047e-05/0.009537, allocations: 59.58 kB / 0.564 GB, free: 7.242 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001711/0.009708, allocations: 27.98 kB / 0.564 GB, free: 7.215 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005935/0.0103, allocations: 450.4 kB / 0.5645 GB, free: 6.746 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.511e-05/0.01034, allocations: 75.98 kB / 0.5645 GB, free: 6.652 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.114e-05/0.01042, allocations: 29.62 kB / 0.5646 GB, free: 6.625 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.01052, allocations: 106.2 kB / 0.5647 GB, free: 6.52 MB / 490.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01052, allocations: 0 / 0.5647 GB, free: 6.52 MB / 490.7 MB Notification: Performance of Templates: time 0.004523/0.01505, allocations: 2.892 MB / 0.5675 GB, free: 3.676 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.5799449370242655]