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.001554/0.001554, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001651/0.001651, allocations: 217.6 kB / 23 MB, free: 4.914 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.368/1.368, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.002471/0.002471, allocations: 288.8 kB / 313.5 MB, free: 2.652 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.186/1.186, allocations: 180.6 MB / 0.5377 GB, free: 14.62 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.002987/0.002987, allocations: 95.72 kB / 0.7407 GB, free: 27.76 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1892, allocations: 95.39 MB / 0.8338 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.00383/0.1931, allocations: 2.476 MB / 0.8362 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00197/0.195, allocations: 1.065 MB / 0.8373 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.1952, allocations: 15.88 kB / 0.8373 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000257/0.1954, allocations: 71.38 kB / 0.8374 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.1957, allocations: 138.9 kB / 0.8375 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.1961, allocations: 171.6 kB / 0.8377 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005301/0.1966, allocations: 0.5099 MB / 0.8382 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1967, allocations: 28.92 kB / 0.8382 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.1971, allocations: 243.1 kB / 0.8384 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.1974, allocations: 211 kB / 0.8386 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.1975, allocations: 28 kB / 0.8387 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.1977, allocations: 79.95 kB / 0.8387 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.717e-05/0.1977, allocations: 75.72 kB / 0.8388 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.1979, allocations: 155.3 kB / 0.8389 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005461/0.1985, allocations: 430.2 kB / 0.8394 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.1985, allocations: 4 kB / 0.8394 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.482e-06/0.1985, allocations: 0 / 0.8394 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.1985, allocations: 0 / 0.8394 GB, free: 2.195 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.001859/0.2003, allocations: 0.7648 MB / 0.8401 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.2004, allocations: 17.28 kB / 0.8401 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006651/0.2011, allocations: 76.66 kB / 0.8402 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.2015, allocations: 285 kB / 0.8405 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.2016, allocations: 16.81 kB / 0.8405 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.982e-05/0.2016, allocations: 24.36 kB / 0.8405 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007609/0.2024, allocations: 325.1 kB / 0.8408 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.2024, allocations: 7.938 kB / 0.8408 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.686e-05/0.2024, allocations: 11.98 kB / 0.8408 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.2025, allocations: 4 kB / 0.8408 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008373/0.2033, allocations: 291.8 kB / 0.8411 GB, free: 324 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.2045, allocations: 0.6444 MB / 0.8417 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.2056, allocations: 367.2 kB / 0.8421 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.2061, allocations: 185.6 kB / 0.8423 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004925/0.2066, allocations: 71.92 kB / 0.8423 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007982/0.2074, allocations: 336.5 kB / 0.8427 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=42): time 2.023e-06/0.2074, allocations: 0 / 0.8427 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42): time 0.001696/0.2091, allocations: 0.6119 MB / 0.8433 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.24e-05/0.2091, allocations: 89.11 kB / 0.8433 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004077/0.2095, allocations: 296.5 kB / 0.8436 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.2096, allocations: 33.7 kB / 0.8437 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.2098, allocations: 168.9 kB / 0.8438 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.2099, allocations: 142.8 kB / 0.844 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.2101, allocations: 94.05 kB / 0.844 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002222/0.2103, allocations: 358.8 kB / 0.8444 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.2109, allocations: 291.6 kB / 0.8447 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006319/0.2116, allocations: 327.1 kB / 0.845 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.434/6.646, allocations: 0.866 GB / 1.711 GB, free: 321.2 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/6.646, allocations: 3.75 kB / 1.711 GB, free: 321.2 MB / 0.9044 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001169/6.647, allocations: 0.7289 MB / 1.712 GB, free: 320.6 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/6.647, allocations: 93.23 kB / 1.712 GB, free: 320.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/6.647, allocations: 0 / 1.712 GB, free: 320.5 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/6.647, allocations: 7.891 kB / 1.712 GB, free: 320.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/6.647, allocations: 122 kB / 1.712 GB, free: 320.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/6.647, allocations: 7.984 kB / 1.712 GB, free: 320.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/6.648, allocations: 56.09 kB / 1.712 GB, free: 320.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/6.648, allocations: 23.36 kB / 1.712 GB, free: 320.3 MB / 0.9044 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.0002378/6.648, allocations: 199.8 kB / 1.712 GB, free: 320.2 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/6.648, allocations: 42.34 kB / 1.712 GB, free: 320.1 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/6.649, allocations: 0.6374 MB / 1.713 GB, free: 319.7 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/6.649, allocations: 4 kB / 1.713 GB, free: 319.7 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/6.649, allocations: 3.938 kB / 1.713 GB, free: 319.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/6.649, allocations: 7.984 kB / 1.713 GB, free: 319.7 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/6.65, allocations: 320.5 kB / 1.713 GB, free: 319.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/6.65, allocations: 3.938 kB / 1.713 GB, free: 319.4 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005025/6.65, allocations: 108.5 kB / 1.713 GB, free: 319.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/6.65, allocations: 0 / 1.713 GB, free: 319.3 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/6.65, allocations: 14.75 kB / 1.713 GB, free: 319.3 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/6.65, allocations: 0 / 1.713 GB, free: 319.3 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/6.65, allocations: 0 / 1.713 GB, free: 319.3 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/6.652, allocations: 0.7906 MB / 1.714 GB, free: 318.7 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/6.652, allocations: 81.66 kB / 1.714 GB, free: 318.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.027e-05/6.652, allocations: 11.88 kB / 1.714 GB, free: 318.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/6.652, allocations: 43.95 kB / 1.714 GB, free: 318.6 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/6.652, allocations: 59.78 kB / 1.714 GB, free: 318.6 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/6.652, allocations: 20.86 kB / 1.714 GB, free: 318.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001321/6.652, allocations: 211.1 kB / 1.714 GB, free: 318.3 MB / 0.9044 GB Notification: Performance of sort global known variables: time 8.1e-08/6.652, allocations: 0 / 1.714 GB, free: 318.3 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003201/6.653, allocations: 119.2 kB / 1.715 GB, free: 318.2 MB / 0.9044 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.0001417/6.653, allocations: 137.4 kB / 1.715 GB, free: 318.1 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000979/6.654, allocations: 0.6944 MB / 1.715 GB, free: 317.4 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/6.654, allocations: 0 / 1.715 GB, free: 317.4 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0004442/6.654, allocations: 235.7 kB / 1.716 GB, free: 317.1 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/6.655, allocations: 73.52 kB / 1.716 GB, free: 317.1 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/6.656, allocations: 1.133 MB / 1.717 GB, free: 315.9 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.455e-05/6.656, allocations: 196.9 kB / 1.717 GB, free: 315.7 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/6.656, allocations: 55.41 kB / 1.717 GB, free: 315.6 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/6.656, allocations: 0 / 1.717 GB, free: 315.6 MB / 0.9044 GB Notification: Performance of Templates: time 0.006386/6.663, allocations: 6.172 MB / 1.723 GB, free: 309.5 MB / 0.9044 GB " [Timeout remaining time 653] 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: 15.042543919757009] Failed to read output from testmodel.py, exit status != 0: 6.669551260769367 6.678116485 6.477602003 Calling exit ...