Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",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.001599/0.001599, allocations: 182.3 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.537/1.537, allocations: 221.4 MB / 235.1 MB, free: 14.43 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.00119/0.00119, allocations: 102.9 kB / 286.1 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06857/0.06857, allocations: 8.108 MB / 345.1 MB, free: 1.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.394e-05/4.396e-05, allocations: 0 / 405.6 MB, free: 61.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.121, allocations: 52.53 MB / 458.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.509/0.6301, allocations: 86.39 MB / 0.5317 GB, free: 15.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.6304, allocations: 66.95 kB / 0.5318 GB, free: 15.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03729/0.6677, allocations: 12.92 MB / 0.5444 GB, free: 4.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.6678, allocations: 3.984 kB / 0.5444 GB, free: 4.535 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.348e-05/0.6678, allocations: 11.98 kB / 0.5444 GB, free: 4.523 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001867/0.6697, allocations: 0.8724 MB / 0.5453 GB, free: 3.641 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.6698, allocations: 12.03 kB / 0.5453 GB, free: 3.629 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.288e-05/0.6699, allocations: 68.34 kB / 0.5453 GB, free: 3.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.67, allocations: 55.34 kB / 0.5454 GB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.671, allocations: 0.5202 MB / 0.5459 GB, free: 3.043 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.6711, allocations: 18.88 kB / 0.5459 GB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.6711, allocations: 25.69 kB / 0.5459 GB, free: 3.016 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/0.6718, allocations: 369.2 kB / 0.5463 GB, free: 2.719 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.6718, allocations: 3.953 kB / 0.5463 GB, free: 2.715 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.6718, allocations: 22.03 kB / 0.5463 GB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.6718, allocations: 8 kB / 0.5463 GB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003941/0.6722, allocations: 230.3 kB / 0.5465 GB, free: 2.543 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002323/0.6746, allocations: 1.53 MB / 0.548 GB, free: 1.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003224/0.6749, allocations: 243.8 kB / 0.5483 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.6751, allocations: 90.27 kB / 0.5484 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.517e-05/0.6751, allocations: 0 / 0.5484 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.6752, allocations: 37.31 kB / 0.5484 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.815e-06/0.6752, allocations: 3.984 kB / 0.5484 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003928/0.6756, allocations: 181.6 kB / 0.5486 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.6757, allocations: 213.6 kB / 0.5488 GB, free: 468 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006339/0.6763, allocations: 0.5154 MB / 0.5493 GB, free: 68 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.6764, allocations: 29.02 kB / 0.5493 GB, free: 36 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.6766, allocations: 267 kB / 0.5496 GB, free: 15.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.6766, allocations: 44.83 kB / 0.5496 GB, free: 15.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.6767, allocations: 0 / 0.5496 GB, free: 15.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.6768, allocations: 358.6 kB / 0.5499 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.677, allocations: 76.66 kB / 0.55 GB, free: 15.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.6772, allocations: 196.9 kB / 0.5502 GB, free: 15.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.6773, allocations: 61.09 kB / 0.5503 GB, free: 15.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.6773, allocations: 11.95 kB / 0.5503 GB, free: 15.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004141/0.6778, allocations: 260 kB / 0.5505 GB, free: 14.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.6778, allocations: 5.562 kB / 0.5505 GB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.6778, allocations: 4 kB / 0.5505 GB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.6778, allocations: 4 kB / 0.5505 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.6781, allocations: 55.34 kB / 0.5506 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.6781, allocations: 4 kB / 0.5506 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000631/0.6787, allocations: 130.4 kB / 0.5507 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.6788, allocations: 11.98 kB / 0.5507 GB, free: 14.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001276/0.6789, allocations: 131.1 kB / 0.5509 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.55e-05/0.679, allocations: 47.39 kB / 0.5509 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004856/0.6795, allocations: 219.6 kB / 0.5511 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.6795, allocations: 4 kB / 0.5511 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.6795, allocations: 3.938 kB / 0.5511 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.6795, allocations: 3.984 kB / 0.5511 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009862/0.6805, allocations: 0.729 MB / 0.5518 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.6805, allocations: 0 / 0.5518 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.6807, allocations: 23.98 kB / 0.5519 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.6807, allocations: 4 kB / 0.5519 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.6807, allocations: 3.984 kB / 0.5519 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.6807, allocations: 0 / 0.5519 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.6808, allocations: 4 kB / 0.5519 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.6814, allocations: 422.7 kB / 0.5523 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002736/0.6817, allocations: 187.4 kB / 0.5525 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.775e-05/0.6818, allocations: 7.25 kB / 0.5525 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008169/0.6826, allocations: 142.8 kB / 0.5526 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/0.6829, allocations: 129.8 kB / 0.5527 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.683, allocations: 4 kB / 0.5527 GB, free: 12.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005802/0.6835, allocations: 417.8 kB / 0.5531 GB, free: 12.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6835, allocations: 0 / 0.5531 GB, free: 12.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005737/0.6841, allocations: 126.7 kB / 0.5532 GB, free: 12.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * 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.001836/0.686, allocations: 1.267 MB / 0.5545 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.6864, allocations: 197.8 kB / 0.5547 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.6864, allocations: 3.938 kB / 0.5547 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.6866, allocations: 120.5 kB / 0.5548 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.6871, allocations: 103.2 kB / 0.5549 GB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.6888, allocations: 0.7208 MB / 0.5556 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.6893, allocations: 0.8309 MB / 0.5564 GB, free: 9.523 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002559/0.6895, allocations: 75.23 kB / 0.5565 GB, free: 9.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.6898, allocations: 147.1 kB / 0.5566 GB, free: 9.406 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6898, allocations: 0 / 0.5566 GB, free: 9.406 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02535/0.7152, allocations: 11.16 MB / 0.5675 GB, free: 14.39 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.7154, allocations: 204.1 kB / 0.5677 GB, free: 14.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.11, allocations: 0 / 0.5677 GB, free: 14.16 MB / 394.7 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)