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.0008489/0.0008489, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009756/0.0009756, allocations: 173 kB / 23.36 MB, free: 1.129 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.9368/0.9368, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.001608/0.001608, allocations: 254.2 kB / 260.5 MB, free: 12.7 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.6892/0.6892, allocations: 138.4 MB / 402.2 MB, free: 0.5547 MB / 362.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.342e-06/1.342e-06, allocations: 0 / 462.3 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.335e-05, allocations: 4.562 kB / 462.3 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003514/0.003537, allocations: 1.962 MB / 464.2 MB, free: 15.66 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.005192, allocations: 0.9098 MB / 465.1 MB, free: 15.07 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.00532, allocations: 9.375 kB / 465.1 MB, free: 15.06 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.005546, allocations: 45.45 kB / 465.2 MB, free: 15.04 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.005688, allocations: 59.89 kB / 465.2 MB, free: 15 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.006083, allocations: 92.91 kB / 465.3 MB, free: 14.95 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.006359, allocations: 201.9 kB / 465.5 MB, free: 14.85 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.705e-05/0.006446, allocations: 12.14 kB / 465.5 MB, free: 14.85 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.006702, allocations: 117.9 kB / 465.7 MB, free: 14.8 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.006864, allocations: 62.91 kB / 465.7 MB, free: 14.79 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.383e-05/0.006898, allocations: 13.56 kB / 465.7 MB, free: 14.78 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.007076, allocations: 69.02 kB / 465.8 MB, free: 14.76 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 4.688e-05/0.007122, allocations: 27.5 kB / 465.8 MB, free: 14.75 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 7.396e-05/0.007196, allocations: 48.72 kB / 465.9 MB, free: 14.73 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.007504, allocations: 166.3 kB / 466 MB, free: 14.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.007507, allocations: 0 / 466 MB, free: 14.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.007508, allocations: 0 / 466 MB, free: 14.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.007513, allocations: 1.938 kB / 466 MB, free: 14.66 MB / 426.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.0007641/0.008277, allocations: 415.7 kB / 466.4 MB, free: 14.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.008314, allocations: 10.59 kB / 466.5 MB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.008555, allocations: 36.94 kB / 466.5 MB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.00878, allocations: 173.1 kB / 466.7 MB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.008795, allocations: 3.344 kB / 466.7 MB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.546e-05/0.00883, allocations: 12.98 kB / 466.7 MB, free: 14.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.009036, allocations: 106.2 kB / 466.8 MB, free: 14.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.009049, allocations: 8.734 kB / 466.8 MB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.009064, allocations: 2.875 kB / 466.8 MB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.009072, allocations: 6.156 kB / 466.8 MB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.699e-05/0.009169, allocations: 37.12 kB / 466.8 MB, free: 14.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.009603, allocations: 227.7 kB / 467.1 MB, free: 13.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.009729, allocations: 68.44 kB / 467.1 MB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.029e-05/0.009779, allocations: 32.78 kB / 467.2 MB, free: 13.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002729/0.01005, allocations: 58.89 kB / 467.2 MB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.01022, allocations: 103.6 kB / 467.3 MB, free: 13.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=16): time 2.404e-06/0.01022, allocations: 0 / 467.3 MB, free: 13.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003895/0.01061, allocations: 114.7 kB / 467.4 MB, free: 13.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.01065, allocations: 55.41 kB / 467.5 MB, free: 13.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.01078, allocations: 176.9 kB / 467.7 MB, free: 13.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.0108, allocations: 25.7 kB / 467.7 MB, free: 13.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.1e-05/0.01085, allocations: 100.2 kB / 467.8 MB, free: 13.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.0109, allocations: 63.47 kB / 467.8 MB, free: 13.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-05/0.01096, allocations: 38.44 kB / 467.9 MB, free: 12.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.01106, allocations: 334.8 kB / 468.2 MB, free: 12.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.819e-05/0.01114, allocations: 59.75 kB / 468.3 MB, free: 12.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-05/0.01122, allocations: 76.23 kB / 468.3 MB, free: 12.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.0114, allocations: 167.5 kB / 468.5 MB, free: 12.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.0114, allocations: 0 / 468.5 MB, free: 12.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002124/0.01162, allocations: 169 kB / 468.7 MB, free: 12.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.01165, allocations: 34.7 kB / 468.7 MB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.01165, allocations: 0 / 468.7 MB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.01167, allocations: 0 / 468.7 MB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.01186, allocations: 41.84 kB / 468.7 MB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.01187, allocations: 11.88 kB / 468.8 MB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.01199, allocations: 24.69 kB / 468.8 MB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.01201, allocations: 8.703 kB / 468.8 MB, free: 12.01 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.0002672/0.01228, allocations: 141.2 kB / 468.9 MB, free: 11.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.01232, allocations: 12.73 kB / 468.9 MB, free: 11.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.01256, allocations: 154.6 kB / 469.1 MB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.01257, allocations: 4 kB / 469.1 MB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.01257, allocations: 5.125 kB / 469.1 MB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.01257, allocations: 0 / 469.1 MB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.01271, allocations: 117.8 kB / 469.2 MB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.01271, allocations: 3.109 kB / 469.2 MB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.01287, allocations: 41.09 kB / 469.3 MB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.01287, allocations: 0 / 469.3 MB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.01288, allocations: 8.656 kB / 469.3 MB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.01289, allocations: 0 / 469.3 MB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01289, allocations: 0.7188 kB / 469.3 MB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.01309, allocations: 177.2 kB / 469.4 MB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.01313, allocations: 28.78 kB / 469.5 MB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.01315, allocations: 8 kB / 469.5 MB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.984e-05/0.01322, allocations: 13.33 kB / 469.5 MB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.01327, allocations: 19.91 kB / 469.5 MB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.996e-06/0.01327, allocations: 4 kB / 469.5 MB, free: 11.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.599e-05/0.01331, allocations: 46.72 kB / 469.6 MB, free: 11.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01331, allocations: 0.9062 kB / 469.6 MB, free: 11.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001686/0.01348, allocations: 59.92 kB / 469.6 MB, free: 11.16 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.0001306/0.01361, allocations: 110 kB / 469.7 MB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001587/0.01377, allocations: 169.4 kB / 469.9 MB, free: 10.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.01377, allocations: 0 / 469.9 MB, free: 10.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.024e-05/0.01383, allocations: 59.12 kB / 469.9 MB, free: 10.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.01397, allocations: 33.28 kB / 470 MB, free: 10.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005756/0.01455, allocations: 375.5 kB / 470.3 MB, free: 10.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.593e-05/0.01459, allocations: 76.61 kB / 470.4 MB, free: 10.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.098e-05/0.01467, allocations: 26.78 kB / 470.4 MB, free: 10.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.01477, allocations: 83.36 kB / 470.5 MB, free: 10.22 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01477, allocations: 0.5625 kB / 470.5 MB, free: 10.22 MB / 426.7 MB Notification: Performance of Templates: time 0.004212/0.01898, allocations: 2.809 MB / 473.3 MB, free: 7.684 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: 3.7517728307284415]