Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 178.8 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.344/1.344, allocations: 223.2 MB / 239.7 MB, free: 1.77 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.0009227/0.0009227, allocations: 97.78 kB / 290.9 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05194/0.05194, allocations: 8.098 MB / 350.1 MB, free: 2.715 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003175/0.0003174, allocations: 9.031 kB / 413.1 MB, free: 89.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.09216, allocations: 52.53 MB / 465.6 MB, free: 42.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3614/0.4536, allocations: 86.58 MB / 0.5393 GB, free: 16.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.4539, allocations: 70.95 kB / 0.5393 GB, free: 16.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05226/0.5062, allocations: 23.01 MB / 0.5618 GB, free: 30.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.5062, allocations: 5.25 kB / 0.5618 GB, free: 30.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.282e-05/0.5062, allocations: 21.78 kB / 0.5618 GB, free: 30.4 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003279/0.5095, allocations: 1.579 MB / 0.5634 GB, free: 29.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.5096, allocations: 8.625 kB / 0.5634 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.5099, allocations: 149.9 kB / 0.5635 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001472/0.5113, allocations: 0.9637 MB / 0.5644 GB, free: 28.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.5115, allocations: 222 kB / 0.5647 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.299e-05/0.5116, allocations: 61.58 kB / 0.5647 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.5129, allocations: 0.8282 MB / 0.5655 GB, free: 28.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.5129, allocations: 5.156 kB / 0.5655 GB, free: 28.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/0.513, allocations: 27.44 kB / 0.5656 GB, free: 28.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.513, allocations: 14.78 kB / 0.5656 GB, free: 28.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.5142, allocations: 0.6922 MB / 0.5662 GB, free: 28.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005179/0.5193, allocations: 3.693 MB / 0.5699 GB, free: 26.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/0.5214, allocations: 1.438 MB / 0.5713 GB, free: 26.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.681e-05/0.5215, allocations: 26.86 kB / 0.5713 GB, free: 26.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008064/0.5223, allocations: 0.5029 MB / 0.5718 GB, free: 25.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 2.294e-06/0.5223, allocations: 0 / 0.5718 GB, free: 25.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=89): time 0.006461/0.5288, allocations: 2.319 MB / 0.574 GB, free: 25.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.5289, allocations: 247.8 kB / 0.5743 GB, free: 24.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.5309, allocations: 1.626 MB / 0.5759 GB, free: 24.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.978e-05/0.531, allocations: 40.33 kB / 0.5759 GB, free: 24.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.5314, allocations: 494.8 kB / 0.5764 GB, free: 24.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.5316, allocations: 292.5 kB / 0.5767 GB, free: 24.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.5316, allocations: 15 kB / 0.5767 GB, free: 24.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.5317, allocations: 340.1 kB / 0.577 GB, free: 23.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005635/0.5323, allocations: 352.2 kB / 0.5773 GB, free: 23.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006213/0.5329, allocations: 485.5 kB / 0.5778 GB, free: 23.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006069/0.5336, allocations: 387.4 kB / 0.5782 GB, free: 23.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5336, allocations: 4 kB / 0.5782 GB, free: 23.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00258/0.5362, allocations: 1.321 MB / 0.5795 GB, free: 23.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.5362, allocations: 11.77 kB / 0.5795 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.5362, allocations: 0 / 0.5795 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001655/0.5379, allocations: 0.5515 MB / 0.58 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.5383, allocations: 99.62 kB / 0.5801 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.5397, allocations: 1.213 MB / 0.5813 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007458/0.5405, allocations: 87.91 kB / 0.5814 GB, free: 22.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.936e-05/0.5405, allocations: 30.42 kB / 0.5814 GB, free: 22.43 MB / 378.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,$PRE.delay.y,delay.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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 {12 23} Notification: Performance of prepare postOptimizeDAE: time 0.0009259/0.5415, allocations: 448.2 kB / 0.5818 GB, free: 22.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002702/0.5417, allocations: 120.6 kB / 0.5819 GB, free: 22.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.5442, allocations: 1.395 MB / 0.5833 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.5442, allocations: 11.75 kB / 0.5833 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.5442, allocations: 0 / 0.5833 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.5442, allocations: 3.984 kB / 0.5833 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003906/0.5481, allocations: 2.835 MB / 0.5861 GB, free: 21.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5481, allocations: 0 / 0.5861 GB, free: 21.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003513/0.5485, allocations: 100.3 kB / 0.5862 GB, free: 21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.55, allocations: 0.5339 MB / 0.5867 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.955e-05/0.5501, allocations: 22.83 kB / 0.5867 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/0.5518, allocations: 1.209 MB / 0.5879 GB, free: 20.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5518, allocations: 0 / 0.5879 GB, free: 20.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003247/0.555, allocations: 1.83 MB / 0.5897 GB, free: 19.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006099/0.5557, allocations: 302.4 kB / 0.59 GB, free: 19.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.5558, allocations: 16.53 kB / 0.59 GB, free: 19.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005855/0.5564, allocations: 67.61 kB / 0.5901 GB, free: 19.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.5566, allocations: 74.25 kB / 0.5901 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-05/0.5567, allocations: 25.92 kB / 0.5902 GB, free: 19.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001771/0.5584, allocations: 1.273 MB / 0.5914 GB, free: 19.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5585, allocations: 0 / 0.5914 GB, free: 19.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008235/0.5593, allocations: 261.6 kB / 0.5916 GB, free: 19.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,brk4.BrkOpen,bat.ChargingMode,brk3.BrkOpen,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {12 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007572/0.56, allocations: 316.6 kB / 0.5919 GB, free: 19.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002507/0.5626, allocations: 1.106 MB / 0.593 GB, free: 18.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5626, allocations: 0 / 0.593 GB, free: 18.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.5643, allocations: 0.6899 MB / 0.5937 GB, free: 18.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.5649, allocations: 91.28 kB / 0.5938 GB, free: 18.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004147/0.5691, allocations: 2.831 MB / 0.5966 GB, free: 17.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006442/0.5697, allocations: 1.199 MB / 0.5977 GB, free: 16.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.5702, allocations: 178.7 kB / 0.5979 GB, free: 16.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.5705, allocations: 80.72 kB / 0.598 GB, free: 16.05 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5705, allocations: 0 / 0.598 GB, free: 16.05 MB / 378.7 MB Notification: Performance of Templates: time 0.02319/0.5937, allocations: 14.58 MB / 0.6122 GB, free: 4.523 MB / 378.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)