Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 181.7 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 221.4 MB / 235.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 104.3 kB / 286.1 MB, free: 12.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06688/0.06688, allocations: 8.097 MB / 345.1 MB, free: 1.902 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.69e-05/4.693e-05, allocations: 8 kB / 405.6 MB, free: 61.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 52.52 MB / 458.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4905/0.6154, allocations: 81.31 MB / 0.5268 GB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.6157, allocations: 63.53 kB / 0.5268 GB, free: 4.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01759/0.6333, allocations: 5.987 MB / 0.5327 GB, free: 15.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6333, allocations: 0 / 0.5327 GB, free: 15.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.196e-05/0.6334, allocations: 4 kB / 0.5327 GB, free: 15.47 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00166/0.635, allocations: 0.7064 MB / 0.5334 GB, free: 14.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.6351, allocations: 8.031 kB / 0.5334 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.608e-05/0.6352, allocations: 52.92 kB / 0.5334 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.844e-05/0.6353, allocations: 32.17 kB / 0.5334 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.636, allocations: 374 kB / 0.5338 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.636, allocations: 18.47 kB / 0.5338 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.336e-05/0.6361, allocations: 14.5 kB / 0.5338 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004612/0.6365, allocations: 259.2 kB / 0.5341 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.6366, allocations: 0 / 0.5341 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.6366, allocations: 11.44 kB / 0.5341 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.6366, allocations: 4 kB / 0.5341 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.637, allocations: 178.4 kB / 0.5343 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.6389, allocations: 0.8568 MB / 0.5351 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004939/0.6394, allocations: 251.7 kB / 0.5353 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.6397, allocations: 129.4 kB / 0.5355 GB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.557e-05/0.6398, allocations: 4 kB / 0.5355 GB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.401e-05/0.6398, allocations: 42.06 kB / 0.5355 GB, free: 12.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.6399, allocations: 0 / 0.5355 GB, free: 12.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004243/0.6403, allocations: 163.9 kB / 0.5357 GB, free: 12.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.6405, allocations: 209.6 kB / 0.5359 GB, free: 12.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004865/0.641, allocations: 331.5 kB / 0.5362 GB, free: 12.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.641, allocations: 32.64 kB / 0.5362 GB, free: 12.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.6412, allocations: 171.4 kB / 0.5364 GB, free: 12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.644e-05/0.6412, allocations: 36.78 kB / 0.5364 GB, free: 11.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.379e-05/0.6412, allocations: 3.125 kB / 0.5364 GB, free: 11.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.6415, allocations: 344.4 kB / 0.5367 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.6416, allocations: 66.16 kB / 0.5368 GB, free: 11.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.6418, allocations: 136.8 kB / 0.5369 GB, free: 11.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.139e-05/0.6419, allocations: 42.36 kB / 0.537 GB, free: 11.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.642, allocations: 0 / 0.537 GB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003995/0.6424, allocations: 181.9 kB / 0.5371 GB, free: 11.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.6424, allocations: 4 kB / 0.5372 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.6424, allocations: 0 / 0.5372 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/0.6424, allocations: 4 kB / 0.5372 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.6426, allocations: 40.11 kB / 0.5372 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.6427, allocations: 4 kB / 0.5372 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005629/0.6432, allocations: 119.3 kB / 0.5373 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.6433, allocations: 11.5 kB / 0.5373 GB, free: 11.11 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = battery.SOC_start ) "Charge as current integration" 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: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0002189/0.6435, allocations: 117.9 kB / 0.5374 GB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.29e-05/0.6436, allocations: 23.72 kB / 0.5375 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005124/0.6441, allocations: 211.2 kB / 0.5377 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.6441, allocations: 0 / 0.5377 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.6441, allocations: 3.938 kB / 0.5377 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.6441, allocations: 0 / 0.5377 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000985/0.6451, allocations: 0.6395 MB / 0.5383 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.6451, allocations: 3.938 kB / 0.5383 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.6453, allocations: 27.98 kB / 0.5383 GB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.6453, allocations: 0 / 0.5383 GB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.6454, allocations: 7.25 kB / 0.5383 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.6454, allocations: 0 / 0.5383 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6454, allocations: 3.938 kB / 0.5383 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/0.646, allocations: 390.3 kB / 0.5387 GB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.6462, allocations: 117.8 kB / 0.5388 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.6462, allocations: 3.312 kB / 0.5388 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005636/0.6468, allocations: 123.8 kB / 0.5389 GB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/0.6471, allocations: 130 kB / 0.5391 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.6471, allocations: 4 kB / 0.5391 GB, free: 9.484 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003383/0.6475, allocations: 270.8 kB / 0.5393 GB, free: 9.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6475, allocations: 0 / 0.5393 GB, free: 9.285 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004105/0.6479, allocations: 75.52 kB / 0.5394 GB, free: 9.215 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001627/0.6495, allocations: 1.146 MB / 0.5405 GB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.6499, allocations: 166.7 kB / 0.5407 GB, free: 8.066 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.6499, allocations: 4 kB / 0.5407 GB, free: 8.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.6502, allocations: 124.3 kB / 0.5408 GB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.6504, allocations: 25.16 kB / 0.5408 GB, free: 7.961 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.6523, allocations: 0.6003 MB / 0.5414 GB, free: 7.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.6528, allocations: 0.7709 MB / 0.5422 GB, free: 6.586 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001676/0.6529, allocations: 37.55 kB / 0.5422 GB, free: 6.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.6531, allocations: 82.69 kB / 0.5423 GB, free: 6.52 MB / 362.7 MB Notification: Performance of SimCode: time 6.22e-07/0.6531, allocations: 3.938 kB / 0.5423 GB, free: 6.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.6734, allocations: 6.712 MB / 0.5488 GB, free: 15.89 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.6736, allocations: 189.5 kB / 0.549 GB, free: 15.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.734, allocations: 3.938 kB / 0.549 GB, free: 15.66 MB / 378.7 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)