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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009158/0.0009156, allocations: 95.81 kB / 15.73 MB, free: 440 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.001189/0.001189, allocations: 178.2 kB / 16.61 MB, free: 6.426 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.369/1.369, allocations: 223.2 MB / 240.6 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.182/0.182, allocations: 8.089 MB / 299.7 MB, free: 2.938 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003091, allocations: 11.98 kB / 362.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.09957, allocations: 52.52 MB / 415.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002618/0.1022, allocations: 2.321 MB / 417.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1039, allocations: 1.04 MB / 418.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.104, allocations: 4 kB / 418.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.1044, allocations: 99.45 kB / 418.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004077/0.1048, allocations: 139.6 kB / 418.9 MB, free: 5.109 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. [/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.002318/0.1072, allocations: 0.8137 MB / 419.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003392/0.1075, allocations: 227.5 kB / 419.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.1077, allocations: 93.8 kB / 420 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.1079, allocations: 123.5 kB / 420.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.1081, allocations: 167.4 kB / 420.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.38e-05/0.1082, allocations: 12 kB / 420.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004249/0.1086, allocations: 239.6 kB / 420.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.648e-05/0.1087, allocations: 55.8 kB / 420.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.197e-05/0.1087, allocations: 81.52 kB / 420.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.1092, allocations: 383.4 kB / 421 MB, free: 2.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1092, allocations: 0 / 421 MB, free: 2.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1092, allocations: 4 kB / 421 MB, free: 2.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.1092, allocations: 0 / 421 MB, free: 2.93 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002131/0.1114, allocations: 0.7852 MB / 421.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1114, allocations: 8.031 kB / 421.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.506e-05/0.1115, allocations: 43.58 kB / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.1119, allocations: 270.5 kB / 422.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-05/0.112, allocations: 80.06 kB / 422.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.1121, allocations: 35.98 kB / 422.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/0.1127, allocations: 378 kB / 422.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1127, allocations: 4 kB / 422.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.1127, allocations: 8 kB / 422.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1127, allocations: 11.95 kB / 422.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.1133, allocations: 366.4 kB / 423 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2095/0.3228, allocations: 1.362 MB / 424.4 MB, free: 40.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.324, allocations: 0.5413 MB / 424.9 MB, free: 40.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.077e-05/0.324, allocations: 11.91 kB / 424.9 MB, free: 40.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000551/0.3246, allocations: 310.6 kB / 425.2 MB, free: 40.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.346e-06/0.3246, allocations: 0 / 425.2 MB, free: 40.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002999/0.3276, allocations: 1.143 MB / 426.4 MB, free: 40.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.3277, allocations: 58.41 kB / 426.4 MB, free: 40.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.3279, allocations: 205.5 kB / 426.6 MB, free: 40.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.3279, allocations: 35.55 kB / 426.7 MB, free: 40.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.328, allocations: 148.3 kB / 426.8 MB, free: 40.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.927e-05/0.3281, allocations: 167.4 kB / 427 MB, free: 40.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.3282, allocations: 12.06 kB / 427 MB, free: 40.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.3282, allocations: 335.1 kB / 427.3 MB, free: 39.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.3285, allocations: 197.9 kB / 427.5 MB, free: 39.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.3288, allocations: 257.8 kB / 427.8 MB, free: 39.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003198/0.3292, allocations: 219.2 kB / 428 MB, free: 39.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3292, allocations: 3.953 kB / 428 MB, free: 39.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001458/0.3306, allocations: 0.7784 MB / 428.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3307, allocations: 8.141 kB / 428.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3307, allocations: 0 / 428.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.3319, allocations: 312 kB / 429.1 MB, free: 39.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.3322, allocations: 68.83 kB / 429.1 MB, free: 39.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.3359, allocations: 2.804 MB / 431.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.3362, allocations: 47.47 kB / 432 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.3363, allocations: 29.2 kB / 432 MB, free: 38.45 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: myFailure.seed:DISCRETE(fixed = true protected = true ) type: Integer myFailure.F:VARIABLE(start = 0.0 fixed = true ) "cumulative distribution function" type: Real myFailure.r:DISCRETE(fixed = true ) "random numbers" type: Real myFailure.componentIsWorking:DISCRETE(start = true fixed = true ) type: Boolean 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,$whenCondition3,$whenCondition2,$whenCondition1,n.y,myFailure.y,$PRE.myFailure.componentIsWorking,myFailure.componentIsWorking,$PRE.myFailure.r,myFailure.r) * 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 (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 {6 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.3365, allocations: 160.2 kB / 432.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.3366, allocations: 31.41 kB / 432.2 MB, free: 38.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.3383, allocations: 0.8007 MB / 433 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3383, allocations: 6.281 kB / 433 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3383, allocations: 4.703 kB / 433 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.3383, allocations: 6.422 kB / 433 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002047/0.3404, allocations: 1.365 MB / 434.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3404, allocations: 0 / 434.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.3406, allocations: 58.45 kB / 434.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.3417, allocations: 302.7 kB / 434.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/0.3417, allocations: 11.03 kB / 434.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00324/0.345, allocations: 2.758 MB / 437.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.345, allocations: 0 / 437.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.3469, allocations: 1.112 MB / 438.6 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.984e-05/0.347, allocations: 114.1 kB / 438.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.347, allocations: 10.61 kB / 438.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.3473, allocations: 24.55 kB / 438.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.3474, allocations: 45.44 kB / 438.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-05/0.3475, allocations: 22.27 kB / 438.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001374/0.3476, allocations: 140.4 kB / 439 MB, free: 34.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3476, allocations: 0 / 439 MB, free: 34.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007006/0.3484, allocations: 165.6 kB / 439.1 MB, free: 34.4 MB / 350.1 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 (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 {6 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005302/0.3489, allocations: 218.8 kB / 439.3 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.3503, allocations: 0.7641 MB / 440.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3503, allocations: 0 / 440.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008234/0.3511, allocations: 0.5112 MB / 440.6 MB, free: 33.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.3514, allocations: 35.12 kB / 440.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.3524, allocations: 0.7831 MB / 441.4 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.3527, allocations: 0.796 MB / 442.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.3528, allocations: 49.5 kB / 442.3 MB, free: 32.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.617e-05/0.3529, allocations: 41.75 kB / 442.3 MB, free: 32.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3529, allocations: 0 / 442.3 MB, free: 32.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01197/0.3649, allocations: 7.397 MB / 449.7 MB, free: 31.9 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: