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.001299/0.001299, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001436/0.001436, allocations: 214.8 kB / 22.25 MB, free: 4.859 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.38/1.38, allocations: 230.6 MB / 256 MB, free: 7.793 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.002412/0.002412, allocations: 299 kB / 312.7 MB, free: 2.609 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.21/1.21, allocations: 180.6 MB / 0.5369 GB, free: 14.66 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: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) [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.00299/0.00299, allocations: 99.5 kB / 0.7395 GB, free: 27.89 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1681, allocations: 95.39 MB / 0.8326 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003524/0.1717, allocations: 1.889 MB / 0.8345 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1734, allocations: 0.8504 MB / 0.8353 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.1735, allocations: 11.94 kB / 0.8353 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002241/0.1737, allocations: 43.98 kB / 0.8353 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.1738, allocations: 55.55 kB / 0.8354 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1742, allocations: 91.72 kB / 0.8355 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.1745, allocations: 199.2 kB / 0.8357 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.21e-05/0.1746, allocations: 13.69 kB / 0.8357 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1747, allocations: 83.69 kB / 0.8358 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.1749, allocations: 79.67 kB / 0.8358 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.1749, allocations: 12 kB / 0.8359 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.1751, allocations: 59.95 kB / 0.8359 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.516e-05/0.1751, allocations: 39.77 kB / 0.836 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.493e-05/0.1752, allocations: 55.72 kB / 0.836 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.1755, allocations: 191.2 kB / 0.8362 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1755, allocations: 4 kB / 0.8362 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1755, allocations: 0 / 0.8362 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.1755, allocations: 0 / 0.8362 GB, free: 4.668 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.0009643/0.1765, allocations: 443 kB / 0.8366 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1765, allocations: 13.34 kB / 0.8366 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.485e-05/0.1766, allocations: 38.75 kB / 0.8367 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002744/0.1769, allocations: 36.83 kB / 0.8367 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.1772, allocations: 182.1 kB / 0.8369 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.1772, allocations: 4.375 kB / 0.8369 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.1772, allocations: 16.38 kB / 0.8369 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.1775, allocations: 128.1 kB / 0.837 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1775, allocations: 0 / 0.837 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.1775, allocations: 4 kB / 0.837 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1776, allocations: 4 kB / 0.837 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003638/0.1779, allocations: 95.91 kB / 0.8371 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006833/0.1786, allocations: 367.7 kB / 0.8375 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.1789, allocations: 130.4 kB / 0.8376 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.1791, allocations: 72.75 kB / 0.8377 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004738/0.1796, allocations: 59.92 kB / 0.8377 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003614/0.18, allocations: 133.6 kB / 0.8378 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.18, allocations: 0 / 0.8378 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006686/0.1806, allocations: 237.8 kB / 0.8381 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.1807, allocations: 55.41 kB / 0.8381 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1809, allocations: 181.2 kB / 0.8383 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.181, allocations: 33.7 kB / 0.8383 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.181, allocations: 104.1 kB / 0.8384 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.1811, allocations: 63.47 kB / 0.8385 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1812, allocations: 45.69 kB / 0.8385 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1814, allocations: 330.8 kB / 0.8388 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.1816, allocations: 102.5 kB / 0.8389 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.1818, allocations: 120.2 kB / 0.8391 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.596/2.778, allocations: 378.8 MB / 1.209 GB, free: 11.61 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/2.778, allocations: 0 / 1.209 GB, free: 11.61 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006127/2.778, allocations: 289.2 kB / 1.209 GB, free: 11.38 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/2.778, allocations: 38.86 kB / 1.209 GB, free: 11.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/2.778, allocations: 0 / 1.209 GB, free: 11.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/2.778, allocations: 4 kB / 1.209 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/2.778, allocations: 38.59 kB / 1.209 GB, free: 11.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/2.778, allocations: 4 kB / 1.209 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001918/2.779, allocations: 26.2 kB / 1.209 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/2.779, allocations: 7.984 kB / 1.209 GB, free: 11.27 MB / 0.795 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.0002223/2.779, allocations: 148.6 kB / 1.209 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/2.779, allocations: 19 kB / 1.209 GB, free: 11.13 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000587/2.78, allocations: 241.9 kB / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/2.78, allocations: 4 kB / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/2.78, allocations: 2.875 kB / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/2.78, allocations: 5.391 kB / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/2.78, allocations: 211.5 kB / 1.21 GB, free: 10.73 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/2.78, allocations: 0 / 1.21 GB, free: 10.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/2.78, allocations: 41.06 kB / 1.21 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/2.78, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/2.78, allocations: 11.36 kB / 1.21 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/2.78, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/2.78, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000663/2.781, allocations: 323 kB / 1.21 GB, free: 10.45 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.561e-05/2.781, allocations: 34.19 kB / 1.21 GB, free: 10.42 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/2.781, allocations: 3.562 kB / 1.21 GB, free: 10.42 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/2.781, allocations: 11.98 kB / 1.21 GB, free: 10.41 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.194e-05/2.781, allocations: 23.23 kB / 1.21 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/2.781, allocations: 11.5 kB / 1.21 GB, free: 10.39 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001165/2.781, allocations: 131.2 kB / 1.21 GB, free: 10.27 MB / 0.795 GB Notification: Performance of sort global known variables: time 8e-08/2.781, allocations: 1.406 kB / 1.21 GB, free: 10.27 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002914/2.782, allocations: 61.89 kB / 1.211 GB, free: 10.22 MB / 0.795 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.001048/2.783, allocations: 0.8512 MB / 1.211 GB, free: 9.422 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000498/2.783, allocations: 246.3 kB / 1.212 GB, free: 9.203 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/2.783, allocations: 0 / 1.212 GB, free: 9.203 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002123/2.783, allocations: 85.14 kB / 1.212 GB, free: 9.137 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/2.784, allocations: 32.39 kB / 1.212 GB, free: 9.117 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/2.787, allocations: 2.426 MB / 1.214 GB, free: 6.836 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/2.787, allocations: 108.1 kB / 1.214 GB, free: 6.707 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001393/2.787, allocations: 35.81 kB / 1.214 GB, free: 6.676 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/2.787, allocations: 55.59 kB / 1.214 GB, free: 6.621 MB / 0.795 GB Notification: Performance of SimCode: time 7.22e-07/2.787, allocations: 0 / 1.214 GB, free: 6.621 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/2.821, allocations: 5.377 MB / 1.22 GB, free: 1.438 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/13.43, allocations: 6.344 kB / 1.22 GB, free: 1.434 MB / 0.795 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple_fmu --startTime=0 --stopTime=3.1536e+07 --stepSize=12614.4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.407438779249787] Failed to read output from testmodel.py, exit status != 0: 13.539105519186705 13.561055552 13.38150919 Calling exit ...