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.001115/0.001115, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.61/1.61, allocations: 221.5 MB / 230 MB, free: 7.59 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.0008543/0.0008544, allocations: 92.83 kB / 280.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05383/0.05383, allocations: 8.107 MB / 339.8 MB, free: 7.023 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.485e-05/1.486e-05, allocations: 1.375 kB / 398.6 MB, free: 49.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09737, allocations: 52.52 MB / 451.1 MB, free: 5.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.2068, allocations: 80.39 MB / 0.519 GB, free: 4.898 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.2071, allocations: 59.97 kB / 0.5191 GB, free: 4.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2523/0.4593, allocations: 5.915 MB / 0.5249 GB, free: 79.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4594, allocations: 0.6562 kB / 0.5249 GB, free: 79.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.4594, allocations: 4.062 kB / 0.5249 GB, free: 79.36 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.001547/0.461, allocations: 0.7038 MB / 0.5256 GB, free: 78.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.461, allocations: 12.92 kB / 0.5256 GB, free: 78.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.4612, allocations: 32.12 kB / 0.5256 GB, free: 78.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006532/0.4618, allocations: 379.7 kB / 0.526 GB, free: 78.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.4619, allocations: 6.547 kB / 0.526 GB, free: 78.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.4619, allocations: 8.688 kB / 0.526 GB, free: 78.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003101/0.4622, allocations: 165.8 kB / 0.5261 GB, free: 78.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.4626, allocations: 248.2 kB / 0.5264 GB, free: 78.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.4626, allocations: 3.391 kB / 0.5264 GB, free: 78.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.4627, allocations: 1.062 kB / 0.5264 GB, free: 78.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.4627, allocations: 4.25 kB / 0.5264 GB, free: 78.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.4641, allocations: 0.8169 MB / 0.5272 GB, free: 78.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003837/0.4645, allocations: 240.2 kB / 0.5274 GB, free: 78.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.4648, allocations: 130.8 kB / 0.5275 GB, free: 78.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/0.4648, allocations: 11.69 kB / 0.5275 GB, free: 78.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.4649, allocations: 31.5 kB / 0.5276 GB, free: 78.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.4649, allocations: 0 / 0.5276 GB, free: 78.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.003376/0.4683, allocations: 0.9094 MB / 0.5285 GB, free: 78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.4683, allocations: 209.6 kB / 0.5287 GB, free: 77.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.4687, allocations: 324.5 kB / 0.529 GB, free: 77.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.4687, allocations: 26.67 kB / 0.529 GB, free: 77.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/0.4688, allocations: 167.6 kB / 0.5292 GB, free: 77.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/0.4689, allocations: 43.72 kB / 0.5292 GB, free: 77.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.4689, allocations: 0 / 0.5292 GB, free: 77.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.967e-05/0.469, allocations: 341.2 kB / 0.5295 GB, free: 77.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.4691, allocations: 60.34 kB / 0.5296 GB, free: 77.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.4692, allocations: 128.3 kB / 0.5297 GB, free: 77.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.4723, allocations: 0.7926 MB / 0.5305 GB, free: 77.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.4723, allocations: 0 / 0.5305 GB, free: 77.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.003498/0.4758, allocations: 0.9263 MB / 0.5314 GB, free: 76.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.4758, allocations: 6.5 kB / 0.5314 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4758, allocations: 3.391 kB / 0.5314 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.4759, allocations: 1.344 kB / 0.5314 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.4761, allocations: 39.11 kB / 0.5314 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.4761, allocations: 6.766 kB / 0.5314 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006767/0.4768, allocations: 116.4 kB / 0.5315 GB, free: 76.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.4768, allocations: 6.188 kB / 0.5316 GB, free: 76.95 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.000176/0.477, allocations: 119.6 kB / 0.5317 GB, free: 76.84 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003519/0.4805, allocations: 0.9078 MB / 0.5326 GB, free: 76.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.071e-05/0.4806, allocations: 23.78 kB / 0.5326 GB, free: 76.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.484, allocations: 0.9573 MB / 0.5335 GB, free: 76.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.484, allocations: 2.094 kB / 0.5335 GB, free: 76.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.484, allocations: 0.875 kB / 0.5335 GB, free: 76.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.484, allocations: 5.484 kB / 0.5335 GB, free: 76.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004099/0.4881, allocations: 1.344 MB / 0.5348 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4881, allocations: 0 / 0.5348 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.4883, allocations: 35.7 kB / 0.5349 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.4883, allocations: 3.844 kB / 0.5349 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.4883, allocations: 0.6875 kB / 0.5349 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4883, allocations: 0 / 0.5349 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4883, allocations: 3.344 kB / 0.5349 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.4914, allocations: 1.138 MB / 0.536 GB, free: 76.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.4915, allocations: 106.8 kB / 0.5361 GB, free: 76.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.4916, allocations: 3.375 kB / 0.5361 GB, free: 76.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.4921, allocations: 120.1 kB / 0.5362 GB, free: 76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/0.4924, allocations: 129.5 kB / 0.5363 GB, free: 76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.4924, allocations: 3.875 kB / 0.5363 GB, free: 76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002446/0.4927, allocations: 265.7 kB / 0.5366 GB, free: 75.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4927, allocations: 3.656 kB / 0.5366 GB, free: 75.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000366/0.4931, allocations: 63.78 kB / 0.5366 GB, free: 75.91 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.003701/0.4968, allocations: 1.885 MB / 0.5385 GB, free: 75.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.4971, allocations: 154.6 kB / 0.5386 GB, free: 75.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4971, allocations: 3.375 kB / 0.5386 GB, free: 75.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.4972, allocations: 116 kB / 0.5388 GB, free: 75.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.4975, allocations: 28.56 kB / 0.5388 GB, free: 75.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.499, allocations: 0.5753 MB / 0.5393 GB, free: 74.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.4992, allocations: 0.7656 MB / 0.5401 GB, free: 74.15 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.4994, allocations: 41.2 kB / 0.5401 GB, free: 74.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.4995, allocations: 87.66 kB / 0.5402 GB, free: 74.14 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4995, allocations: 4 kB / 0.5402 GB, free: 74.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02509/0.5246, allocations: 5.749 MB / 0.5458 GB, free: 68.7 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.5249, allocations: 171.6 kB / 0.546 GB, free: 68.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.398, allocations: 0 / 0.546 GB, free: 68.5 MB / 362.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)