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.000711/0.000711, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000969/0.00168, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007268/0.0007268, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009045/0.001631, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9668/0.9668, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09227/1.059, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.002129/0.002129, allocations: 241.2 kB / 244.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001704/0.003832, allocations: 479.2 kB / 244.7 MB, free: 14.17 MB / 250.7 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.6857/0.6857, allocations: 138.7 MB / 384.1 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1137/0.7994, allocations: 42.4 MB / 426.5 MB, free: 5.957 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 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.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.132e-06/1.132e-06, allocations: 0 / 427.7 MB, free: 4.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.766e-06/9.898e-06, allocations: 2.312 kB / 427.7 MB, free: 4.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.001936/0.001946, allocations: 2.016 MB / 429.8 MB, free: 2.645 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008751/0.002821, allocations: 0.9007 MB / 430.7 MB, free: 1.734 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.593e-05/0.002887, allocations: 7.938 kB / 430.7 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.002994, allocations: 51.56 kB / 430.7 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-05/0.00306, allocations: 59.5 kB / 430.8 MB, free: 1.617 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.003212, allocations: 91.69 kB / 430.9 MB, free: 1.527 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.003367, allocations: 191.2 kB / 431.1 MB, free: 1.34 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.686e-05/0.003434, allocations: 22.44 kB / 431.1 MB, free: 1.32 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.003586, allocations: 139.6 kB / 431.2 MB, free: 1.184 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.613e-05/0.003672, allocations: 55.88 kB / 431.3 MB, free: 1.129 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.003694, allocations: 12 kB / 431.3 MB, free: 1.117 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.0038, allocations: 67.88 kB / 431.3 MB, free: 1.051 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.362e-05/0.003824, allocations: 23.88 kB / 431.4 MB, free: 1.027 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.05e-05/0.003864, allocations: 31.94 kB / 431.4 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.004033, allocations: 147.5 kB / 431.5 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.259e-05/0.004046, allocations: 0 / 431.5 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.004047, allocations: 0 / 431.5 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.004061, allocations: 0 / 431.5 MB, free: 0.8516 MB / 410.7 MB 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.0005686/0.004629, allocations: 449.2 kB / 432 MB, free: 392 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.623e-05/0.004656, allocations: 11.98 kB / 432 MB, free: 380 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.004833, allocations: 125.9 kB / 432.1 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.004981, allocations: 161.5 kB / 432.3 MB, free: 48 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-06/0.004989, allocations: 384 / 432.3 MB, free: 48 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.005009, allocations: 12.38 kB / 432.3 MB, free: 36 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1833/0.1883, allocations: 104.1 kB / 432.4 MB, free: 2.328 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1883, allocations: 2.156 kB / 432.4 MB, free: 2.328 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.1883, allocations: 5.797 kB / 432.4 MB, free: 2.328 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1883, allocations: 1.719 kB / 432.4 MB, free: 2.328 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.387e-05/0.1884, allocations: 35.84 kB / 432.4 MB, free: 2.328 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003858/0.1888, allocations: 233.7 kB / 432.7 MB, free: 2.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.1889, allocations: 67.52 kB / 432.7 MB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.431e-05/0.1889, allocations: 29.81 kB / 432.8 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002421/0.1892, allocations: 56.36 kB / 432.8 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/0.1893, allocations: 91.64 kB / 432.9 MB, free: 2.105 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 1.964e-06/0.1893, allocations: 0 / 432.9 MB, free: 2.105 MB / 410.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001999/0.1895, allocations: 117.3 kB / 433 MB, free: 2.074 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.1895, allocations: 55.06 kB / 433.1 MB, free: 2.012 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.407e-05/0.1896, allocations: 174.1 kB / 433.2 MB, free: 1.902 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.1897, allocations: 28.77 kB / 433.3 MB, free: 1.871 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/0.1897, allocations: 104.9 kB / 433.4 MB, free: 1.789 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.1897, allocations: 57.5 kB / 433.4 MB, free: 1.773 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.585e-05/0.1898, allocations: 45.41 kB / 433.5 MB, free: 1.754 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.639e-05/0.1898, allocations: 335.9 kB / 433.8 MB, free: 1.438 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.071e-05/0.1899, allocations: 64.14 kB / 433.9 MB, free: 1.398 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.031e-05/0.1899, allocations: 78.23 kB / 433.9 MB, free: 1.344 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.1901, allocations: 160.6 kB / 434.1 MB, free: 1.258 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1901, allocations: 1.562 kB / 434.1 MB, free: 1.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001544/0.1902, allocations: 175.7 kB / 434.3 MB, free: 1.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.1903, allocations: 31.77 kB / 434.3 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1903, allocations: 0 / 434.3 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.1903, allocations: 5.484 kB / 434.3 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.1905, allocations: 55.19 kB / 434.4 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/0.1905, allocations: 0 / 434.4 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.678e-05/0.1905, allocations: 19.48 kB / 434.4 MB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.1906, allocations: 11.03 kB / 434.4 MB, free: 1.125 MB / 410.7 MB 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.0001136/0.1907, allocations: 140.9 kB / 434.5 MB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.1907, allocations: 19.97 kB / 434.5 MB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.1909, allocations: 145 kB / 434.7 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.1909, allocations: 2.516 kB / 434.7 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-06/0.1909, allocations: 0.875 kB / 434.7 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1909, allocations: 2.375 kB / 434.7 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.1911, allocations: 126.7 kB / 434.8 MB, free: 16.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1911, allocations: 0.6562 kB / 434.8 MB, free: 16.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.1912, allocations: 43.94 kB / 434.9 MB, free: 16.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.1913, allocations: 27.31 kB / 434.9 MB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1913, allocations: 0 / 434.9 MB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.1913, allocations: 6.422 kB / 434.9 MB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1913, allocations: 4.344 kB / 434.9 MB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1913, allocations: 0.8438 kB / 434.9 MB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.1915, allocations: 178.2 kB / 435.1 MB, free: 16.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.1915, allocations: 9.203 kB / 435.1 MB, free: 16.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.122e-05/0.1916, allocations: 10.81 kB / 435.1 MB, free: 16.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.1916, allocations: 15.58 kB / 435.1 MB, free: 16.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.1916, allocations: 9.344 kB / 435.1 MB, free: 16.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.053e-05/0.1917, allocations: 42.98 kB / 435.2 MB, free: 16.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1917, allocations: 0 / 435.2 MB, free: 16.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001932/0.1919, allocations: 56.55 kB / 435.2 MB, free: 16.8 MB / 426.7 MB 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.0001254/0.192, allocations: 102.6 kB / 435.3 MB, free: 16.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000175/0.1922, allocations: 174.8 kB / 435.5 MB, free: 16.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.1922, allocations: 5.719 kB / 435.5 MB, free: 16.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.865e-05/0.1923, allocations: 54.52 kB / 435.5 MB, free: 16.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001536/0.1924, allocations: 53.39 kB / 435.6 MB, free: 16.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.1942, allocations: 354.8 kB / 435.9 MB, free: 16.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.126e-05/0.1943, allocations: 74.48 kB / 436 MB, free: 16.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1944, allocations: 29.06 kB / 436 MB, free: 16.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.1945, allocations: 85.73 kB / 436.1 MB, free: 16.3 MB / 426.7 MB Notification: Performance of SimCode: time 6.22e-07/0.1945, allocations: 3.156 kB / 436.1 MB, free: 16.3 MB / 426.7 MB Notification: Performance of Templates: time 0.004957/0.1995, allocations: 2.883 MB / 439 MB, free: 16.25 MB / 426.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.0534786051139235]