Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.0009429/0.0009429, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009294/0.0009294, allocations: 169 kB / 23.02 MB, free: 1.547 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.9341/0.9341, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.001685/0.001685, allocations: 248.1 kB / 260.2 MB, free: 12.81 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.7775/0.7775, allocations: 138.4 MB / 455.2 MB, free: 1.543 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.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.5551 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.388e-05/2.547e-05, allocations: 6.312 kB / 0.5551 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.002809/0.002835, allocations: 2.631 MB / 0.5576 GB, free: 13.92 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.004438, allocations: 1.099 MB / 0.5587 GB, free: 12.81 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.004588, allocations: 19.81 kB / 0.5587 GB, free: 12.79 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.004806, allocations: 63.39 kB / 0.5588 GB, free: 12.73 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.005009, allocations: 150.8 kB / 0.5589 GB, free: 12.58 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.005433, allocations: 167.6 kB / 0.5591 GB, free: 12.41 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.005859, allocations: 0.5215 MB / 0.5596 GB, free: 11.89 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.005978, allocations: 28.91 kB / 0.5596 GB, free: 11.87 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007335/0.006711, allocations: 319.1 kB / 0.5599 GB, free: 11.55 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.006952, allocations: 187.5 kB / 0.5601 GB, free: 11.37 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.622e-05/0.006999, allocations: 28 kB / 0.5602 GB, free: 11.34 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.007138, allocations: 83.88 kB / 0.5602 GB, free: 11.26 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/0.007204, allocations: 79.66 kB / 0.5603 GB, free: 11.18 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.007314, allocations: 131.6 kB / 0.5604 GB, free: 11.05 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.007668, allocations: 350.7 kB / 0.5608 GB, free: 10.71 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.007671, allocations: 0 / 0.5608 GB, free: 10.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.007672, allocations: 0 / 0.5608 GB, free: 10.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.007677, allocations: 0 / 0.5608 GB, free: 10.71 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001054/0.008731, allocations: 0.8454 MB / 0.5616 GB, free: 9.809 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.00877, allocations: 8.75 kB / 0.5616 GB, free: 9.801 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003784/0.009148, allocations: 100.7 kB / 0.5617 GB, free: 9.703 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.009468, allocations: 295 kB / 0.562 GB, free: 9.387 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.009487, allocations: 16.88 kB / 0.562 GB, free: 9.367 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/0.009535, allocations: 28.31 kB / 0.562 GB, free: 9.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.009942, allocations: 280.4 kB / 0.5623 GB, free: 9.051 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.009956, allocations: 192 / 0.5623 GB, free: 9.051 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.009982, allocations: 12.38 kB / 0.5623 GB, free: 9.039 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.00999, allocations: 7.938 kB / 0.5623 GB, free: 9.031 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.01022, allocations: 136.8 kB / 0.5624 GB, free: 8.898 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/0.01097, allocations: 0.7089 MB / 0.5631 GB, free: 8.148 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.01138, allocations: 234.5 kB / 0.5634 GB, free: 7.895 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.01153, allocations: 115.3 kB / 0.5635 GB, free: 7.773 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000225/0.01175, allocations: 63.94 kB / 0.5635 GB, free: 7.711 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.01205, allocations: 248.1 kB / 0.5638 GB, free: 7.445 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 2.385e-06/0.01205, allocations: 0 / 0.5638 GB, free: 7.445 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006142/0.01267, allocations: 413.3 kB / 0.5642 GB, free: 7.039 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.01271, allocations: 85.09 kB / 0.5642 GB, free: 6.938 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.01294, allocations: 342.3 kB / 0.5646 GB, free: 6.582 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.01297, allocations: 37.7 kB / 0.5646 GB, free: 6.539 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.01307, allocations: 211.6 kB / 0.5648 GB, free: 6.328 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.168e-05/0.01317, allocations: 150.7 kB / 0.5649 GB, free: 6.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.01328, allocations: 99.81 kB / 0.565 GB, free: 6.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.01341, allocations: 0.5235 MB / 0.5656 GB, free: 5.535 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.01361, allocations: 202.6 kB / 0.5657 GB, free: 5.312 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.01381, allocations: 252.3 kB / 0.566 GB, free: 5.027 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.01432, allocations: 0.5178 MB / 0.5665 GB, free: 4.453 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.01432, allocations: 0 / 0.5665 GB, free: 4.453 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008332/0.01516, allocations: 0.562 MB / 0.567 GB, free: 3.848 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/0.0152, allocations: 97.05 kB / 0.5671 GB, free: 3.734 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.01521, allocations: 0 / 0.5671 GB, free: 3.734 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.01522, allocations: 4 kB / 0.5671 GB, free: 3.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.01551, allocations: 123.8 kB / 0.5673 GB, free: 3.609 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.01552, allocations: 0 / 0.5673 GB, free: 3.609 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.01571, allocations: 55.77 kB / 0.5673 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.01573, allocations: 23.98 kB / 0.5673 GB, free: 3.531 MB / 490.7 MB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery_1C.EBou:VARIABLE(start = 0.685 * battery_1C.SOC_start * battery_1C.E_nominal unit = \"J\" fixed = true ) \"Bound charge of the battery\" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery_C20.EBou:VARIABLE(start = 0.685 * battery_C20.SOC_start * battery_C20.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: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0002117/0.01595, allocations: 240.2 kB / 0.5676 GB, free: 3.297 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.319e-05/0.01601, allocations: 55.7 kB / 0.5676 GB, free: 3.242 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006505/0.01666, allocations: 492.5 kB / 0.5681 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.01667, allocations: 4 kB / 0.5681 GB, free: 2.754 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.01667, allocations: 4 kB / 0.5681 GB, free: 2.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.01668, allocations: 3.984 kB / 0.5681 GB, free: 2.746 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.01695, allocations: 312.2 kB / 0.5684 GB, free: 2.406 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.01695, allocations: 0 / 0.5684 GB, free: 2.406 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.01723, allocations: 99.88 kB / 0.5685 GB, free: 2.309 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.01723, allocations: 0 / 0.5685 GB, free: 2.309 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.01727, allocations: 19.94 kB / 0.5685 GB, free: 2.289 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.01727, allocations: 4 kB / 0.5685 GB, free: 2.285 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.01727, allocations: 3.984 kB / 0.5685 GB, free: 2.281 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006369/0.01791, allocations: 0.5464 MB / 0.569 GB, free: 1.707 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.01802, allocations: 83.56 kB / 0.5691 GB, free: 1.625 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.01807, allocations: 11.94 kB / 0.5691 GB, free: 1.613 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.01822, allocations: 31.97 kB / 0.5692 GB, free: 1.582 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.01832, allocations: 55.91 kB / 0.5692 GB, free: 1.527 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.01834, allocations: 15.98 kB / 0.5692 GB, free: 1.512 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001324/0.01848, allocations: 235 kB / 0.5695 GB, free: 1.281 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01848, allocations: 0 / 0.5695 GB, free: 1.281 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002803/0.01876, allocations: 123.9 kB / 0.5696 GB, free: 1.16 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001804/0.01894, allocations: 139.1 kB / 0.5697 GB, free: 1.016 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000513/0.01945, allocations: 0.5343 MB / 0.5702 GB, free: 428 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01945, allocations: 0 / 0.5702 GB, free: 428 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.01965, allocations: 172.4 kB / 0.5704 GB, free: 252 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.01997, allocations: 81.58 kB / 0.5705 GB, free: 172 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.02126, allocations: 0.9072 MB / 0.5714 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.905e-05/0.02133, allocations: 111 kB / 0.5715 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002126/0.02154, allocations: 79.38 kB / 0.5715 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.02167, allocations: 60.47 kB / 0.5716 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of SimCode: time 7.52e-07/0.02167, allocations: 0 / 0.5716 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of Templates: time 0.009579/0.03125, allocations: 6.671 MB / 0.5781 GB, free: 8.371 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 3.611574301030487]