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.001467/0.001467, allocations: 179.6 kB / 15.8 MB, free: 6.34 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.501/1.501, allocations: 223.2 MB / 239.7 MB, free: 1.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 93.7 kB / 290.9 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05397/0.05397, allocations: 8.089 MB / 350.1 MB, free: 2.727 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003197, allocations: 7.594 kB / 413.2 MB, free: 89.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09208, allocations: 52.53 MB / 465.7 MB, free: 41.95 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3322/0.4243, allocations: 86.21 MB / 0.539 GB, free: 16.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.4246, allocations: 62.41 kB / 0.539 GB, free: 16.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03395/0.4585, allocations: 12.94 MB / 0.5517 GB, free: 31.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4586, allocations: 0 / 0.5517 GB, free: 31.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.647e-05/0.4586, allocations: 16.47 kB / 0.5517 GB, free: 31.49 MB / 378.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.00218/0.4608, allocations: 1.011 MB / 0.5527 GB, free: 30.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.4609, allocations: 9.438 kB / 0.5527 GB, free: 30.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.683e-05/0.461, allocations: 65.08 kB / 0.5527 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.4611, allocations: 55.91 kB / 0.5528 GB, free: 30.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/0.4621, allocations: 0.5207 MB / 0.5533 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.4621, allocations: 18.97 kB / 0.5533 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.229e-05/0.4622, allocations: 30.31 kB / 0.5534 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006023/0.4628, allocations: 396.9 kB / 0.5537 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4628, allocations: 3.953 kB / 0.5537 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/0.4628, allocations: 11.16 kB / 0.5537 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.4628, allocations: 7.625 kB / 0.5538 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.4633, allocations: 264.9 kB / 0.554 GB, free: 30.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.4654, allocations: 1.538 MB / 0.5555 GB, free: 29.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004912/0.4659, allocations: 296.7 kB / 0.5558 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.466, allocations: 7.219 kB / 0.5558 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.466, allocations: 33.88 kB / 0.5558 GB, free: 29.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.466, allocations: 0 / 0.5558 GB, free: 29.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007415/0.4668, allocations: 312.2 kB / 0.5561 GB, free: 29.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.4668, allocations: 216.8 kB / 0.5563 GB, free: 29.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006552/0.4675, allocations: 0.5154 MB / 0.5568 GB, free: 29.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.4675, allocations: 31.2 kB / 0.5569 GB, free: 29.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.4677, allocations: 271.9 kB / 0.5571 GB, free: 28.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.4677, allocations: 47.8 kB / 0.5572 GB, free: 28.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.304e-05/0.4678, allocations: 5.5 kB / 0.5572 GB, free: 28.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.757e-05/0.4679, allocations: 355.9 kB / 0.5575 GB, free: 28.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.4681, allocations: 96.53 kB / 0.5576 GB, free: 28.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002862/0.4684, allocations: 216.9 kB / 0.5578 GB, free: 28.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.4686, allocations: 82.44 kB / 0.5579 GB, free: 28.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4686, allocations: 1.031 kB / 0.5579 GB, free: 28.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005842/0.4692, allocations: 306.5 kB / 0.5582 GB, free: 28.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.4692, allocations: 7.969 kB / 0.5582 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4692, allocations: 7.25 kB / 0.5582 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.4693, allocations: 3.188 kB / 0.5582 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.4695, allocations: 52.92 kB / 0.5583 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.4695, allocations: 3.281 kB / 0.5583 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005827/0.4701, allocations: 132.2 kB / 0.5584 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.4701, allocations: 11.84 kB / 0.5584 GB, free: 28.4 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 () * Number of clocked 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.0001917/0.4703, allocations: 185.4 kB / 0.5586 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.522e-05/0.4704, allocations: 54.11 kB / 0.5586 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006031/0.471, allocations: 268 kB / 0.5589 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.471, allocations: 1.906 kB / 0.5589 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4711, allocations: 0 / 0.5589 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4711, allocations: 0 / 0.5589 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.4721, allocations: 0.7685 MB / 0.5596 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4721, allocations: 0 / 0.5596 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.4723, allocations: 26.81 kB / 0.5597 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4723, allocations: 1.688 kB / 0.5597 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.4723, allocations: 5 kB / 0.5597 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.4723, allocations: 5.719 kB / 0.5597 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4723, allocations: 7.594 kB / 0.5597 GB, free: 27.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008076/0.4732, allocations: 476 kB / 0.5601 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.4734, allocations: 196.5 kB / 0.5603 GB, free: 27.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-05/0.4735, allocations: 5.125 kB / 0.5603 GB, free: 27.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/0.4741, allocations: 136 kB / 0.5605 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002588/0.4744, allocations: 125.8 kB / 0.5606 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.4744, allocations: 8.391 kB / 0.5606 GB, free: 27.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004967/0.4749, allocations: 422.5 kB / 0.561 GB, free: 27.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4749, allocations: 4 kB / 0.561 GB, free: 27.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005212/0.4754, allocations: 116.1 kB / 0.5611 GB, free: 27.43 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 () * Number of clocked 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.001947/0.4774, allocations: 1.374 MB / 0.5624 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005494/0.478, allocations: 240.3 kB / 0.5627 GB, free: 26.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.478, allocations: 1.375 kB / 0.5627 GB, free: 26.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.4783, allocations: 143.5 kB / 0.5628 GB, free: 26.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.4788, allocations: 96.77 kB / 0.5629 GB, free: 26.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005046/0.4838, allocations: 4.358 MB / 0.5672 GB, free: 24.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.4842, allocations: 0.8321 MB / 0.568 GB, free: 23.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002938/0.4846, allocations: 71.84 kB / 0.568 GB, free: 23.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.4848, allocations: 150.6 kB / 0.5682 GB, free: 23.34 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4848, allocations: 0 / 0.5682 GB, free: 23.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.5101, allocations: 11.27 MB / 0.5792 GB, free: 18.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/0.5104, allocations: 229.5 kB / 0.5794 GB, free: 18.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/2.972, allocations: 0 / 0.5794 GB, free: 18.45 MB / 378.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)