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/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7648/0.7648, allocations: 140.1 MB / 156 MB, free: 5.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 182.5 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.4 MB / 426.3 MB, free: 8.457 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000923/0.0009229, allocations: 82.36 kB / 0.4945 GB, free: 8.406 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001954/0.001954, allocations: 264 kB / 0.5728 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005133/0.0005135, allocations: 20 kB / 0.662 GB, free: 6.809 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3751, allocations: 79.3 MB / 0.7395 GB, free: 46.34 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.5116, allocations: 110.7 MB / 0.8475 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.5119, allocations: 75.95 kB / 0.8476 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.02323/0.5351, allocations: 7.668 MB / 0.8551 GB, free: 7.703 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.675e-06/0.5351, allocations: 0 / 0.8551 GB, free: 7.703 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.639e-05/0.5352, allocations: 4 kB / 0.8551 GB, free: 7.699 MB / 0.5261 GB 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.00176/0.5369, allocations: 0.7706 MB / 0.8558 GB, free: 6.852 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.537, allocations: 8.031 kB / 0.8559 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.5371, allocations: 40.47 kB / 0.8559 GB, free: 6.805 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.5374, allocations: 276.2 kB / 0.8562 GB, free: 6.496 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.5375, allocations: 16.81 kB / 0.8562 GB, free: 6.48 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.887e-05/0.5376, allocations: 28.31 kB / 0.8562 GB, free: 6.453 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007851/0.5384, allocations: 345.3 kB / 0.8565 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.5384, allocations: 4.094 kB / 0.8565 GB, free: 6.102 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.5385, allocations: 11.94 kB / 0.8565 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.5385, allocations: 15.92 kB / 0.8566 GB, free: 6.074 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008639/0.5393, allocations: 347.1 kB / 0.8569 GB, free: 5.738 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.5409, allocations: 0.8942 MB / 0.8578 GB, free: 4.789 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.542, allocations: 433.5 kB / 0.8582 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.5426, allocations: 225.6 kB / 0.8584 GB, free: 4.121 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006476/0.5432, allocations: 453.4 kB / 0.8588 GB, free: 3.586 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006867/0.5439, allocations: 348.5 kB / 0.8592 GB, free: 3.227 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.996e-06/0.5439, allocations: 0 / 0.8592 GB, free: 3.227 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.001644/0.5456, allocations: 0.6752 MB / 0.8598 GB, free: 2.547 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.5456, allocations: 89.11 kB / 0.8599 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.5461, allocations: 336.5 kB / 0.8602 GB, free: 2.102 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.124e-05/0.5461, allocations: 33.7 kB / 0.8603 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.5463, allocations: 160.8 kB / 0.8604 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.5464, allocations: 142 kB / 0.8605 GB, free: 1.762 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.5464, allocations: 8 kB / 0.8605 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.5466, allocations: 346.8 kB / 0.8609 GB, free: 1.406 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005441/0.5471, allocations: 229.7 kB / 0.8611 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005334/0.5477, allocations: 262.4 kB / 0.8613 GB, free: 0.8984 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.462/7.01, allocations: 1.068 GB / 1.929 GB, free: 206.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/7.01, allocations: 3.75 kB / 1.929 GB, free: 206.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001426/7.011, allocations: 0.6873 MB / 1.93 GB, free: 205.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/7.011, allocations: 91.16 kB / 1.93 GB, free: 205.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/7.011, allocations: 0 / 1.93 GB, free: 205.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/7.011, allocations: 4.875 kB / 1.93 GB, free: 205.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005418/7.012, allocations: 122.3 kB / 1.93 GB, free: 205.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/7.012, allocations: 6.531 kB / 1.93 GB, free: 205.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/7.012, allocations: 77.66 kB / 1.93 GB, free: 205.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/7.012, allocations: 26.16 kB / 1.93 GB, free: 205.4 MB / 0.6511 GB Warning: Assuming fixed start value for the following 8 variables: battery_1C.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_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_1C.EBou:VARIABLE(start = (1.0 - battery_1C.c) * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery_1C.EAva:VARIABLE(start = battery_1C.c * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = (1.0 - battery_C20.c) * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = battery_C20.c * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Available 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.gain.T_start,$PRE.gain.count,$PRE.load_1C.T_start,$PRE.load_1C.count,$whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$PRE.load_C20.T_start,$PRE.load_C20.count,$whenCondition1,load_C20.T_start,load_C20.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002744/7.012, allocations: 197.3 kB / 1.93 GB, free: 205.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.687e-05/7.013, allocations: 43.05 kB / 1.93 GB, free: 205.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/7.014, allocations: 0.6716 MB / 1.931 GB, free: 204.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/7.014, allocations: 5.406 kB / 1.931 GB, free: 204.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/7.014, allocations: 7.938 kB / 1.931 GB, free: 204.7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/7.014, allocations: 3.984 kB / 1.931 GB, free: 204.7 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003759/7.014, allocations: 479.4 kB / 1.932 GB, free: 204.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/7.014, allocations: 0 / 1.932 GB, free: 204.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/7.015, allocations: 114.2 kB / 1.932 GB, free: 204.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/7.015, allocations: 0 / 1.932 GB, free: 204.2 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/7.015, allocations: 19.67 kB / 1.932 GB, free: 204.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/7.015, allocations: 6.156 kB / 1.932 GB, free: 204.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/7.015, allocations: 3.938 kB / 1.932 GB, free: 204.2 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/7.016, allocations: 0.8565 MB / 1.933 GB, free: 203.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/7.017, allocations: 169.5 kB / 1.933 GB, free: 203.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.026e-05/7.017, allocations: 10.62 kB / 1.933 GB, free: 203.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003912/7.017, allocations: 59.45 kB / 1.933 GB, free: 203.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/7.017, allocations: 55.28 kB / 1.933 GB, free: 203.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/7.017, allocations: 18.73 kB / 1.933 GB, free: 203.3 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001812/7.017, allocations: 232.7 kB / 1.933 GB, free: 203.1 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/7.017, allocations: 4 kB / 1.933 GB, free: 203.1 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003689/7.018, allocations: 137.3 kB / 1.933 GB, free: 203 MB / 0.6511 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002035/7.018, allocations: 154.5 kB / 1.933 GB, free: 202.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001019/7.019, allocations: 0.6756 MB / 1.934 GB, free: 202.3 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/7.019, allocations: 0 / 1.934 GB, free: 202.3 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004876/7.02, allocations: 293.2 kB / 1.934 GB, free: 202.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/7.02, allocations: 71.75 kB / 1.934 GB, free: 202.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/7.022, allocations: 1.319 MB / 1.936 GB, free: 200.8 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/7.022, allocations: 0.8015 MB / 1.936 GB, free: 200 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003463/7.022, allocations: 67.41 kB / 1.937 GB, free: 199.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/7.022, allocations: 47.42 kB / 1.937 GB, free: 199.9 MB / 0.6511 GB Notification: Performance of SimCode: time 4e-07/7.022, allocations: 0 / 1.937 GB, free: 199.9 MB / 0.6511 GB Notification: Performance of Templates: time 0.00857/7.031, allocations: 5.944 MB / 1.942 GB, free: 194 MB / 0.6511 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile (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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1)