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.001338/0.001338, allocations: 176.4 kB / 8.047 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.398/1.398, allocations: 221.5 MB / 230 MB, free: 7.594 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.0009028/0.0009029, allocations: 92.22 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.0449/0.0449, allocations: 8.103 MB / 339.8 MB, free: 7.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.467e-05/2.472e-05, allocations: 1.656 kB / 398.6 MB, free: 49.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 52.52 MB / 451.1 MB, free: 5.422 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4499, allocations: 85.48 MB / 0.524 GB, free: 80.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001654/0.4501, allocations: 64.73 kB / 0.524 GB, free: 80.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0355/0.4856, allocations: 12.77 MB / 0.5365 GB, free: 78.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.4856, allocations: 0 / 0.5365 GB, free: 78.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.152e-05/0.4857, allocations: 11.77 kB / 0.5365 GB, free: 78.37 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001583/0.4873, allocations: 0.8758 MB / 0.5374 GB, free: 77.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.4873, allocations: 15.08 kB / 0.5374 GB, free: 77.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.4874, allocations: 54.75 kB / 0.5374 GB, free: 77.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008608/0.4883, allocations: 0.5239 MB / 0.538 GB, free: 77.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.4883, allocations: 7.656 kB / 0.538 GB, free: 77.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.573e-05/0.4884, allocations: 22.92 kB / 0.538 GB, free: 77.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003754/0.4888, allocations: 215.9 kB / 0.5382 GB, free: 77.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.4892, allocations: 339.9 kB / 0.5385 GB, free: 77.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4893, allocations: 3.938 kB / 0.5385 GB, free: 77.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.4893, allocations: 0 / 0.5385 GB, free: 77.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.4893, allocations: 7.625 kB / 0.5385 GB, free: 77.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.4914, allocations: 1.476 MB / 0.54 GB, free: 76.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.4917, allocations: 235.2 kB / 0.5402 GB, free: 76.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.4918, allocations: 94.58 kB / 0.5403 GB, free: 76.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.874e-05/0.4918, allocations: 0 / 0.5403 GB, free: 76.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.4919, allocations: 37.88 kB / 0.5403 GB, free: 76.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.112e-06/0.4919, allocations: 0 / 0.5403 GB, free: 76.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.003179/0.4951, allocations: 0.9227 MB / 0.5412 GB, free: 75.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.4951, allocations: 209.6 kB / 0.5414 GB, free: 75.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.4957, allocations: 493.2 kB / 0.5419 GB, free: 74.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.4958, allocations: 25.7 kB / 0.5419 GB, free: 74.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.4959, allocations: 269.4 kB / 0.5422 GB, free: 74.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.496, allocations: 35.45 kB / 0.5422 GB, free: 74.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.496, allocations: 0 / 0.5422 GB, free: 74.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.468e-05/0.4961, allocations: 354.8 kB / 0.5425 GB, free: 74.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.4962, allocations: 75.97 kB / 0.5426 GB, free: 74.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.4963, allocations: 191.9 kB / 0.5428 GB, free: 73.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002714/0.4991, allocations: 0.8116 MB / 0.5436 GB, free: 73.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4991, allocations: 4 kB / 0.5436 GB, free: 73.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.003034/0.5021, allocations: 0.9927 MB / 0.5446 GB, free: 72.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.5022, allocations: 8 kB / 0.5446 GB, free: 72.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.5022, allocations: 4 kB / 0.5446 GB, free: 72.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.5022, allocations: 4 kB / 0.5446 GB, free: 72.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.5024, allocations: 47.92 kB / 0.5446 GB, free: 72.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.5024, allocations: 4 kB / 0.5446 GB, free: 72.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/0.5031, allocations: 127.7 kB / 0.5448 GB, free: 71.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/0.5031, allocations: 16 kB / 0.5448 GB, free: 71.88 MB / 362.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 () * 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.0001019/0.5032, allocations: 112.9 kB / 0.5449 GB, free: 71.76 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003008/0.5062, allocations: 0.9442 MB / 0.5458 GB, free: 70.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.5063, allocations: 43.44 kB / 0.5458 GB, free: 70.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003142/0.5095, allocations: 0.9575 MB / 0.5468 GB, free: 69.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5095, allocations: 3.938 kB / 0.5468 GB, free: 69.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5095, allocations: 4 kB / 0.5468 GB, free: 69.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5095, allocations: 0 / 0.5468 GB, free: 69.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003695/0.5132, allocations: 1.428 MB / 0.5482 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5132, allocations: 3.938 kB / 0.5482 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.5134, allocations: 27.98 kB / 0.5482 GB, free: 68.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.5134, allocations: 0 / 0.5482 GB, free: 68.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.5135, allocations: 0 / 0.5482 GB, free: 68.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.5135, allocations: 8.078 kB / 0.5482 GB, free: 68.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5135, allocations: 3.938 kB / 0.5482 GB, free: 68.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.5166, allocations: 1.165 MB / 0.5494 GB, free: 67.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.5168, allocations: 191.5 kB / 0.5495 GB, free: 66.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.805e-05/0.5169, allocations: 4.062 kB / 0.5495 GB, free: 66.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006369/0.5175, allocations: 139.9 kB / 0.5497 GB, free: 66.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.5178, allocations: 123.8 kB / 0.5498 GB, free: 66.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.5178, allocations: 4 kB / 0.5498 GB, free: 66.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004204/0.5182, allocations: 390.9 kB / 0.5502 GB, free: 66.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5182, allocations: 0 / 0.5502 GB, free: 66.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004767/0.5187, allocations: 99.84 kB / 0.5503 GB, free: 66.13 MB / 362.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 () * 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.003999/0.5227, allocations: 1.997 MB / 0.5522 GB, free: 64.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003523/0.5231, allocations: 187.8 kB / 0.5524 GB, free: 64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5231, allocations: 0 / 0.5524 GB, free: 64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.5233, allocations: 123.8 kB / 0.5525 GB, free: 63.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.5238, allocations: 90.64 kB / 0.5526 GB, free: 63.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.5253, allocations: 0.7074 MB / 0.5533 GB, free: 63.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.5256, allocations: 0.8347 MB / 0.5541 GB, free: 62.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002247/0.5258, allocations: 67.25 kB / 0.5542 GB, free: 62.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.526, allocations: 147.4 kB / 0.5543 GB, free: 61.98 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.526, allocations: 0 / 0.5543 GB, free: 61.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02914/0.5552, allocations: 9.184 MB / 0.5633 GB, free: 52.86 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/0.5555, allocations: 175 kB / 0.5634 GB, free: 52.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.719, allocations: 2.391 kB / 0.5635 GB, free: 52.66 MB / 362.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)