Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.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.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized") translateModel(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 186.9 kB / 16.68 MB, free: 5.082 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.307/1.307, allocations: 222.9 MB / 240.3 MB, free: 11.01 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.001005/0.001005, allocations: 101.9 kB / 290.6 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04555/0.04555, allocations: 8.077 MB / 348.8 MB, free: 0.7148 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0009803/0.0009803, allocations: 55.91 kB / 411.1 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08395/0.08494, allocations: 51.51 MB / 462.6 MB, free: 6.074 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003009/0.08798, allocations: 2.893 MB / 465.5 MB, free: 3.164 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.0895, allocations: 1.144 MB / 466.6 MB, free: 2.016 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.08967, allocations: 4 kB / 466.7 MB, free: 2.012 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003068/0.08999, allocations: 123.5 kB / 466.8 MB, free: 1.891 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002446/0.09024, allocations: 123.3 kB / 466.9 MB, free: 1.77 MB / 298.7 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.09173, allocations: 0.9654 MB / 467.9 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003032/0.09205, allocations: 326.5 kB / 468.2 MB, free: 492 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.09222, allocations: 111.5 kB / 468.3 MB, free: 380 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.457e-05/0.09233, allocations: 135.4 kB / 468.4 MB, free: 244 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000199/0.09253, allocations: 199.2 kB / 468.6 MB, free: 44 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.09258, allocations: 20 kB / 468.6 MB, free: 24 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005142/0.0931, allocations: 287.7 kB / 468.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.362e-05/0.09318, allocations: 67.75 kB / 469 MB, free: 15.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.09335, allocations: 163.1 kB / 469.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006751/0.09403, allocations: 0.5339 MB / 469.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.09404, allocations: 0 / 469.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.09405, allocations: 0 / 469.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.09406, allocations: 0 / 469.7 MB, free: 14.98 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002108/0.09618, allocations: 0.8431 MB / 470.5 MB, free: 14.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.09622, allocations: 12.03 kB / 470.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.528e-05/0.09631, allocations: 36.56 kB / 470.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.09661, allocations: 287.7 kB / 470.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.097e-05/0.09669, allocations: 84.61 kB / 470.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.003e-05/0.09675, allocations: 28.38 kB / 471 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005689/0.09732, allocations: 378.6 kB / 471.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.09735, allocations: 3.938 kB / 471.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.09739, allocations: 12 kB / 471.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.0974, allocations: 8 kB / 471.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005313/0.09794, allocations: 370.4 kB / 471.7 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.09951, allocations: 1.367 MB / 473.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1006, allocations: 0.5485 MB / 473.6 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/0.101, allocations: 230.1 kB / 473.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.269e-05/0.1011, allocations: 12.41 kB / 473.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006251/0.1017, allocations: 313.3 kB / 474.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 2.645e-06/0.1017, allocations: 0 / 474.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=52): time 0.003264/0.105, allocations: 1.16 MB / 475.3 MB, free: 9.039 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.1051, allocations: 59.84 kB / 475.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.1053, allocations: 199.3 kB / 475.6 MB, free: 8.766 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.278e-05/0.1054, allocations: 37.7 kB / 475.6 MB, free: 8.723 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1055, allocations: 148.8 kB / 475.8 MB, free: 8.574 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.1057, allocations: 165.6 kB / 475.9 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.1059, allocations: 98.22 kB / 476 MB, free: 8.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.1061, allocations: 338.8 kB / 476.4 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.1064, allocations: 205 kB / 476.6 MB, free: 7.766 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.1068, allocations: 254.4 kB / 476.8 MB, free: 7.504 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004655/0.1115, allocations: 1.27 MB / 478.1 MB, free: 6.219 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1115, allocations: 0 / 478.1 MB, free: 6.219 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001696/0.1132, allocations: 0.7803 MB / 478.9 MB, free: 5.426 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.1133, allocations: 4 kB / 478.9 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1133, allocations: 0 / 478.9 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.1146, allocations: 308.5 kB / 479.2 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.1148, allocations: 75.84 kB / 479.2 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.119, allocations: 2.734 MB / 482 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.1193, allocations: 35.69 kB / 482 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.1194, allocations: 23.98 kB / 482 MB, free: 2.129 MB / 314.7 MB Warning: Assuming fixed start value for the following 4 variables: myFailure.seed:DISCRETE(fixed = true protected = true ) type: Integer myFailure.componentIsWorking:DISCRETE(start = true fixed = true ) type: Boolean myFailure.F:VARIABLE(start = 0.0 fixed = true ) "cumulative distribution function" type: Real myFailure.r:DISCRETE(fixed = true ) "random numbers" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.myFailure.seed,myFailure.seed,$whenCondition4,myFailure.i,$PRE.myFailure.componentIsWorking,$PRE.myFailure.r,myFailure.r,myFailure.componentIsWorking,myFailure.y,n.y,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002655/0.1197, allocations: 170.1 kB / 482.2 MB, free: 1.953 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.037e-05/0.1197, allocations: 31.62 kB / 482.2 MB, free: 1.922 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.1216, allocations: 0.8037 MB / 483 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1216, allocations: 4 kB / 483 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1217, allocations: 0 / 483 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.1217, allocations: 3.984 kB / 483 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1763/0.298, allocations: 1.365 MB / 484.4 MB, free: 28.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.2981, allocations: 0 / 484.4 MB, free: 28.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.2983, allocations: 61.41 kB / 484.5 MB, free: 28.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.2996, allocations: 300 kB / 484.7 MB, free: 28.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/0.2996, allocations: 13.3 kB / 484.8 MB, free: 28.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003365/0.303, allocations: 2.684 MB / 487.4 MB, free: 26.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.303, allocations: 0.6562 kB / 487.4 MB, free: 26.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003119/0.3062, allocations: 2.348 MB / 489.8 MB, free: 25.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.391e-05/0.3062, allocations: 116.4 kB / 489.9 MB, free: 25.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.23e-05/0.3063, allocations: 15.27 kB / 489.9 MB, free: 25.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.3065, allocations: 24.64 kB / 489.9 MB, free: 25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3067, allocations: 44.16 kB / 490 MB, free: 24.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.3067, allocations: 20.11 kB / 490 MB, free: 24.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.3068, allocations: 143.6 kB / 490.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3068, allocations: 0 / 490.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006316/0.3075, allocations: 174.4 kB / 490.3 MB, free: 24.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (myFailure.F) * Number of discrete variables: 9 (n.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,myFailure.y,myFailure.componentIsWorking,myFailure.r,myFailure.seed) * Number of discrete states: 2 (myFailure.r,myFailure.componentIsWorking) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004249/0.3079, allocations: 216.9 kB / 490.5 MB, free: 24.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.3093, allocations: 0.7598 MB / 491.3 MB, free: 24.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3094, allocations: 1.25 kB / 491.3 MB, free: 24.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008581/0.3102, allocations: 0.5275 MB / 491.8 MB, free: 24.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.3106, allocations: 45.06 kB / 491.9 MB, free: 24.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.3117, allocations: 1.083 MB / 492.9 MB, free: 23.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.312, allocations: 0.7985 MB / 493.7 MB, free: 22.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001853/0.3122, allocations: 49.14 kB / 493.8 MB, free: 22.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.08e-05/0.3123, allocations: 34.73 kB / 493.8 MB, free: 22.68 MB / 314.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3123, allocations: 0 / 493.8 MB, free: 22.68 MB / 314.7 MB Notification: Performance of Templates: time 0.01261/0.3249, allocations: 8.218 MB / 0.4903 GB, free: 20.53 MB / 314.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.sim & ./PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1)