Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.0009992/0.0009992, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.0009881/0.0009881, allocations: 173 kB / 23.36 MB, free: 1.133 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 1.005/1.005, allocations: 177.1 MB / 203.8 MB, free: 5.5 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.001772/0.001772, allocations: 245.6 kB / 260.5 MB, free: 12.72 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.8099/0.8099, allocations: 138.4 MB / 402.2 MB, free: 0.5742 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.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 462.3 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.561e-05/1.676e-05, allocations: 3.75 kB / 462.3 MB, free: 0.918 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.002922/0.002939, allocations: 2.647 MB / 465 MB, free: 15.2 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.004544, allocations: 1.123 MB / 466.1 MB, free: 14.46 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.004689, allocations: 19.28 kB / 466.1 MB, free: 14.45 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.004871, allocations: 69.28 kB / 466.2 MB, free: 14.41 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.00508, allocations: 138.8 kB / 466.3 MB, free: 14.31 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.005476, allocations: 173 kB / 466.5 MB, free: 14.22 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004442/0.00592, allocations: 0.5184 MB / 467 MB, free: 13.96 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.511e-05/0.006005, allocations: 32.61 kB / 467 MB, free: 13.94 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.006338, allocations: 326.2 kB / 467.3 MB, free: 13.65 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.006536, allocations: 177.3 kB / 467.5 MB, free: 13.48 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.946e-05/0.006575, allocations: 28 kB / 467.5 MB, free: 13.45 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.006715, allocations: 91.88 kB / 467.6 MB, free: 13.36 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.183e-05/0.006767, allocations: 76.53 kB / 467.7 MB, free: 13.29 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 9.422e-05/0.006861, allocations: 127.6 kB / 467.8 MB, free: 13.16 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.007164, allocations: 364.1 kB / 468.2 MB, free: 12.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.443e-06/0.007165, allocations: 0 / 468.2 MB, free: 12.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.007166, allocations: 0 / 468.2 MB, free: 12.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.00717, allocations: 0 / 468.2 MB, free: 12.8 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008048/0.007975, allocations: 0.7194 MB / 468.9 MB, free: 12.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.692e-05/0.008002, allocations: 8.75 kB / 468.9 MB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003421/0.008344, allocations: 90.38 kB / 469 MB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.008592, allocations: 258.7 kB / 469.3 MB, free: 11.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.008605, allocations: 20.88 kB / 469.3 MB, free: 11.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.008643, allocations: 20.38 kB / 469.3 MB, free: 11.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.008922, allocations: 256.6 kB / 469.6 MB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.008933, allocations: 192 / 469.6 MB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.008952, allocations: 8.359 kB / 469.6 MB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.00896, allocations: 11.94 kB / 469.6 MB, free: 11.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.009099, allocations: 94.33 kB / 469.7 MB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005048/0.009604, allocations: 448 kB / 470.1 MB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.009858, allocations: 180.3 kB / 470.3 MB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.221e-05/0.009951, allocations: 86.41 kB / 470.4 MB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001839/0.01013, allocations: 65.95 kB / 470.4 MB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.01036, allocations: 224.2 kB / 470.6 MB, free: 10.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 1.492e-06/0.01036, allocations: 0 / 470.6 MB, free: 10.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.0003397/0.0107, allocations: 266.2 kB / 470.9 MB, free: 9.996 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.01073, allocations: 89.03 kB / 471 MB, free: 9.891 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.01088, allocations: 282.8 kB / 471.3 MB, free: 9.605 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.01091, allocations: 38.36 kB / 471.3 MB, free: 9.562 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.01097, allocations: 133.5 kB / 471.4 MB, free: 9.426 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.05e-05/0.01105, allocations: 147.4 kB / 471.6 MB, free: 9.281 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.01115, allocations: 98.06 kB / 471.7 MB, free: 9.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.646e-05/0.01124, allocations: 355.8 kB / 472 MB, free: 8.824 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.01136, allocations: 167.9 kB / 472.2 MB, free: 8.641 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.01151, allocations: 200.2 kB / 472.4 MB, free: 8.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.01185, allocations: 466.2 kB / 472.8 MB, free: 7.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01186, allocations: 0 / 472.8 MB, free: 7.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0003456/0.0122, allocations: 425.8 kB / 473.3 MB, free: 7.457 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/0.01225, allocations: 97.09 kB / 473.3 MB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.01225, allocations: 0 / 473.3 MB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.01226, allocations: 8.844 kB / 473.4 MB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003378/0.0126, allocations: 124.7 kB / 473.5 MB, free: 7.215 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.01261, allocations: 5.938 kB / 473.5 MB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.0128, allocations: 60.55 kB / 473.5 MB, free: 7.152 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.01283, allocations: 15.98 kB / 473.6 MB, free: 7.137 MB / 426.7 MB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery_C20.EBou:VARIABLE(start = 0.685 * battery_C20.SOC_start * battery_C20.E_nominal unit = \"J\" fixed = true ) \"Bound charge of the battery\" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery_1C.EBou:VARIABLE(start = 0.685 * battery_1C.SOC_start * battery_1C.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: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1,$PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0001789/0.01301, allocations: 193.1 kB / 473.7 MB, free: 6.949 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.553e-05/0.01305, allocations: 35.97 kB / 473.8 MB, free: 6.914 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000487/0.01354, allocations: 366 kB / 474.1 MB, free: 6.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.01354, allocations: 11.92 kB / 474.2 MB, free: 6.559 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.01355, allocations: 4 kB / 474.2 MB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.01355, allocations: 1.688 kB / 474.2 MB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002146/0.01377, allocations: 229.4 kB / 474.4 MB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.01377, allocations: 4.609 kB / 474.4 MB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.01405, allocations: 104.6 kB / 474.5 MB, free: 6.207 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.01406, allocations: 6.172 kB / 474.5 MB, free: 6.203 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.01408, allocations: 15.98 kB / 474.5 MB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.01409, allocations: 0 / 474.5 MB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01409, allocations: 7.312 kB / 474.5 MB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.01452, allocations: 386.5 kB / 474.9 MB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.229e-05/0.01462, allocations: 51.64 kB / 474.9 MB, free: 5.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.004e-05/0.01466, allocations: 15.98 kB / 475 MB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.01481, allocations: 32.47 kB / 475 MB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.64e-05/0.0149, allocations: 55.78 kB / 475 MB, free: 5.641 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.01492, allocations: 17.55 kB / 475.1 MB, free: 5.625 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.592e-05/0.01499, allocations: 112.6 kB / 475.2 MB, free: 5.516 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01499, allocations: 0 / 475.2 MB, free: 5.516 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.01525, allocations: 111.9 kB / 475.3 MB, free: 5.406 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001383/0.01538, allocations: 114.9 kB / 475.4 MB, free: 5.289 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003915/0.01578, allocations: 493.4 kB / 475.9 MB, free: 4.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.01578, allocations: 4 kB / 475.9 MB, free: 4.746 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.01594, allocations: 143 kB / 476 MB, free: 4.605 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.01616, allocations: 86.33 kB / 476.1 MB, free: 4.531 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009727/0.01713, allocations: 0.7258 MB / 476.8 MB, free: 3.805 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.231e-05/0.01719, allocations: 111 kB / 476.9 MB, free: 3.672 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.01743, allocations: 82.27 kB / 477 MB, free: 3.617 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.01766, allocations: 136.5 kB / 477.2 MB, free: 3.48 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01767, allocations: 4 kB / 477.2 MB, free: 3.477 MB / 426.7 MB Notification: Performance of Templates: time 0.008423/0.02609, allocations: 6.576 MB / 483.7 MB, free: 13.3 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.126726736780256]