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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000826/0.000826, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008824/0.0008824, allocations: 177.4 kB / 16.63 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 223.3 MB / 240.7 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2514/0.2514, allocations: 8.083 MB / 299.9 MB, free: 2.828 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003232, allocations: 8 kB / 362.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1214, allocations: 52.53 MB / 415.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005487/0.1269, allocations: 3.973 MB / 419.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002986/0.1299, allocations: 1.609 MB / 421 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003438/0.1303, allocations: 16 kB / 421 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008413/0.1311, allocations: 430.6 kB / 421.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006547/0.1318, allocations: 350.4 kB / 421.7 MB, free: 2.336 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.1335, allocations: 0.8529 MB / 422.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008952/0.1344, allocations: 0.7281 MB / 423.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004122/0.1348, allocations: 257.4 kB / 423.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.1351, allocations: 306.8 kB / 423.9 MB, free: 196 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1992/0.3344, allocations: 493.1 kB / 424.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.3347, allocations: 35 kB / 424.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009646/0.3356, allocations: 252.7 kB / 424.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003568/0.336, allocations: 378.2 kB / 425 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002714/0.3363, allocations: 235.9 kB / 425.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.3374, allocations: 1.265 MB / 426.5 MB, free: 35.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3375, allocations: 0.5469 kB / 426.5 MB, free: 35.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3375, allocations: 0 / 426.5 MB, free: 35.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.3375, allocations: 3.219 kB / 426.5 MB, free: 35.1 MB / 350.1 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.003429/0.3409, allocations: 1.697 MB / 428.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.341, allocations: 13.3 kB / 428.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.3412, allocations: 150.9 kB / 428.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.3423, allocations: 0.92 MB / 429.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.3424, allocations: 220.5 kB / 429.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/0.3425, allocations: 59.97 kB / 429.6 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.3437, allocations: 0.8395 MB / 430.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.3438, allocations: 1.875 kB / 430.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.924e-05/0.3438, allocations: 29.47 kB / 430.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.3438, allocations: 16.42 kB / 430.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009692/0.3448, allocations: 0.6857 MB / 431.1 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004168/0.349, allocations: 3.585 MB / 434.7 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.3508, allocations: 1.443 MB / 436.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006909/0.3515, allocations: 0.5073 MB / 436.7 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001416/0.3517, allocations: 99.81 kB / 436.8 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008034/0.3525, allocations: 0.5549 MB / 437.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.285e-06/0.3525, allocations: 0 / 437.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.006612/0.3591, allocations: 2.618 MB / 439.9 MB, free: 31.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.3592, allocations: 270.8 kB / 440.2 MB, free: 31.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.3612, allocations: 1.786 MB / 442 MB, free: 30.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-05/0.3613, allocations: 44.48 kB / 442 MB, free: 30.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.3617, allocations: 487.7 kB / 442.5 MB, free: 30.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.3618, allocations: 292.7 kB / 442.8 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.3619, allocations: 19.19 kB / 442.8 MB, free: 30.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/0.362, allocations: 338.2 kB / 443.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005496/0.3625, allocations: 359.6 kB / 443.5 MB, free: 29.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006136/0.3631, allocations: 0.5023 MB / 444 MB, free: 29.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/0.3637, allocations: 395.1 kB / 444.4 MB, free: 29.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3637, allocations: 3.312 kB / 444.4 MB, free: 29.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002737/0.3665, allocations: 1.441 MB / 445.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3665, allocations: 9.719 kB / 445.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3665, allocations: 0 / 445.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/0.3681, allocations: 0.5565 MB / 446.4 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003865/0.3685, allocations: 118.2 kB / 446.5 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.3698, allocations: 1.2 MB / 447.7 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005733/0.3704, allocations: 87.36 kB / 447.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/0.3705, allocations: 27.22 kB / 447.8 MB, free: 27.85 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false 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: 7 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,n2.y,n1.y,o.y,$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 (68): * Single equations (assignments): 67 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0006548/0.3712, allocations: 455.8 kB / 448.3 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.3713, allocations: 119.5 kB / 448.4 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.3742, allocations: 1.53 MB / 449.9 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.3742, allocations: 9.719 kB / 449.9 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3742, allocations: 0 / 449.9 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3742, allocations: 3.562 kB / 449.9 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004816/0.379, allocations: 3.172 MB / 453.1 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/0.3791, allocations: 1.5 kB / 453.1 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.3795, allocations: 112.3 kB / 453.2 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.381, allocations: 0.5389 MB / 453.7 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-05/0.3811, allocations: 22.33 kB / 453.8 MB, free: 25.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.3824, allocations: 1.168 MB / 454.9 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3824, allocations: 0 / 454.9 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.3861, allocations: 2.026 MB / 457 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005276/0.3867, allocations: 281.2 kB / 457.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003093/0.387, allocations: 21.72 kB / 457.3 MB, free: 23.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006664/0.3877, allocations: 67.78 kB / 457.3 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.3878, allocations: 75.19 kB / 457.4 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-05/0.3879, allocations: 26.09 kB / 457.4 MB, free: 23.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002143/0.3901, allocations: 1.285 MB / 458.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3901, allocations: 4 kB / 458.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001321/0.3914, allocations: 245.5 kB / 459 MB, free: 22.8 MB / 350.1 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: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,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 (64): * Single equations (assignments): 61 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007952/0.3922, allocations: 296.1 kB / 459.2 MB, free: 22.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.3953, allocations: 1.118 MB / 460.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.3953, allocations: 2.5 kB / 460.4 MB, free: 22.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001992/0.3973, allocations: 0.6846 MB / 461 MB, free: 22.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008726/0.3982, allocations: 115.8 kB / 461.2 MB, free: 22.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004856/0.4031, allocations: 2.782 MB / 463.9 MB, free: 20.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/0.4038, allocations: 1.173 MB / 465.1 MB, free: 19.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004896/0.4043, allocations: 173.4 kB / 465.3 MB, free: 19.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.4045, allocations: 73.36 kB / 465.4 MB, free: 19.85 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4045, allocations: 1.062 kB / 465.4 MB, free: 19.85 MB / 350.1 MB Notification: Performance of Templates: time 0.02586/0.4304, allocations: 13.58 MB / 478.9 MB, free: 17.77 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: