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.001263/0.001263, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001395/0.001395, allocations: 209.8 kB / 23.01 MB, free: 4.566 MB / 14.72 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.356/1.356, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.002408/0.002408, allocations: 287.1 kB / 313.5 MB, free: 2.809 MB / 238.1 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 1.155/1.155, allocations: 180.6 MB / 0.5377 GB, free: 12.92 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 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: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002931/0.002931, allocations: 100.6 kB / 0.7408 GB, free: 28.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1861, allocations: 95.38 MB / 0.8339 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003959/0.1901, allocations: 2.691 MB / 0.8366 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1921, allocations: 1.142 MB / 0.8377 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1922, allocations: 15.88 kB / 0.8377 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.1925, allocations: 75.3 kB / 0.8378 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002424/0.1928, allocations: 127 kB / 0.8379 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.1932, allocations: 183.6 kB / 0.838 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005567/0.1937, allocations: 0.5022 MB / 0.8385 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.1939, allocations: 28.92 kB / 0.8386 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000337/0.1942, allocations: 239.1 kB / 0.8388 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.1946, allocations: 231 kB / 0.839 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.195e-05/0.1947, allocations: 32 kB / 0.839 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.1948, allocations: 83.91 kB / 0.8391 GB, free: 2.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.388e-05/0.1949, allocations: 75.72 kB / 0.8392 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.1951, allocations: 187 kB / 0.8394 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.1956, allocations: 430.2 kB / 0.8398 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1956, allocations: 4 kB / 0.8398 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1956, allocations: 0 / 0.8398 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.396e-05/0.1957, allocations: 0 / 0.8398 GB, free: 2.121 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.001796/0.1974, allocations: 0.7537 MB / 0.8405 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1975, allocations: 13.33 kB / 0.8405 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006409/0.1981, allocations: 84.61 kB / 0.8406 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.1986, allocations: 277 kB / 0.8409 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1986, allocations: 24.8 kB / 0.8409 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.1987, allocations: 20.38 kB / 0.8409 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007362/0.1994, allocations: 337 kB / 0.8412 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1994, allocations: 0 / 0.8412 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.1995, allocations: 8 kB / 0.8413 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1995, allocations: 7.984 kB / 0.8413 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008738/0.2003, allocations: 291.8 kB / 0.8415 GB, free: 256 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.2015, allocations: 0.7568 MB / 0.8423 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.2026, allocations: 357.5 kB / 0.8426 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004677/0.203, allocations: 193.5 kB / 0.8428 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005121/0.2035, allocations: 71.91 kB / 0.8429 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007592/0.2043, allocations: 320.5 kB / 0.8432 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=42): time 2.424e-06/0.2043, allocations: 4 kB / 0.8432 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42): time 0.00158/0.2059, allocations: 0.6069 MB / 0.8438 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/0.2059, allocations: 89.11 kB / 0.8439 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.2063, allocations: 312.4 kB / 0.8442 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.2063, allocations: 37.7 kB / 0.8442 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.2065, allocations: 164.9 kB / 0.8444 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.2066, allocations: 146.8 kB / 0.8445 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.2068, allocations: 102 kB / 0.8446 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2069, allocations: 346.8 kB / 0.8449 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005123/0.2074, allocations: 206.6 kB / 0.8451 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000511/0.208, allocations: 246 kB / 0.8454 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.065/6.273, allocations: 0.866 GB / 1.711 GB, free: 275.7 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/6.273, allocations: 0 / 1.711 GB, free: 275.7 MB / 0.8887 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001125/6.274, allocations: 0.6339 MB / 1.712 GB, free: 275.2 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/6.274, allocations: 89.09 kB / 1.712 GB, free: 275.1 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/6.274, allocations: 5.781 kB / 1.712 GB, free: 275.1 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/6.274, allocations: 4 kB / 1.712 GB, free: 275.1 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/6.275, allocations: 118.1 kB / 1.712 GB, free: 275 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/6.275, allocations: 4 kB / 1.712 GB, free: 275 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/6.275, allocations: 65.61 kB / 1.712 GB, free: 274.9 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/6.275, allocations: 23.42 kB / 1.712 GB, free: 274.9 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.0002578/6.275, allocations: 208.1 kB / 1.712 GB, free: 274.8 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.486e-05/6.275, allocations: 41.12 kB / 1.713 GB, free: 274.7 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/6.277, allocations: 0.6419 MB / 1.713 GB, free: 274.3 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/6.277, allocations: 4 kB / 1.713 GB, free: 274.2 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/6.277, allocations: 3.938 kB / 1.713 GB, free: 274.2 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/6.277, allocations: 0 / 1.713 GB, free: 274.2 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/6.277, allocations: 412.8 kB / 1.714 GB, free: 273.9 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/6.277, allocations: 0 / 1.714 GB, free: 273.9 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/6.277, allocations: 111.3 kB / 1.714 GB, free: 273.8 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/6.277, allocations: 4 kB / 1.714 GB, free: 273.8 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/6.277, allocations: 14.92 kB / 1.714 GB, free: 273.8 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/6.277, allocations: 8 kB / 1.714 GB, free: 273.8 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/6.277, allocations: 7.875 kB / 1.714 GB, free: 273.8 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/6.279, allocations: 0.7814 MB / 1.714 GB, free: 273.2 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/6.279, allocations: 86.45 kB / 1.715 GB, free: 273.2 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.187e-05/6.279, allocations: 10.81 kB / 1.715 GB, free: 273.2 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003659/6.279, allocations: 43.64 kB / 1.715 GB, free: 273.1 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/6.28, allocations: 51.91 kB / 1.715 GB, free: 273.1 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/6.28, allocations: 23.98 kB / 1.715 GB, free: 273 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001392/6.28, allocations: 215.1 kB / 1.715 GB, free: 272.8 MB / 0.8887 GB Notification: Performance of sort global known variables: time 7.1e-08/6.28, allocations: 0 / 1.715 GB, free: 272.8 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0003278/6.28, allocations: 118.9 kB / 1.715 GB, free: 272.7 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.0001432/6.28, allocations: 140.2 kB / 1.715 GB, free: 272.6 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009573/6.281, allocations: 0.6154 MB / 1.716 GB, free: 271.9 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/6.281, allocations: 0 / 1.716 GB, free: 271.9 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0004357/6.282, allocations: 231.7 kB / 1.716 GB, free: 271.7 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/6.282, allocations: 80.78 kB / 1.716 GB, free: 271.6 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/6.283, allocations: 1.131 MB / 1.717 GB, free: 270.5 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/6.284, allocations: 0.8013 MB / 1.718 GB, free: 269.7 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/6.284, allocations: 59.41 kB / 1.718 GB, free: 269.6 MB / 0.8887 GB Notification: Performance of SimCode: time 5.31e-07/6.284, allocations: 0 / 1.718 GB, free: 269.6 MB / 0.8887 GB Notification: Performance of Templates: time 0.006641/6.29, allocations: 6.036 MB / 1.724 GB, free: 263.6 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 14.456523770000786] Failed to read output from testmodel.py, exit status != 0: 6.297998984111473 6.306922435 6.109185591 Calling exit ...