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.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.001464/0.001464, allocations: 120.3 kB / 17.13 MB, free: 5.918 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.001527/0.001527, allocations: 193.2 kB / 20.08 MB, free: 2.988 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.347/1.347, allocations: 225.6 MB / 248.5 MB, free: 3.602 MB / 190.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.002257/0.002257, allocations: 287.9 kB / 303.6 MB, free: 3.742 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 0.9888/0.9888, allocations: 180.9 MB / 0.5268 GB, free: 2.691 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.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 0.002726/0.002726, allocations: 99.84 kB / 0.7259 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4446/0.4473, allocations: 94.15 MB / 0.8178 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002673/0.45, allocations: 1.962 MB / 0.8197 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.451, allocations: 0.8754 MB / 0.8206 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.95e-05/0.4511, allocations: 3.719 kB / 0.8206 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.4513, allocations: 47.3 kB / 0.8206 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 9.032e-05/0.4514, allocations: 52.52 kB / 0.8207 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.4517, allocations: 92.92 kB / 0.8208 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001956/0.4519, allocations: 199.5 kB / 0.821 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 7.991e-05/0.4519, allocations: 11.53 kB / 0.821 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.4521, allocations: 93.42 kB / 0.8211 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.4522, allocations: 81.23 kB / 0.8211 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.4522, allocations: 10.72 kB / 0.8212 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.4523, allocations: 57.64 kB / 0.8212 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.272e-05/0.4523, allocations: 26.61 kB / 0.8212 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.659e-05/0.4524, allocations: 75.12 kB / 0.8213 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.4526, allocations: 193.1 kB / 0.8215 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4526, allocations: 1.312 kB / 0.8215 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4526, allocations: 0 / 0.8215 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.4526, allocations: 0 / 0.8215 GB, free: 4.988 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007997/0.4534, allocations: 0.5019 MB / 0.822 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.4535, allocations: 9.031 kB / 0.822 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/0.4535, allocations: 25.25 kB / 0.822 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.4537, allocations: 236.9 kB / 0.8222 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.4537, allocations: 12.59 kB / 0.8223 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.4538, allocations: 11.39 kB / 0.8223 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002927/0.4541, allocations: 120.8 kB / 0.8224 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.4541, allocations: 1.688 kB / 0.8224 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4541, allocations: 0.9062 kB / 0.8224 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.4541, allocations: 2.062 kB / 0.8224 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003096/0.4544, allocations: 107.6 kB / 0.8225 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000562/0.455, allocations: 417.8 kB / 0.8229 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.4553, allocations: 121.3 kB / 0.823 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.4554, allocations: 71.28 kB / 0.8231 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004993/0.4559, allocations: 449.5 kB / 0.8235 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/0.4563, allocations: 122 kB / 0.8236 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.4563, allocations: 4 kB / 0.8236 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006192/0.4569, allocations: 234.5 kB / 0.8238 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.4569, allocations: 58.77 kB / 0.8239 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.4571, allocations: 176.2 kB / 0.8241 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.4571, allocations: 31.69 kB / 0.8241 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.946e-05/0.4571, allocations: 115.1 kB / 0.8242 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.4572, allocations: 63.83 kB / 0.8243 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.4572, allocations: 39.8 kB / 0.8243 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.02e-05/0.4573, allocations: 332.6 kB / 0.8246 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.4575, allocations: 73.84 kB / 0.8247 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.4576, allocations: 85.09 kB / 0.8248 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.6/3.058, allocations: 378.8 MB / 1.195 GB, free: 286.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/3.058, allocations: 7.844 kB / 1.195 GB, free: 286.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004632/3.058, allocations: 244.8 kB / 1.195 GB, free: 286.3 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/3.058, allocations: 37.45 kB / 1.195 GB, free: 286.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/3.058, allocations: 3.625 kB / 1.195 GB, free: 286.2 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/3.058, allocations: 0 / 1.195 GB, free: 286.2 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/3.058, allocations: 49.06 kB / 1.195 GB, free: 286.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/3.058, allocations: 4 kB / 1.195 GB, free: 286.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/3.059, allocations: 27.38 kB / 1.195 GB, free: 286.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/3.059, allocations: 4 kB / 1.195 GB, free: 286.2 MB / 0.8731 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.0001641/3.059, allocations: 146.7 kB / 1.195 GB, free: 286 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/3.059, allocations: 26.12 kB / 1.195 GB, free: 286 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/3.059, allocations: 237.6 kB / 1.195 GB, free: 285.8 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/3.059, allocations: 4 kB / 1.195 GB, free: 285.8 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/3.059, allocations: 0 / 1.195 GB, free: 285.8 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/3.059, allocations: 3.984 kB / 1.195 GB, free: 285.8 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/3.059, allocations: 255.6 kB / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/3.059, allocations: 0 / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/3.06, allocations: 39.98 kB / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/3.06, allocations: 0 / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/3.06, allocations: 11.98 kB / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/3.06, allocations: 1.172 kB / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/3.06, allocations: 0 / 1.196 GB, free: 285.5 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/3.06, allocations: 313.6 kB / 1.196 GB, free: 285.2 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.047e-05/3.06, allocations: 113 kB / 1.196 GB, free: 285 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/3.06, allocations: 4 kB / 1.196 GB, free: 285 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/3.06, allocations: 15.98 kB / 1.196 GB, free: 285 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.902e-05/3.061, allocations: 15.97 kB / 1.196 GB, free: 285 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/3.061, allocations: 8.875 kB / 1.196 GB, free: 285 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 6.988e-05/3.061, allocations: 138.8 kB / 1.196 GB, free: 284.9 MB / 0.8731 GB Notification: Performance of sort global known variables: time 6e-08/3.061, allocations: 0 / 1.196 GB, free: 284.9 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002553/3.061, allocations: 55.23 kB / 1.196 GB, free: 284.8 MB / 0.8731 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.0001241/3.061, allocations: 132 kB / 1.196 GB, free: 284.7 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004088/3.061, allocations: 213.4 kB / 1.197 GB, free: 284.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/3.061, allocations: 0 / 1.197 GB, free: 284.5 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/3.062, allocations: 79.89 kB / 1.197 GB, free: 284.4 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/3.062, allocations: 38.59 kB / 1.197 GB, free: 284.3 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007024/3.063, allocations: 0.5628 MB / 1.197 GB, free: 283.8 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/3.063, allocations: 0.7203 MB / 1.198 GB, free: 283 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.091e-05/3.063, allocations: 23.44 kB / 1.198 GB, free: 283 MB / 0.8731 GB Notification: Performance of SimCode: time 3.01e-07/3.063, allocations: 4 kB / 1.198 GB, free: 283 MB / 0.8731 GB Notification: Performance of Templates: time 0.003557/3.066, allocations: 2.69 MB / 1.201 GB, free: 280.3 MB / 0.8731 GB " [Timeout remaining time 657] 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: 10.577427764888853] Failed to read output from testmodel.py, exit status != 0: 3.073718764819205 3.081224681 2.626718204 Calling exit ...