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/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.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7475/0.7475, allocations: 140.1 MB / 156 MB, free: 5.176 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.001067/0.001067, allocations: 184.7 kB / 188.5 MB, free: 15.84 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.468/1.468, 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.0009042/0.0009042, allocations: 86.36 kB / 0.4945 GB, free: 8.402 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001701/0.001701, allocations: 269.9 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004776/0.0004777, allocations: 20 kB / 0.662 GB, free: 6.809 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.389, allocations: 79.3 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1397/0.5288, allocations: 109.9 MB / 0.8468 GB, free: 268 kB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.5291, allocations: 83.95 kB / 0.8469 GB, free: 184 kB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.5411, allocations: 4.03 MB / 0.8508 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.404e-06/0.5411, allocations: 0 / 0.8508 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.5411, allocations: 0 / 0.8508 GB, free: 12.09 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008721/0.542, allocations: 0.4986 MB / 0.8513 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.5421, allocations: 8.031 kB / 0.8513 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.565e-05/0.5421, allocations: 16.75 kB / 0.8513 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.5423, allocations: 208.2 kB / 0.8515 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.5424, allocations: 8.375 kB / 0.8516 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.5424, allocations: 4.375 kB / 0.8516 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.5427, allocations: 144.6 kB / 0.8517 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.5428, allocations: 192 / 0.8517 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.5428, allocations: 3.938 kB / 0.8517 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.5428, allocations: 4 kB / 0.8517 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.5431, allocations: 119.8 kB / 0.8518 GB, free: 10.99 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007672/0.5439, allocations: 440.5 kB / 0.8522 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.5443, allocations: 150.4 kB / 0.8524 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.5445, allocations: 80.81 kB / 0.8525 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006303/0.5451, allocations: 445.5 kB / 0.8529 GB, free: 9.746 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.5454, allocations: 139.2 kB / 0.853 GB, free: 9.598 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=16): time 2.114e-06/0.5454, allocations: 0 / 0.853 GB, free: 9.598 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16): time 0.0006832/0.5461, allocations: 258.5 kB / 0.8533 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.5462, allocations: 51.41 kB / 0.8533 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.5464, allocations: 191.3 kB / 0.8535 GB, free: 9.078 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.5464, allocations: 29.7 kB / 0.8535 GB, free: 9.043 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.549e-05/0.5465, allocations: 112.1 kB / 0.8536 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.812e-05/0.5466, allocations: 67.03 kB / 0.8537 GB, free: 8.863 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.082e-05/0.5466, allocations: 4 kB / 0.8537 GB, free: 8.859 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5467, allocations: 334.8 kB / 0.854 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.5469, allocations: 72.81 kB / 0.8541 GB, free: 8.449 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.5472, allocations: 103.1 kB / 0.8542 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.694/3.242, allocations: 478.7 MB / 1.322 GB, free: 72.02 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/3.242, allocations: 0 / 1.322 GB, free: 72.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006157/3.242, allocations: 264.2 kB / 1.322 GB, free: 71.82 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.1e-05/3.242, allocations: 39 kB / 1.322 GB, free: 71.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/3.242, allocations: 0 / 1.322 GB, free: 71.77 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/3.242, allocations: 1.422 kB / 1.322 GB, free: 71.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/3.243, allocations: 49.56 kB / 1.322 GB, free: 71.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/3.243, allocations: 0 / 1.322 GB, free: 71.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/3.243, allocations: 24.78 kB / 1.322 GB, free: 71.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/3.243, allocations: 6.438 kB / 1.322 GB, free: 71.71 MB / 0.6511 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.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: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.T_start,$PRE.gain.count,$whenCondition1,gain.T_start,gain.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002286/3.243, allocations: 154.3 kB / 1.322 GB, free: 71.57 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/3.243, allocations: 18 kB / 1.322 GB, free: 71.56 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006686/3.244, allocations: 259.2 kB / 1.322 GB, free: 71.36 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/3.244, allocations: 1.594 kB / 1.322 GB, free: 71.36 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/3.244, allocations: 1.75 kB / 1.322 GB, free: 71.36 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/3.244, allocations: 4 kB / 1.322 GB, free: 71.36 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/3.244, allocations: 274.1 kB / 1.323 GB, free: 71.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/3.244, allocations: 4 kB / 1.323 GB, free: 71.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/3.244, allocations: 49.66 kB / 1.323 GB, free: 71.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/3.244, allocations: 2.25 kB / 1.323 GB, free: 71.05 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/3.244, allocations: 0 / 1.323 GB, free: 71.05 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/3.244, allocations: 4 kB / 1.323 GB, free: 71.04 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/3.244, allocations: 3.984 kB / 1.323 GB, free: 71.04 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/3.245, allocations: 340.8 kB / 1.323 GB, free: 70.78 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/3.245, allocations: 108.3 kB / 1.323 GB, free: 70.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/3.245, allocations: 7.875 kB / 1.323 GB, free: 70.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/3.245, allocations: 20.61 kB / 1.323 GB, free: 70.66 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/3.245, allocations: 23.92 kB / 1.323 GB, free: 70.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/3.246, allocations: 15.8 kB / 1.323 GB, free: 70.62 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.65e-05/3.246, allocations: 142.5 kB / 1.323 GB, free: 70.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.91e-07/3.246, allocations: 0 / 1.323 GB, free: 70.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003009/3.246, allocations: 63.28 kB / 1.323 GB, free: 70.45 MB / 0.6511 GB 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 (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.0002191/3.246, allocations: 143.8 kB / 1.324 GB, free: 70.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004396/3.247, allocations: 235.7 kB / 1.324 GB, free: 70.13 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/3.247, allocations: 0 / 1.324 GB, free: 70.13 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/3.247, allocations: 107.3 kB / 1.324 GB, free: 70.05 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/3.247, allocations: 25.55 kB / 1.324 GB, free: 70.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008893/3.248, allocations: 0.629 MB / 1.325 GB, free: 69.43 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/3.248, allocations: 0.7244 MB / 1.325 GB, free: 68.68 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001227/3.248, allocations: 23.52 kB / 1.325 GB, free: 68.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.418e-05/3.248, allocations: 29.98 kB / 1.325 GB, free: 68.64 MB / 0.6511 GB Notification: Performance of SimCode: time 3.7e-07/3.248, allocations: 0 / 1.325 GB, free: 68.64 MB / 0.6511 GB Notification: Performance of Templates: time 0.005269/3.254, allocations: 2.586 MB / 1.328 GB, free: 66.1 MB / 0.6511 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile (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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)