Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 172.2 kB / 16.8 MB, free: 5.02 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.316/1.316, allocations: 223.3 MB / 240.8 MB, free: 9.984 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.0007915/0.0007918, allocations: 103.2 kB / 292 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04949/0.04949, allocations: 8.097 MB / 351.2 MB, free: 15.35 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004913/0.0004914, allocations: 12 kB / 414.4 MB, free: 57.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.09916, allocations: 52.52 MB / 466.9 MB, free: 4.707 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4467, allocations: 85.26 MB / 0.5392 GB, free: 336 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.447, allocations: 71.66 kB / 0.5393 GB, free: 300 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05779/0.5048, allocations: 23.74 MB / 0.5625 GB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5048, allocations: 0 / 0.5625 GB, free: 11.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.909e-05/0.5049, allocations: 20 kB / 0.5625 GB, free: 11.12 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004111/0.509, allocations: 1.671 MB / 0.5641 GB, free: 9.391 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.5091, allocations: 8.031 kB / 0.5641 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.5094, allocations: 151.2 kB / 0.5643 GB, free: 9.234 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.5111, allocations: 1.041 MB / 0.5653 GB, free: 8.141 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.5113, allocations: 182.4 kB / 0.5655 GB, free: 7.934 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.5114, allocations: 60.31 kB / 0.5655 GB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.513, allocations: 0.8635 MB / 0.5664 GB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.513, allocations: 3.938 kB / 0.5664 GB, free: 6.977 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.5131, allocations: 24 kB / 0.5664 GB, free: 6.953 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.5131, allocations: 20 kB / 0.5664 GB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.5144, allocations: 0.7236 MB / 0.5671 GB, free: 6.211 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00669/0.5211, allocations: 4.296 MB / 0.5713 GB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.5233, allocations: 1.303 MB / 0.5726 GB, free: 276 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009573/0.5243, allocations: 0.5627 MB / 0.5731 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.673e-05/0.5244, allocations: 24.92 kB / 0.5732 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.5245, allocations: 43.5 kB / 0.5732 GB, free: 15.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 3.256e-06/0.5245, allocations: 3.938 kB / 0.5732 GB, free: 15.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.01012/0.5346, allocations: 3.122 MB / 0.5762 GB, free: 12.47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.5348, allocations: 248.3 kB / 0.5765 GB, free: 12.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.5378, allocations: 1.789 MB / 0.5782 GB, free: 10.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001508/0.538, allocations: 41.7 kB / 0.5783 GB, free: 10.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004288/0.5384, allocations: 494.1 kB / 0.5787 GB, free: 9.836 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.5387, allocations: 287.7 kB / 0.579 GB, free: 9.551 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.5388, allocations: 16 kB / 0.579 GB, free: 9.535 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.5389, allocations: 333.9 kB / 0.5794 GB, free: 9.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007287/0.5397, allocations: 401.8 kB / 0.5797 GB, free: 8.812 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000823/0.5405, allocations: 0.5111 MB / 0.5802 GB, free: 8.27 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007171/0.5477, allocations: 2.225 MB / 0.5824 GB, free: 6.035 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5477, allocations: 0 / 0.5824 GB, free: 6.035 MB / 394.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003259/0.551, allocations: 1.449 MB / 0.5838 GB, free: 4.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.551, allocations: 4 kB / 0.5838 GB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.551, allocations: 4 kB / 0.5838 GB, free: 4.566 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002733/0.5538, allocations: 0.8088 MB / 0.5846 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.5542, allocations: 103.9 kB / 0.5847 GB, free: 3.652 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.5567, allocations: 1.472 MB / 0.5862 GB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008956/0.5576, allocations: 79.55 kB / 0.5862 GB, free: 2.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.5577, allocations: 31.98 kB / 0.5863 GB, free: 2.039 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.0009151/0.5586, allocations: 449.6 kB / 0.5867 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.5589, allocations: 126.4 kB / 0.5868 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/0.5615, allocations: 1.468 MB / 0.5882 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.5615, allocations: 8 kB / 0.5883 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5615, allocations: 0 / 0.5883 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.5615, allocations: 7.922 kB / 0.5883 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00575/0.5673, allocations: 3.379 MB / 0.5916 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.5674, allocations: 0 / 0.5916 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.5678, allocations: 111.8 kB / 0.5917 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/0.5705, allocations: 0.7734 MB / 0.5924 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.302e-05/0.5706, allocations: 23.98 kB / 0.5924 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.5729, allocations: 1.459 MB / 0.5939 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.573, allocations: 0 / 0.5939 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003842/0.5768, allocations: 2.105 MB / 0.5959 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000621/0.5774, allocations: 311.4 kB / 0.5962 GB, free: 7.684 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.5776, allocations: 19.94 kB / 0.5962 GB, free: 7.664 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005861/0.5782, allocations: 63.89 kB / 0.5963 GB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.5784, allocations: 72.95 kB / 0.5964 GB, free: 7.531 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/0.5784, allocations: 24 kB / 0.5964 GB, free: 7.508 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001827/0.5803, allocations: 1.29 MB / 0.5977 GB, free: 6.211 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5803, allocations: 0 / 0.5977 GB, free: 6.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007489/0.581, allocations: 267.7 kB / 0.5979 GB, free: 5.949 MB / 410.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: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * 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 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007334/0.5818, allocations: 317.1 kB / 0.5982 GB, free: 5.719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003318/0.5851, allocations: 1.296 MB / 0.5995 GB, free: 4.418 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.5851, allocations: 12.06 kB / 0.5995 GB, free: 4.406 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002381/0.5875, allocations: 0.8484 MB / 0.6003 GB, free: 3.562 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.5886, allocations: 115.2 kB / 0.6004 GB, free: 3.449 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005028/0.5936, allocations: 2.846 MB / 0.6032 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008087/0.5944, allocations: 1.177 MB / 0.6044 GB, free: 15.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005689/0.595, allocations: 183.2 kB / 0.6045 GB, free: 15.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.5953, allocations: 83.42 kB / 0.6046 GB, free: 15.11 MB / 426.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5953, allocations: 3.938 kB / 0.6046 GB, free: 15.1 MB / 426.7 MB Notification: Performance of Templates: time 0.02625/0.6215, allocations: 15.81 MB / 0.6201 GB, free: 15.29 MB / 442.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)