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.001242/0.001242, allocations: 178.1 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.444/1.444, allocations: 223.2 MB / 239.7 MB, free: 1.785 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.0009902/0.0009901, allocations: 99.81 kB / 290.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04173/0.04173, allocations: 8.098 MB / 350.1 MB, free: 2.734 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.000323, allocations: 10.3 kB / 413.2 MB, free: 89.63 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.12, allocations: 52.52 MB / 465.7 MB, free: 41.98 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2805/0.4006, allocations: 81.13 MB / 0.534 GB, free: 16.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4009, allocations: 67.52 kB / 0.5341 GB, free: 16.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01683/0.4177, allocations: 5.989 MB / 0.5399 GB, free: 32.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4177, allocations: 0 / 0.5399 GB, free: 32.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.556e-05/0.4178, allocations: 3.875 kB / 0.5399 GB, free: 32.09 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001684/0.4195, allocations: 0.8045 MB / 0.5407 GB, free: 31.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4195, allocations: 7.75 kB / 0.5407 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.299e-05/0.4196, allocations: 53.89 kB / 0.5408 GB, free: 31.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.799e-05/0.4197, allocations: 31.25 kB / 0.5408 GB, free: 31.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.4203, allocations: 373.2 kB / 0.5412 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.4204, allocations: 18.19 kB / 0.5412 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.4204, allocations: 19.56 kB / 0.5412 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004679/0.4209, allocations: 281.8 kB / 0.5415 GB, free: 31.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4209, allocations: 0 / 0.5415 GB, free: 31.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.4209, allocations: 7.844 kB / 0.5415 GB, free: 31.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.4209, allocations: 7.812 kB / 0.5415 GB, free: 31.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.4213, allocations: 199.2 kB / 0.5417 GB, free: 31.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.4226, allocations: 0.8654 MB / 0.5425 GB, free: 30.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005303/0.4232, allocations: 309 kB / 0.5428 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.641e-05/0.4232, allocations: 5.266 kB / 0.5428 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.4232, allocations: 30.56 kB / 0.5428 GB, free: 30.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.4232, allocations: 0 / 0.5428 GB, free: 30.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006861/0.4239, allocations: 299.7 kB / 0.5431 GB, free: 30.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.424, allocations: 206.2 kB / 0.5433 GB, free: 30.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/0.4244, allocations: 343.7 kB / 0.5437 GB, free: 30.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.4244, allocations: 36.19 kB / 0.5437 GB, free: 30.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.398e-05/0.4245, allocations: 169.6 kB / 0.5439 GB, free: 30.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.4245, allocations: 46.77 kB / 0.5439 GB, free: 30.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.4246, allocations: 0 / 0.5439 GB, free: 30.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.4246, allocations: 341.9 kB / 0.5442 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.4248, allocations: 89.08 kB / 0.5443 GB, free: 29.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.425, allocations: 148.6 kB / 0.5444 GB, free: 29.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.4252, allocations: 68.34 kB / 0.5445 GB, free: 29.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4252, allocations: 0 / 0.5445 GB, free: 29.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004476/0.4257, allocations: 219.7 kB / 0.5447 GB, free: 29.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.4257, allocations: 7.875 kB / 0.5447 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4257, allocations: 0 / 0.5447 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.4257, allocations: 0 / 0.5447 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.4259, allocations: 33.64 kB / 0.5448 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.4259, allocations: 4.031 kB / 0.5448 GB, free: 29.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.4265, allocations: 120.4 kB / 0.5449 GB, free: 29.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.4265, allocations: 7.812 kB / 0.5449 GB, free: 29.65 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(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.0002348/0.4268, allocations: 168.8 kB / 0.545 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.4268, allocations: 27.52 kB / 0.5451 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005871/0.4274, allocations: 251.1 kB / 0.5453 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4274, allocations: 3.812 kB / 0.5453 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4275, allocations: 1.922 kB / 0.5453 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4275, allocations: 3.938 kB / 0.5453 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009112/0.4284, allocations: 0.6603 MB / 0.546 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4284, allocations: 0 / 0.546 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.4286, allocations: 30.19 kB / 0.546 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4286, allocations: 0 / 0.546 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.4286, allocations: 7.094 kB / 0.546 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.4286, allocations: 0 / 0.546 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4286, allocations: 3.984 kB / 0.546 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006679/0.4293, allocations: 453.1 kB / 0.5464 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.4294, allocations: 111.3 kB / 0.5465 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.4295, allocations: 7.125 kB / 0.5466 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.43, allocations: 113.2 kB / 0.5467 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.4302, allocations: 128.9 kB / 0.5468 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.4303, allocations: 9.172 kB / 0.5468 GB, free: 28.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000304/0.4306, allocations: 276 kB / 0.5471 GB, free: 28.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4306, allocations: 0 / 0.5471 GB, free: 28.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003517/0.4309, allocations: 69.69 kB / 0.5471 GB, free: 28.77 MB / 378.7 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.001525/0.4325, allocations: 1.157 MB / 0.5483 GB, free: 28.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004669/0.433, allocations: 218.2 kB / 0.5485 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.433, allocations: 0 / 0.5485 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.4332, allocations: 123.2 kB / 0.5486 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.4335, allocations: 24.86 kB / 0.5486 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003581/0.4371, allocations: 2.153 MB / 0.5507 GB, free: 27.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.4374, allocations: 0.7675 MB / 0.5515 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.4376, allocations: 33.73 kB / 0.5515 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.4378, allocations: 84.39 kB / 0.5516 GB, free: 26.54 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4378, allocations: 0 / 0.5516 GB, free: 26.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.4598, allocations: 6.764 MB / 0.5582 GB, free: 26.05 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.46, allocations: 224.3 kB / 0.5584 GB, free: 25.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.629, allocations: 0 / 0.5584 GB, free: 25.8 MB / 378.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)