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.001119/0.001119, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.002038/0.002038, allocations: 169 kB / 24.06 MB, free: 448 kB / 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.9719/0.9719, allocations: 177.1 MB / 204.5 MB, free: 5.469 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.001716/0.001716, allocations: 233.4 kB / 261.3 MB, free: 12.63 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.7912/0.7912, allocations: 138.4 MB / 456.3 MB, free: 30.04 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 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.773e-06/1.773e-06, allocations: 0 / 0.5563 GB, free: 15.91 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.492e-05, allocations: 4.281 kB / 0.5563 GB, free: 15.9 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.002738/0.002763, allocations: 2.619 MB / 0.5589 GB, free: 13.26 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.004086, allocations: 1.088 MB / 0.5599 GB, free: 12.16 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.004217, allocations: 15.81 kB / 0.5599 GB, free: 12.15 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.004407, allocations: 71.36 kB / 0.56 GB, free: 12.08 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.004578, allocations: 138.9 kB / 0.5601 GB, free: 11.94 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.004894, allocations: 187.4 kB / 0.5603 GB, free: 11.76 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003566/0.005251, allocations: 0.5175 MB / 0.5608 GB, free: 11.24 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.005352, allocations: 24.94 kB / 0.5608 GB, free: 11.22 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003089/0.005661, allocations: 323.1 kB / 0.5611 GB, free: 10.9 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.005869, allocations: 175.5 kB / 0.5613 GB, free: 10.73 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.005911, allocations: 32 kB / 0.5613 GB, free: 10.7 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.006036, allocations: 87.88 kB / 0.5614 GB, free: 10.61 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.457e-05/0.006101, allocations: 79.64 kB / 0.5615 GB, free: 10.54 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.006201, allocations: 123.7 kB / 0.5616 GB, free: 10.41 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.006518, allocations: 362.6 kB / 0.562 GB, free: 10.06 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.006521, allocations: 0 / 0.562 GB, free: 10.06 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006522, allocations: 0 / 0.562 GB, free: 10.06 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.006527, allocations: 0 / 0.562 GB, free: 10.06 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.0009977/0.007524, allocations: 0.8415 MB / 0.5628 GB, free: 9.156 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.007559, allocations: 9.938 kB / 0.5628 GB, free: 9.148 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.007929, allocations: 104.6 kB / 0.5629 GB, free: 9.047 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.008211, allocations: 299.1 kB / 0.5632 GB, free: 8.727 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.008228, allocations: 16.86 kB / 0.5632 GB, free: 8.711 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.00827, allocations: 28.33 kB / 0.5632 GB, free: 8.684 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.008599, allocations: 256.5 kB / 0.5635 GB, free: 8.418 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.008613, allocations: 4.172 kB / 0.5635 GB, free: 8.414 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.008633, allocations: 12.31 kB / 0.5635 GB, free: 8.402 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.008641, allocations: 7.938 kB / 0.5635 GB, free: 8.395 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.0088, allocations: 105.1 kB / 0.5636 GB, free: 8.293 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006434/0.009444, allocations: 0.6704 MB / 0.5642 GB, free: 7.59 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000314/0.009758, allocations: 210.6 kB / 0.5645 GB, free: 7.359 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.009863, allocations: 95.31 kB / 0.5645 GB, free: 7.258 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002123/0.01008, allocations: 55.94 kB / 0.5646 GB, free: 7.203 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.01033, allocations: 243.8 kB / 0.5648 GB, free: 6.941 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 1.743e-06/0.01034, allocations: 4 kB / 0.5648 GB, free: 6.938 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.0004797/0.01082, allocations: 360.2 kB / 0.5652 GB, free: 6.586 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.01086, allocations: 89.03 kB / 0.5653 GB, free: 6.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.01105, allocations: 346.1 kB / 0.5656 GB, free: 6.125 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.01108, allocations: 33.7 kB / 0.5656 GB, free: 6.086 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.614e-05/0.01118, allocations: 219.6 kB / 0.5658 GB, free: 5.867 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.483e-05/0.01127, allocations: 154.7 kB / 0.566 GB, free: 5.715 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.01137, allocations: 103.8 kB / 0.5661 GB, free: 5.605 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.01151, allocations: 0.5195 MB / 0.5666 GB, free: 5.074 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.01167, allocations: 182.6 kB / 0.5668 GB, free: 4.875 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.01183, allocations: 232.3 kB / 0.567 GB, free: 4.609 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.01221, allocations: 488.8 kB / 0.5674 GB, free: 4.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.01221, allocations: 0 / 0.5674 GB, free: 4.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0004653/0.01268, allocations: 0.5271 MB / 0.568 GB, free: 3.504 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.972e-05/0.01273, allocations: 93.05 kB / 0.568 GB, free: 3.395 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.01274, allocations: 4.062 kB / 0.5681 GB, free: 3.391 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.01275, allocations: 11.98 kB / 0.5681 GB, free: 3.379 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.01305, allocations: 115.9 kB / 0.5682 GB, free: 3.266 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.01305, allocations: 0 / 0.5682 GB, free: 3.266 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.01325, allocations: 55.7 kB / 0.5682 GB, free: 3.211 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.01328, allocations: 19.98 kB / 0.5682 GB, free: 3.191 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_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 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 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_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1,$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) * 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.0002158/0.01349, allocations: 245.1 kB / 0.5685 GB, free: 2.949 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.01355, allocations: 55.72 kB / 0.5685 GB, free: 2.895 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006049/0.01415, allocations: 445.7 kB / 0.569 GB, free: 2.449 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.01416, allocations: 8 kB / 0.569 GB, free: 2.441 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.01416, allocations: 0 / 0.569 GB, free: 2.441 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.01417, allocations: 7.984 kB / 0.569 GB, free: 2.434 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.01442, allocations: 268.8 kB / 0.5692 GB, free: 2.145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.01443, allocations: 3.984 kB / 0.5692 GB, free: 2.141 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.0147, allocations: 99.88 kB / 0.5693 GB, free: 2.043 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.01471, allocations: 4 kB / 0.5693 GB, free: 2.039 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.01473, allocations: 8 kB / 0.5693 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.01473, allocations: 4 kB / 0.5693 GB, free: 2.027 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.01474, allocations: 7.922 kB / 0.5694 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005417/0.01528, allocations: 496.1 kB / 0.5698 GB, free: 1.512 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.0154, allocations: 87.52 kB / 0.5699 GB, free: 1.426 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/0.01544, allocations: 8 kB / 0.5699 GB, free: 1.418 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.0156, allocations: 35.91 kB / 0.57 GB, free: 1.383 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.633e-05/0.0157, allocations: 55.91 kB / 0.57 GB, free: 1.328 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.01572, allocations: 11.98 kB / 0.57 GB, free: 1.316 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.01582, allocations: 226.9 kB / 0.5702 GB, free: 1.094 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.01582, allocations: 0 / 0.5702 GB, free: 1.094 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000279/0.0161, allocations: 119.9 kB / 0.5703 GB, free: 0.9766 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.0001611/0.01626, allocations: 139 kB / 0.5705 GB, free: 0.832 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004166/0.01668, allocations: 0.4992 MB / 0.571 GB, free: 280 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.01668, allocations: 0 / 0.571 GB, free: 280 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.01685, allocations: 160.4 kB / 0.5711 GB, free: 112 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.01716, allocations: 89.22 kB / 0.5712 GB, free: 28 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.01829, allocations: 0.8836 MB / 0.5721 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.515e-05/0.01835, allocations: 111 kB / 0.5722 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002172/0.01857, allocations: 83.38 kB / 0.5723 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.01881, allocations: 170.1 kB / 0.5724 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of SimCode: time 1.132e-06/0.01882, allocations: 0 / 0.5724 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of Templates: time 0.009129/0.02795, allocations: 6.971 MB / 0.5792 GB, free: 7.875 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.841530372854322]