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.0007424/0.0007424, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001652/0.002395, allocations: 440 kB / 10.41 MB, free: 284 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.001118/0.001118, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001595/0.002713, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9333/0.9333, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08603/1.019, allocations: 53.67 MB / 243.4 MB, free: 15.49 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.001817/0.001817, allocations: 227.7 kB / 244.4 MB, free: 14.53 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00186/0.003677, allocations: 467.7 kB / 244.8 MB, free: 14.07 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.6905/0.6905, allocations: 138.7 MB / 384.3 MB, free: 356 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06883/0.7594, allocations: 42.39 MB / 426.7 MB, free: 5.836 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.533e-06/1.533e-06, allocations: 0 / 428 MB, free: 4.531 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.747e-05/1.901e-05, allocations: 2.312 kB / 428 MB, free: 4.527 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002102/0.002121, allocations: 2.024 MB / 430 MB, free: 2.484 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000936/0.003057, allocations: 0.9046 MB / 430.9 MB, free: 1.57 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.369e-05/0.003131, allocations: 7.938 kB / 431 MB, free: 1.562 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.00324, allocations: 47.58 kB / 431 MB, free: 1.516 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.508e-05/0.003305, allocations: 59.5 kB / 431.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.003463, allocations: 95.69 kB / 431.1 MB, free: 1.363 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.00363, allocations: 191.2 kB / 431.3 MB, free: 1.176 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.391e-05/0.003704, allocations: 22.44 kB / 431.4 MB, free: 1.152 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.003857, allocations: 135.6 kB / 431.5 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.594e-05/0.003952, allocations: 63.8 kB / 431.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.003973, allocations: 8 kB / 431.6 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.004086, allocations: 67.89 kB / 431.6 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.951e-05/0.004116, allocations: 23.88 kB / 431.6 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.058e-05/0.004156, allocations: 35.94 kB / 431.7 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.004336, allocations: 135.5 kB / 431.8 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.004346, allocations: 11.94 kB / 431.8 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.004346, allocations: 0 / 431.8 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.004358, allocations: 0 / 431.8 MB, free: 0.6797 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.0005714/0.004929, allocations: 441.3 kB / 432.3 MB, free: 224 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.004962, allocations: 15.97 kB / 432.3 MB, free: 208 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.005171, allocations: 118 kB / 432.4 MB, free: 72 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2237/0.2289, allocations: 160.5 kB / 432.5 MB, free: 2.164 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.2289, allocations: 3.5 kB / 432.6 MB, free: 2.164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.2289, allocations: 10.06 kB / 432.6 MB, free: 2.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.2291, allocations: 112.6 kB / 432.7 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2291, allocations: 1.281 kB / 432.7 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2291, allocations: 4.75 kB / 432.7 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2291, allocations: 2.375 kB / 432.7 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.3e-05/0.2292, allocations: 28.97 kB / 432.7 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000331/0.2295, allocations: 234.8 kB / 432.9 MB, free: 1.973 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.2296, allocations: 66.83 kB / 433 MB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.077e-05/0.2297, allocations: 32.23 kB / 433 MB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002266/0.2299, allocations: 53.69 kB / 433.1 MB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.23, allocations: 96.08 kB / 433.2 MB, free: 1.895 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 2.745e-06/0.2301, allocations: 3.453 kB / 433.2 MB, free: 1.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001806/0.2302, allocations: 117.2 kB / 433.3 MB, free: 1.859 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.2303, allocations: 56.5 kB / 433.4 MB, free: 1.797 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.733e-05/0.2303, allocations: 176.7 kB / 433.5 MB, free: 1.688 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.2304, allocations: 29.89 kB / 433.6 MB, free: 1.656 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.2304, allocations: 101.6 kB / 433.7 MB, free: 1.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.2304, allocations: 60.72 kB / 433.7 MB, free: 1.543 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.2305, allocations: 45.83 kB / 433.8 MB, free: 1.523 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.711e-05/0.2305, allocations: 329.6 kB / 434.1 MB, free: 1.211 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.973e-05/0.2306, allocations: 63.33 kB / 434.1 MB, free: 1.172 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.855e-05/0.2306, allocations: 79.3 kB / 434.2 MB, free: 17.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.2308, allocations: 160.7 kB / 434.4 MB, free: 17.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2308, allocations: 0.625 kB / 434.4 MB, free: 17.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001467/0.2309, allocations: 182.6 kB / 434.6 MB, free: 16.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.231, allocations: 33.44 kB / 434.6 MB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.231, allocations: 0 / 434.6 MB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.231, allocations: 3.938 kB / 434.6 MB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.2311, allocations: 44.55 kB / 434.6 MB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.2312, allocations: 7.453 kB / 434.6 MB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.139e-05/0.2312, allocations: 22.77 kB / 434.7 MB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2312, allocations: 7.047 kB / 434.7 MB, free: 16.9 MB / 426.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.0001297/0.2314, allocations: 140.4 kB / 434.8 MB, free: 16.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.2314, allocations: 15.11 kB / 434.8 MB, free: 16.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002024/0.2316, allocations: 151.3 kB / 435 MB, free: 16.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.2316, allocations: 2.375 kB / 435 MB, free: 16.74 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2316, allocations: 3.75 kB / 435 MB, free: 16.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2316, allocations: 2.453 kB / 435 MB, free: 16.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001143/0.2317, allocations: 125.1 kB / 435.1 MB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2317, allocations: 0 / 435.1 MB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.2319, allocations: 43.91 kB / 435.1 MB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.2319, allocations: 23.73 kB / 435.2 MB, free: 16.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2319, allocations: 2.719 kB / 435.2 MB, free: 16.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.2319, allocations: 8.156 kB / 435.2 MB, free: 16.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2319, allocations: 4.125 kB / 435.2 MB, free: 16.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2319, allocations: 0 / 435.2 MB, free: 16.65 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.2321, allocations: 171.1 kB / 435.3 MB, free: 16.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.2321, allocations: 8.984 kB / 435.4 MB, free: 16.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.282e-05/0.2322, allocations: 7.281 kB / 435.4 MB, free: 16.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.2322, allocations: 22.11 kB / 435.4 MB, free: 16.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.2323, allocations: 5.625 kB / 435.4 MB, free: 16.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.375e-05/0.2323, allocations: 51.09 kB / 435.4 MB, free: 16.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2323, allocations: 0 / 435.4 MB, free: 16.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001539/0.2325, allocations: 54.88 kB / 435.5 MB, free: 16.57 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.0001391/0.2326, allocations: 102.6 kB / 435.6 MB, free: 16.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.2328, allocations: 185.9 kB / 435.8 MB, free: 16.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.2328, allocations: 0.625 kB / 435.8 MB, free: 16.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.934e-05/0.2329, allocations: 64.41 kB / 435.8 MB, free: 16.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.2331, allocations: 250.3 kB / 436.1 MB, free: 16.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.2345, allocations: 352.6 kB / 436.4 MB, free: 15.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.833e-05/0.2345, allocations: 74.88 kB / 436.5 MB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.993e-05/0.2346, allocations: 31.03 kB / 436.5 MB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.2347, allocations: 84 kB / 436.6 MB, free: 15.85 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2347, allocations: 0 / 436.6 MB, free: 15.85 MB / 426.7 MB Notification: Performance of Templates: time 0.005698/0.2404, allocations: 2.893 MB / 439.5 MB, free: 15.8 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.1129587246105075]