Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.0008058/0.0008058, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008097/0.0008097, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8353/0.8353, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.001363/0.001363, allocations: 236.7 kB / 260.2 MB, free: 13.02 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.6641/0.6641, allocations: 138.4 MB / 455.1 MB, free: 29.96 MB / 410.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.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 0.6475 GB, free: 1.375 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.937e-05/3.1e-05, allocations: 2.281 kB / 0.6475 GB, free: 1.371 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.2968/0.2968, allocations: 1.891 MB / 0.6493 GB, free: 56.46 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.298, allocations: 0.8537 MB / 0.6502 GB, free: 56.1 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.956e-05/0.2981, allocations: 7.875 kB / 0.6502 GB, free: 56.1 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.2983, allocations: 45.58 kB / 0.6502 GB, free: 56.07 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 8.929e-05/0.2984, allocations: 52.77 kB / 0.6503 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.2986, allocations: 99.67 kB / 0.6504 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.000211/0.2989, allocations: 196.8 kB / 0.6505 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.299, allocations: 13.8 kB / 0.6506 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.2992, allocations: 119.5 kB / 0.6507 GB, free: 55.95 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.2993, allocations: 67.94 kB / 0.6507 GB, free: 55.94 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.2993, allocations: 10.09 kB / 0.6507 GB, free: 55.94 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.2994, allocations: 60.73 kB / 0.6508 GB, free: 55.94 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.446e-05/0.2994, allocations: 30.05 kB / 0.6508 GB, free: 55.93 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 6.712e-05/0.2995, allocations: 48.55 kB / 0.6509 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.2998, allocations: 206.6 kB / 0.6511 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2998, allocations: 0 / 0.6511 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2998, allocations: 1.625 kB / 0.6511 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.2998, allocations: 0 / 0.6511 GB, free: 55.89 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006486/0.3005, allocations: 446 kB / 0.6515 GB, free: 55.54 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3005, allocations: 11.12 kB / 0.6515 GB, free: 55.54 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.3007, allocations: 36.23 kB / 0.6515 GB, free: 55.53 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.3009, allocations: 177.3 kB / 0.6517 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.3009, allocations: 8 kB / 0.6517 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.3009, allocations: 10.56 kB / 0.6517 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002073/0.3011, allocations: 122.8 kB / 0.6518 GB, free: 55.34 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3011, allocations: 1.312 kB / 0.6519 GB, free: 55.34 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.3011, allocations: 4.219 kB / 0.6519 GB, free: 55.34 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.3012, allocations: 5.5 kB / 0.6519 GB, free: 55.34 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.3013, allocations: 100.2 kB / 0.652 GB, free: 55.34 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004125/0.3017, allocations: 331.6 kB / 0.6523 GB, free: 55.13 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.3019, allocations: 118.8 kB / 0.6524 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.806e-05/0.302, allocations: 75.03 kB / 0.6525 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002585/0.3023, allocations: 60.06 kB / 0.6525 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002645/0.3026, allocations: 132.9 kB / 0.6526 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=16): time 2.615e-06/0.3026, allocations: 3.844 kB / 0.6526 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16): time 0.0004143/0.303, allocations: 235.6 kB / 0.6529 GB, free: 54.96 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.303, allocations: 56.27 kB / 0.6529 GB, free: 54.89 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.3031, allocations: 180.7 kB / 0.6531 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.3031, allocations: 29.08 kB / 0.6531 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/0.3032, allocations: 109.8 kB / 0.6532 GB, free: 54.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.3032, allocations: 59.52 kB / 0.6533 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.3033, allocations: 41.8 kB / 0.6533 GB, free: 54.55 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.049e-05/0.3033, allocations: 328 kB / 0.6536 GB, free: 54.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.3034, allocations: 103.5 kB / 0.6537 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.3035, allocations: 115.7 kB / 0.6538 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.222/1.525, allocations: 378.8 MB / 1.024 GB, free: 209.8 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/1.525, allocations: 0 / 1.024 GB, free: 209.8 MB / 0.7605 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003251/1.526, allocations: 282.2 kB / 1.024 GB, free: 209.6 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/1.526, allocations: 37.72 kB / 1.024 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/1.526, allocations: 5.656 kB / 1.024 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/1.526, allocations: 0 / 1.024 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/1.526, allocations: 41.53 kB / 1.024 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/1.526, allocations: 0 / 1.024 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/1.526, allocations: 27.97 kB / 1.024 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/1.526, allocations: 5.062 kB / 1.024 GB, free: 209.5 MB / 0.7605 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.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: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0001665/1.526, allocations: 153.4 kB / 1.024 GB, free: 209.3 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.971e-05/1.526, allocations: 13.28 kB / 1.024 GB, free: 209.3 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003451/1.526, allocations: 246.9 kB / 1.025 GB, free: 209.1 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/1.526, allocations: 4 kB / 1.025 GB, free: 209.1 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/1.526, allocations: 4.766 kB / 1.025 GB, free: 209.1 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/1.527, allocations: 0 / 1.025 GB, free: 209.1 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/1.527, allocations: 176.3 kB / 1.025 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/1.527, allocations: 0 / 1.025 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/1.527, allocations: 43.72 kB / 1.025 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/1.527, allocations: 2.859 kB / 1.025 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/1.527, allocations: 9.062 kB / 1.025 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/1.527, allocations: 0 / 1.025 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/1.527, allocations: 0 / 1.025 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/1.527, allocations: 318.3 kB / 1.025 GB, free: 208.7 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/1.527, allocations: 34.64 kB / 1.025 GB, free: 208.7 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/1.527, allocations: 7.125 kB / 1.025 GB, free: 208.7 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.429e-05/1.527, allocations: 11.67 kB / 1.025 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/1.527, allocations: 19.78 kB / 1.025 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/1.527, allocations: 12.02 kB / 1.025 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 5.163e-05/1.527, allocations: 128.5 kB / 1.025 GB, free: 208.5 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5e-08/1.527, allocations: 0 / 1.025 GB, free: 208.5 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0002011/1.528, allocations: 57.98 kB / 1.025 GB, free: 208.5 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001402/1.528, allocations: 122.4 kB / 1.025 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002691/1.528, allocations: 244.5 kB / 1.026 GB, free: 208.1 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/1.528, allocations: 3.281 kB / 1.026 GB, free: 208.1 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 9.801e-05/1.528, allocations: 80.73 kB / 1.026 GB, free: 208.1 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/1.528, allocations: 38.75 kB / 1.026 GB, free: 208.1 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005706/1.529, allocations: 480.8 kB / 1.026 GB, free: 207.6 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.417e-05/1.529, allocations: 112.3 kB / 1.026 GB, free: 207.5 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/1.529, allocations: 28.48 kB / 1.026 GB, free: 207.5 MB / 0.7605 GB Notification: Performance of SimCode: time 5.01e-07/1.529, allocations: 0 / 1.026 GB, free: 207.5 MB / 0.7605 GB Notification: Performance of Templates: time 0.002721/1.532, allocations: 2.761 MB / 1.029 GB, free: 204.8 MB / 0.7605 GB " [Timeout remaining time 658] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 6.593298573978245] Failed to read output from testmodel.py, exit status != 0: 1.5372965727001429 1.543146542 1.24186434 Calling exit ...