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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007493/0.0007536, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007937/0.0007938, allocations: 174.4 kB / 16.63 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 223.2 MB / 240.6 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1514/0.1514, allocations: 8.096 MB / 299.8 MB, free: 2.879 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 8 kB / 363 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09051, allocations: 52.51 MB / 415.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002552/0.0931, allocations: 1.991 MB / 417.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007411/0.09386, allocations: 482.6 kB / 417.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.513e-05/0.09397, allocations: 4 kB / 417.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.09428, allocations: 79.62 kB / 418 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.09445, allocations: 79.58 kB / 418.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.09462, allocations: 55.88 kB / 418.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.09488, allocations: 259.1 kB / 418.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.09505, allocations: 89.31 kB / 418.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.09517, allocations: 87.64 kB / 418.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.09537, allocations: 123.5 kB / 418.7 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.09541, allocations: 12 kB / 418.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.09556, allocations: 51.98 kB / 418.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.09571, allocations: 99.67 kB / 418.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.757e-05/0.09578, allocations: 73.52 kB / 418.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002874/0.09607, allocations: 303.5 kB / 419.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.09609, allocations: 3.984 kB / 419.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.09609, allocations: 0 / 419.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.0961, allocations: 0 / 419.2 MB, free: 4.824 MB / 350.1 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.001544/0.09765, allocations: 0.8145 MB / 420 MB, free: 3.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.09771, allocations: 11.97 kB / 420.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.07e-05/0.09778, allocations: 54.48 kB / 420.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.09786, allocations: 39.52 kB / 420.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.09827, allocations: 338.5 kB / 420.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.09831, allocations: 12.33 kB / 420.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.798e-05/0.09835, allocations: 20 kB / 420.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004943/0.09885, allocations: 282.4 kB / 420.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.09887, allocations: 0 / 420.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.09891, allocations: 16 kB / 420.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.09892, allocations: 4 kB / 420.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003769/0.0993, allocations: 192.1 kB / 421 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.1005, allocations: 0.8572 MB / 421.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.1011, allocations: 311.7 kB / 422.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.1014, allocations: 160.7 kB / 422.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.1015, allocations: 3.984 kB / 422.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.1015, allocations: 38.52 kB / 422.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.1015, allocations: 0 / 422.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006791/0.1022, allocations: 285.3 kB / 422.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.1023, allocations: 213.6 kB / 422.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004127/0.1027, allocations: 366.7 kB / 423.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.1028, allocations: 29.7 kB / 423.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1029, allocations: 172 kB / 423.4 MB, free: 364 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.1029, allocations: 43.38 kB / 423.4 MB, free: 320 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/0.103, allocations: 8 kB / 423.4 MB, free: 312 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1642/0.2671, allocations: 326.8 kB / 423.8 MB, free: 40.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.2674, allocations: 90.25 kB / 423.8 MB, free: 40.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.2677, allocations: 155.9 kB / 424 MB, free: 40.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.2678, allocations: 65.14 kB / 424.1 MB, free: 40.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2678, allocations: 0 / 424.1 MB, free: 40.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004428/0.2683, allocations: 221.6 kB / 424.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2683, allocations: 6.828 kB / 424.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.2683, allocations: 10.97 kB / 424.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2683, allocations: 0 / 424.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.2685, allocations: 34.17 kB / 424.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2685, allocations: 0 / 424.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.2689, allocations: 123.1 kB / 424.5 MB, free: 40.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.269, allocations: 8.594 kB / 424.5 MB, free: 40.86 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = battery.SOC_start fixed = true ) "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 () * Number of clocked 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.0001969/0.2692, allocations: 162.3 kB / 424.6 MB, free: 40.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.036e-05/0.2692, allocations: 23.28 kB / 424.6 MB, free: 40.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005419/0.2698, allocations: 253.4 kB / 424.9 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.2698, allocations: 3.375 kB / 424.9 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2698, allocations: 0 / 424.9 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2698, allocations: 0.9844 kB / 424.9 MB, free: 40.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007735/0.2706, allocations: 0.6617 MB / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2706, allocations: 0 / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.2707, allocations: 36.83 kB / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.2707, allocations: 2.812 kB / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.2708, allocations: 3.625 kB / 425.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2708, allocations: 6.922 kB / 425.6 MB, free: 40.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2708, allocations: 0.8125 kB / 425.6 MB, free: 40.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005684/0.2713, allocations: 438.3 kB / 426 MB, free: 40.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.019e-05/0.2714, allocations: 117.4 kB / 426.1 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.2715, allocations: 5.812 kB / 426.2 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.2719, allocations: 117.1 kB / 426.3 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.2721, allocations: 130.7 kB / 426.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.2722, allocations: 6.719 kB / 426.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.2724, allocations: 274.7 kB / 426.7 MB, free: 40.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2724, allocations: 0 / 426.7 MB, free: 40.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003077/0.2727, allocations: 68.27 kB / 426.7 MB, free: 40.06 MB / 350.1 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 () * 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.001155/0.2739, allocations: 1.133 MB / 427.9 MB, free: 39.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004/0.2743, allocations: 209 kB / 428.1 MB, free: 39.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2743, allocations: 3.344 kB / 428.1 MB, free: 39.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.2745, allocations: 140.5 kB / 428.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.2749, allocations: 37.25 kB / 428.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.2778, allocations: 2.025 MB / 430.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.2779, allocations: 0.7581 MB / 431 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001414/0.2781, allocations: 48.52 kB / 431.1 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.2782, allocations: 80.56 kB / 431.2 MB, free: 38.04 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2782, allocations: 1.969 kB / 431.2 MB, free: 38.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01473/0.293, allocations: 6.579 MB / 437.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001239/0.2931, allocations: 224.7 kB / 438 MB, free: 37.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.022, allocations: 3.875 kB / 438 MB, free: 37.35 MB / 350.1 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) Environment - environmentSimulation: