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.0009019/0.0009019, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009343/0.0009343, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.9896/0.9896, allocations: 177.2 MB / 203.8 MB, free: 5.473 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.002329/0.002329, allocations: 245 kB / 260.5 MB, free: 12.69 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.7457/0.7457, allocations: 138.4 MB / 402.2 MB, free: 0.5391 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.142e-06/1.142e-06, allocations: 0 / 462.3 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.772e-05, allocations: 4.734 kB / 462.3 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.002979/0.002997, allocations: 2.6 MB / 464.9 MB, free: 15.26 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.004677, allocations: 1.133 MB / 466 MB, free: 14.5 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.004832, allocations: 14.78 kB / 466 MB, free: 14.49 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.005092, allocations: 70.39 kB / 466.1 MB, free: 14.45 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.005315, allocations: 135.8 kB / 466.2 MB, free: 14.36 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.005781, allocations: 181.6 kB / 466.4 MB, free: 14.27 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005352/0.006316, allocations: 0.5203 MB / 466.9 MB, free: 14.01 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.006432, allocations: 30.48 kB / 466.9 MB, free: 14 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.006878, allocations: 322.8 kB / 467.3 MB, free: 13.7 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.007086, allocations: 173.5 kB / 467.4 MB, free: 13.53 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 4.096e-05/0.007127, allocations: 28 kB / 467.5 MB, free: 13.5 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.007272, allocations: 91.88 kB / 467.6 MB, free: 13.41 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 6.376e-05/0.007336, allocations: 76.2 kB / 467.6 MB, free: 13.34 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.007457, allocations: 123.7 kB / 467.7 MB, free: 13.21 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003734/0.00783, allocations: 363.2 kB / 468.1 MB, free: 12.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.007834, allocations: 4.625 kB / 468.1 MB, free: 12.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.007835, allocations: 0 / 468.1 MB, free: 12.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.007842, allocations: 0.5938 kB / 468.1 MB, free: 12.86 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.001101/0.008943, allocations: 0.7194 MB / 468.8 MB, free: 12.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.008977, allocations: 12.75 kB / 468.8 MB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.009323, allocations: 92.89 kB / 468.9 MB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.009603, allocations: 249.6 kB / 469.2 MB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.00962, allocations: 20.88 kB / 469.2 MB, free: 11.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.009667, allocations: 31.23 kB / 469.2 MB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.009976, allocations: 256.2 kB / 469.5 MB, free: 11.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.00999, allocations: 4.172 kB / 469.5 MB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.01001, allocations: 12.38 kB / 469.5 MB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.01002, allocations: 7.938 kB / 469.5 MB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.01016, allocations: 81.95 kB / 469.6 MB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.0107, allocations: 452.4 kB / 470 MB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.01097, allocations: 175.3 kB / 470.2 MB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.613e-05/0.01106, allocations: 79.09 kB / 470.3 MB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002057/0.01126, allocations: 68.55 kB / 470.3 MB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.01151, allocations: 224 kB / 470.6 MB, free: 10.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 2.275e-06/0.01151, allocations: 2.062 kB / 470.6 MB, free: 10.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.0003602/0.01187, allocations: 264.3 kB / 470.8 MB, free: 10.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.01192, allocations: 89.03 kB / 470.9 MB, free: 9.949 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.01208, allocations: 290.8 kB / 471.2 MB, free: 9.656 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.01211, allocations: 37.7 kB / 471.2 MB, free: 9.613 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.226e-05/0.01217, allocations: 142.1 kB / 471.4 MB, free: 9.469 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.878e-05/0.01226, allocations: 146.8 kB / 471.5 MB, free: 9.324 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.976e-05/0.01236, allocations: 96.28 kB / 471.6 MB, free: 9.227 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003521/0.01271, allocations: 354.7 kB / 471.9 MB, free: 8.871 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.01285, allocations: 167.8 kB / 472.1 MB, free: 8.688 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.01298, allocations: 199.4 kB / 472.3 MB, free: 8.457 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003518/0.01333, allocations: 463.5 kB / 472.8 MB, free: 7.961 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.01333, allocations: 1.469 kB / 472.8 MB, free: 7.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0003467/0.01368, allocations: 429.1 kB / 473.2 MB, free: 7.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.543e-05/0.01373, allocations: 93.84 kB / 473.3 MB, free: 7.391 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.01373, allocations: 0 / 473.3 MB, free: 7.391 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.01375, allocations: 9.375 kB / 473.3 MB, free: 7.383 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.01401, allocations: 113.7 kB / 473.4 MB, free: 7.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.01402, allocations: 4.703 kB / 473.4 MB, free: 7.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.0142, allocations: 60.73 kB / 473.5 MB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.01423, allocations: 19.98 kB / 473.5 MB, free: 7.191 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.0001851/0.01441, allocations: 189.9 kB / 473.7 MB, free: 7.012 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/0.01446, allocations: 39.95 kB / 473.7 MB, free: 6.973 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004807/0.01494, allocations: 361.6 kB / 474 MB, free: 6.629 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.01495, allocations: 12.62 kB / 474.1 MB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.01495, allocations: 2.031 kB / 474.1 MB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.01496, allocations: 3.984 kB / 474.1 MB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.01519, allocations: 225.5 kB / 474.3 MB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.01519, allocations: 0 / 474.3 MB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.01544, allocations: 92.72 kB / 474.4 MB, free: 6.285 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.01545, allocations: 6 kB / 474.4 MB, free: 6.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.01547, allocations: 15.98 kB / 474.4 MB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.01547, allocations: 0 / 474.4 MB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.01547, allocations: 5.438 kB / 474.4 MB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004169/0.01589, allocations: 394.4 kB / 474.8 MB, free: 5.863 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.983e-05/0.01599, allocations: 55.58 kB / 474.8 MB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.01604, allocations: 16.8 kB / 474.9 MB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.01618, allocations: 33.12 kB / 474.9 MB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.37e-05/0.01627, allocations: 53.3 kB / 474.9 MB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.01629, allocations: 15.98 kB / 475 MB, free: 5.695 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.197e-05/0.01636, allocations: 108.6 kB / 475.1 MB, free: 5.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01636, allocations: 1.469 kB / 475.1 MB, free: 5.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002359/0.01659, allocations: 111.9 kB / 475.2 MB, free: 5.48 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.0001474/0.01674, allocations: 123.3 kB / 475.3 MB, free: 5.355 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003816/0.01712, allocations: 494.3 kB / 475.8 MB, free: 4.816 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.01713, allocations: 4 kB / 475.8 MB, free: 4.812 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.01727, allocations: 137.6 kB / 475.9 MB, free: 4.676 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002291/0.0175, allocations: 87.94 kB / 476 MB, free: 4.598 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009466/0.01845, allocations: 0.7262 MB / 476.7 MB, free: 3.871 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.464e-05/0.01851, allocations: 111 kB / 476.8 MB, free: 3.734 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000215/0.01873, allocations: 84.89 kB / 476.9 MB, free: 3.676 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.01895, allocations: 139.3 kB / 477.1 MB, free: 3.535 MB / 426.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01896, allocations: 5 kB / 477.1 MB, free: 3.531 MB / 426.7 MB Notification: Performance of Templates: time 0.008699/0.02765, allocations: 6.55 MB / 483.6 MB, free: 13.39 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.0135780069977045]