Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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: translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.388/1.388, allocations: 221.4 MB / 235.1 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000843/0.000843, allocations: 90.81 kB / 286.1 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04023/0.04023, allocations: 8.102 MB / 345.1 MB, free: 1.926 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.693e-05/2.695e-05, allocations: 4 kB / 405.5 MB, free: 61.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07435/0.07439, allocations: 52.52 MB / 458 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2911/0.3655, allocations: 84.11 MB / 0.5294 GB, free: 1.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/0.3658, allocations: 67.88 kB / 0.5295 GB, free: 1.895 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03537/0.4011, allocations: 14.82 MB / 0.5439 GB, free: 5.367 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4012, allocations: 0 / 0.5439 GB, free: 5.367 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.913e-05/0.4012, allocations: 16 kB / 0.5439 GB, free: 5.352 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002095/0.4033, allocations: 1.067 MB / 0.545 GB, free: 4.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.4034, allocations: 8.031 kB / 0.545 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002288/0.4036, allocations: 114.7 kB / 0.5451 GB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.4049, allocations: 0.8578 MB / 0.5459 GB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.329e-05/0.405, allocations: 81.08 kB / 0.546 GB, free: 3.359 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.4051, allocations: 30.83 kB / 0.546 GB, free: 3.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006126/0.4057, allocations: 413.1 kB / 0.5464 GB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.4057, allocations: 4 kB / 0.5464 GB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.4058, allocations: 14.94 kB / 0.5465 GB, free: 3.023 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.4058, allocations: 8 kB / 0.5465 GB, free: 3.016 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.4062, allocations: 284.6 kB / 0.5467 GB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003341/0.4096, allocations: 2.244 MB / 0.5489 GB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006999/0.4103, allocations: 418.3 kB / 0.5493 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.4106, allocations: 184.7 kB / 0.5495 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/0.4107, allocations: 15.7 kB / 0.5495 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.4107, allocations: 38.17 kB / 0.5496 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 3.477e-06/0.4107, allocations: 0 / 0.5496 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001051/0.4118, allocations: 483.4 kB / 0.55 GB, free: 288 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.4119, allocations: 242.2 kB / 0.5502 GB, free: 15.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/0.4139, allocations: 1.57 MB / 0.5518 GB, free: 14.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.612e-05/0.4139, allocations: 33.45 kB / 0.5518 GB, free: 14.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003008/0.4143, allocations: 432.4 kB / 0.5522 GB, free: 14.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/0.4143, allocations: 105.1 kB / 0.5523 GB, free: 14.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.4144, allocations: 3.938 kB / 0.5523 GB, free: 14.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.4145, allocations: 317.5 kB / 0.5526 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.4147, allocations: 117.7 kB / 0.5527 GB, free: 14.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.4149, allocations: 224.7 kB / 0.553 GB, free: 13.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.4151, allocations: 133.6 kB / 0.5531 GB, free: 13.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4151, allocations: 0 / 0.5531 GB, free: 13.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001036/0.4162, allocations: 0.5196 MB / 0.5536 GB, free: 13.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.4162, allocations: 7.953 kB / 0.5536 GB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.4162, allocations: 4 kB / 0.5536 GB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006228/0.4168, allocations: 143 kB / 0.5537 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.4171, allocations: 67.89 kB / 0.5538 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/0.4193, allocations: 1.885 MB / 0.5556 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.4198, allocations: 58.09 kB / 0.5557 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.4198, allocations: 8 kB / 0.5557 GB, free: 11.51 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.4199, allocations: 125.4 kB / 0.5558 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.4201, allocations: 106.7 kB / 0.5559 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.4213, allocations: 0.5395 MB / 0.5565 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.4213, allocations: 8 kB / 0.5565 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.4213, allocations: 0 / 0.5565 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4213, allocations: 3.984 kB / 0.5565 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.4236, allocations: 1.572 MB / 0.558 GB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.4236, allocations: 7.984 kB / 0.558 GB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.4239, allocations: 55.91 kB / 0.5581 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005594/0.4245, allocations: 140.2 kB / 0.5582 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.4245, allocations: 7.875 kB / 0.5582 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001878/0.4264, allocations: 1.877 MB / 0.56 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4264, allocations: 0 / 0.56 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.4277, allocations: 0.7585 MB / 0.5608 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.4282, allocations: 276.4 kB / 0.561 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.81e-05/0.4283, allocations: 7.188 kB / 0.5611 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.4287, allocations: 47.28 kB / 0.5611 GB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.53e-05/0.4288, allocations: 30.95 kB / 0.5611 GB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.4288, allocations: 11.98 kB / 0.5611 GB, free: 6.969 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00156/0.4304, allocations: 1.224 MB / 0.5623 GB, free: 6.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4304, allocations: 4 kB / 0.5623 GB, free: 6.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006181/0.431, allocations: 169.3 kB / 0.5625 GB, free: 5.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007066/0.4317, allocations: 281.4 kB / 0.5628 GB, free: 5.719 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009365/0.4327, allocations: 464.2 kB / 0.5632 GB, free: 5.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4327, allocations: 0 / 0.5632 GB, free: 5.375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005506/0.4333, allocations: 311.5 kB / 0.5635 GB, free: 5.086 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.4338, allocations: 84.3 kB / 0.5636 GB, free: 5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.4365, allocations: 1.547 MB / 0.5651 GB, free: 3.418 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006779/0.4372, allocations: 1.092 MB / 0.5662 GB, free: 2.301 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003739/0.4376, allocations: 149.1 kB / 0.5663 GB, free: 2.156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.4378, allocations: 55.42 kB / 0.5664 GB, free: 2.102 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4378, allocations: 0 / 0.5664 GB, free: 2.102 MB / 378.7 MB Notification: Performance of Templates: time 0.01856/0.4563, allocations: 10.96 MB / 0.5771 GB, free: 7.145 MB / 394.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)