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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 101.7 kB / 19.59 MB, free: 2.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 188.8 kB / 22.85 MB, free: 5.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 225.6 MB / 251.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 289.8 kB / 307 MB, free: 8.367 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.151/1.151, allocations: 180.8 MB / 0.5304 GB, free: 14.48 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.003071/0.003071, allocations: 107.4 kB / 0.731 GB, free: 38.88 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1673, allocations: 94.2 MB / 0.823 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003745/0.1711, allocations: 2.663 MB / 0.8256 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001665/0.1727, allocations: 1.096 MB / 0.8267 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.1728, allocations: 15.88 kB / 0.8267 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.1731, allocations: 75.3 kB / 0.8268 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.1733, allocations: 127 kB / 0.8269 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003918/0.1737, allocations: 183.6 kB / 0.8271 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005092/0.1742, allocations: 0.5099 MB / 0.8276 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.1743, allocations: 28.92 kB / 0.8276 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.1746, allocations: 239.1 kB / 0.8278 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003177/0.1749, allocations: 223.1 kB / 0.8281 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.341e-05/0.175, allocations: 28 kB / 0.8281 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.1751, allocations: 83.94 kB / 0.8282 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.209e-05/0.1752, allocations: 79.66 kB / 0.8282 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.1754, allocations: 183 kB / 0.8284 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.1759, allocations: 418.2 kB / 0.8288 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1759, allocations: 4 kB / 0.8288 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1759, allocations: 0 / 0.8288 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.1759, allocations: 0 / 0.8288 GB, free: 11.96 MB / 0.5762 GB 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.001747/0.1776, allocations: 0.7493 MB / 0.8295 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.1777, allocations: 8.031 kB / 0.8296 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.918e-05/0.1777, allocations: 44.7 kB / 0.8296 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1781, allocations: 280.9 kB / 0.8299 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1782, allocations: 20.75 kB / 0.8299 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.1782, allocations: 28.36 kB / 0.8299 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007046/0.1789, allocations: 325 kB / 0.8302 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1789, allocations: 4 kB / 0.8302 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.179, allocations: 12 kB / 0.8302 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.179, allocations: 4 kB / 0.8302 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008053/0.1798, allocations: 293.2 kB / 0.8305 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1809, allocations: 0.7569 MB / 0.8313 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1819, allocations: 357.6 kB / 0.8316 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004559/0.1824, allocations: 186.5 kB / 0.8318 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004787/0.1828, allocations: 79.83 kB / 0.8319 GB, free: 8.691 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007105/0.1836, allocations: 324.7 kB / 0.8322 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=42): time 1.533e-06/0.1836, allocations: 0 / 0.8322 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.00156/0.1851, allocations: 0.6145 MB / 0.8328 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.1852, allocations: 85.11 kB / 0.8328 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.1855, allocations: 300.5 kB / 0.8331 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.1855, allocations: 37.7 kB / 0.8332 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.1857, allocations: 164.9 kB / 0.8333 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.1858, allocations: 150.8 kB / 0.8335 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.1859, allocations: 94.03 kB / 0.8336 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1861, allocations: 350.8 kB / 0.8339 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000509/0.1866, allocations: 206.6 kB / 0.8341 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005229/0.1871, allocations: 250 kB / 0.8343 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.839/6.026, allocations: 0.866 GB / 1.7 GB, free: 332.3 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/6.026, allocations: 0 / 1.7 GB, free: 332.3 MB / 0.8887 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001124/6.027, allocations: 0.6391 MB / 1.701 GB, free: 332.1 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/6.027, allocations: 94.31 kB / 1.701 GB, free: 332 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/6.027, allocations: 0.5625 kB / 1.701 GB, free: 332 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/6.027, allocations: 3.938 kB / 1.701 GB, free: 332 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004994/6.028, allocations: 113.6 kB / 1.701 GB, free: 332 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/6.028, allocations: 5.75 kB / 1.701 GB, free: 332 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004308/6.028, allocations: 68.89 kB / 1.701 GB, free: 332 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/6.028, allocations: 24.3 kB / 1.701 GB, free: 332 MB / 0.8887 GB 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_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 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 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_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,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * 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.0002618/6.028, allocations: 209.1 kB / 1.701 GB, free: 331.8 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.298e-05/6.028, allocations: 43.61 kB / 1.702 GB, free: 331.8 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/6.03, allocations: 0.6263 MB / 1.702 GB, free: 331.7 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/6.03, allocations: 9.328 kB / 1.702 GB, free: 331.7 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/6.03, allocations: 3.938 kB / 1.702 GB, free: 331.7 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/6.03, allocations: 0.5469 kB / 1.702 GB, free: 331.7 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003312/6.03, allocations: 413.1 kB / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/6.03, allocations: 0 / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005334/6.031, allocations: 113.3 kB / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/6.031, allocations: 0 / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/6.031, allocations: 16.97 kB / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/6.031, allocations: 4.562 kB / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/6.031, allocations: 8.031 kB / 1.703 GB, free: 331.4 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/6.032, allocations: 0.7846 MB / 1.703 GB, free: 330.9 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/6.032, allocations: 85.25 kB / 1.704 GB, free: 330.9 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/6.032, allocations: 17.27 kB / 1.704 GB, free: 330.9 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004018/6.033, allocations: 35.34 kB / 1.704 GB, free: 330.8 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/6.033, allocations: 58.67 kB / 1.704 GB, free: 330.8 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/6.033, allocations: 20.19 kB / 1.704 GB, free: 330.8 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001523/6.033, allocations: 219.8 kB / 1.704 GB, free: 330.6 MB / 0.8887 GB Notification: Performance of sort global known variables: time 9e-08/6.033, allocations: 0 / 1.704 GB, free: 330.6 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0003434/6.033, allocations: 114.2 kB / 1.704 GB, free: 330.5 MB / 0.8887 GB 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.0001676/6.034, allocations: 141 kB / 1.704 GB, free: 330.4 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009833/6.035, allocations: 0.6082 MB / 1.705 GB, free: 329.9 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/6.035, allocations: 0 / 1.705 GB, free: 329.9 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0004676/6.035, allocations: 245.5 kB / 1.705 GB, free: 329.7 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/6.035, allocations: 77.92 kB / 1.705 GB, free: 329.6 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/6.037, allocations: 1.105 MB / 1.706 GB, free: 328.6 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/6.037, allocations: 0.8013 MB / 1.707 GB, free: 327.8 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002839/6.037, allocations: 84.23 kB / 1.707 GB, free: 327.7 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/6.037, allocations: 51.42 kB / 1.707 GB, free: 327.6 MB / 0.8887 GB Notification: Performance of SimCode: time 3.2e-07/6.037, allocations: 0 / 1.707 GB, free: 327.6 MB / 0.8887 GB Notification: Performance of Templates: time 0.00878/6.046, allocations: 6.339 MB / 1.713 GB, free: 321.4 MB / 0.8887 GB " [Timeout remaining time 654] 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=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 11.7581092420005] Failed to read output from testmodel.py, exit status != 0: 6.052696343002026 6.060873434 5.883046534 Calling exit ...