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.001239/0.001239, allocations: 101 kB / 15.73 MB, free: 436 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.001006/0.001006, allocations: 177 kB / 16.61 MB, free: 6.422 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.291/1.291, allocations: 223.2 MB / 240.5 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1516/0.1516, allocations: 8.087 MB / 299.7 MB, free: 2.844 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 8 kB / 362.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.08828, allocations: 52.51 MB / 415.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002213/0.09053, allocations: 1.93 MB / 417.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006556/0.0912, allocations: 494.7 kB / 417.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.151e-05/0.0913, allocations: 4 kB / 417.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.09158, allocations: 87.56 kB / 417.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.09173, allocations: 67.8 kB / 417.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.09189, allocations: 63.88 kB / 418 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000189/0.09209, allocations: 167.7 kB / 418.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.09225, allocations: 81.31 kB / 418.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.09236, allocations: 87.69 kB / 418.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.09253, allocations: 115.5 kB / 418.4 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.09256, allocations: 12 kB / 418.4 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.09268, allocations: 43.98 kB / 418.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.09283, allocations: 87.75 kB / 418.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.448e-05/0.09289, allocations: 77.45 kB / 418.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002932/0.09319, allocations: 307.4 kB / 419 MB, free: 5.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.0932, allocations: 0 / 419 MB, free: 5.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09322, allocations: 4 kB / 419 MB, free: 5.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.09323, allocations: 4 kB / 419 MB, free: 5.02 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.001693/0.09492, allocations: 0.8145 MB / 419.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.09497, allocations: 8.031 kB / 419.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.044e-05/0.09503, allocations: 54.55 kB / 419.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.508e-05/0.0951, allocations: 35.58 kB / 419.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.09552, allocations: 334.5 kB / 420.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.09555, allocations: 8.328 kB / 420.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.09559, allocations: 20 kB / 420.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.09607, allocations: 278.4 kB / 420.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.09609, allocations: 0 / 420.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.09612, allocations: 19.92 kB / 420.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.09614, allocations: 7.953 kB / 420.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003774/0.09652, allocations: 192.2 kB / 420.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.09778, allocations: 0.8533 MB / 421.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005874/0.09838, allocations: 315.6 kB / 421.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.09842, allocations: 3.984 kB / 421.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.09845, allocations: 38.52 kB / 421.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.09846, allocations: 0 / 421.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007063/0.09917, allocations: 309.4 kB / 422.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/0.09927, allocations: 209.6 kB / 422.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.09966, allocations: 366.7 kB / 422.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.09969, allocations: 33.7 kB / 422.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.0998, allocations: 168 kB / 423 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.09985, allocations: 39.39 kB / 423 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.275e-05/0.09987, allocations: 4 kB / 423 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.09997, allocations: 334.8 kB / 423.3 MB, free: 336 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1002, allocations: 91.94 kB / 423.4 MB, free: 244 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.1004, allocations: 153.9 kB / 423.6 MB, free: 68 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.1006, allocations: 51.98 kB / 423.6 MB, free: 16 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1006, allocations: 0 / 423.6 MB, free: 16 kB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.1489/0.2495, allocations: 221.7 kB / 423.9 MB, free: 40.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.2495, allocations: 6.172 kB / 423.9 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2495, allocations: 1.094 kB / 423.9 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2496, allocations: 2.188 kB / 423.9 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.2497, allocations: 44.62 kB / 423.9 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.2498, allocations: 0 / 423.9 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/0.2503, allocations: 122.6 kB / 424 MB, free: 40.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.2503, allocations: 7.844 kB / 424 MB, free: 40.46 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: 2 * 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.0002234/0.2505, allocations: 158.6 kB / 424.2 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.2506, allocations: 24.59 kB / 424.2 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005704/0.2512, allocations: 250.8 kB / 424.5 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.2512, allocations: 3.625 kB / 424.5 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2512, allocations: 5.688 kB / 424.5 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2512, allocations: 1.219 kB / 424.5 MB, free: 40.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008053/0.252, allocations: 0.657 MB / 425.1 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.252, allocations: 0 / 425.1 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.2522, allocations: 30.3 kB / 425.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2522, allocations: 3.812 kB / 425.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.2522, allocations: 4.344 kB / 425.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2522, allocations: 0 / 425.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2522, allocations: 0 / 425.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006308/0.2529, allocations: 450 kB / 425.6 MB, free: 39.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.477e-05/0.253, allocations: 112.4 kB / 425.7 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.253, allocations: 2.875 kB / 425.7 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005325/0.2536, allocations: 120.9 kB / 425.8 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.2538, allocations: 125.1 kB / 426 MB, free: 39.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.2538, allocations: 13.97 kB / 426 MB, free: 39.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.254, allocations: 272.5 kB / 426.2 MB, free: 39.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.254, allocations: 0 / 426.2 MB, free: 39.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.2544, allocations: 72.59 kB / 426.3 MB, free: 39.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.001235/0.2556, allocations: 1.143 MB / 427.4 MB, free: 39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.256, allocations: 204.6 kB / 427.6 MB, free: 38.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2561, allocations: 3.125 kB / 427.7 MB, free: 38.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.2563, allocations: 130.1 kB / 427.8 MB, free: 38.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.2565, allocations: 21.41 kB / 427.8 MB, free: 38.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.2596, allocations: 2.151 MB / 430 MB, free: 38.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/0.2598, allocations: 0.7714 MB / 430.7 MB, free: 37.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.26, allocations: 41.14 kB / 430.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.2601, allocations: 77.62 kB / 430.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2601, allocations: 0 / 430.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01438/0.2745, allocations: 6.56 MB / 437.4 MB, free: 37.08 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001216/0.2746, allocations: 216.7 kB / 437.6 MB, free: 36.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/2.032, allocations: 0 / 437.6 MB, free: 36.85 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: