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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001192/0.001192, allocations: 106.6 kB / 16.57 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 191.7 kB / 17.49 MB, free: 6.004 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.407/1.407, allocations: 222.9 MB / 241.2 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04518/0.04518, allocations: 8.086 MB / 299.4 MB, free: 6.734 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.91 kB / 361.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1889, allocations: 51.51 MB / 413.2 MB, free: 25.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003103/0.1921, allocations: 2.893 MB / 416.1 MB, free: 22.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.1938, allocations: 1.129 MB / 417.2 MB, free: 21.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1939, allocations: 8 kB / 417.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003369/0.1943, allocations: 115.5 kB / 417.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.1946, allocations: 123.3 kB / 417.5 MB, free: 21.52 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001546/0.1961, allocations: 0.9849 MB / 418.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.1965, allocations: 314.5 kB / 418.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.1967, allocations: 103.5 kB / 418.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1968, allocations: 139.4 kB / 419 MB, free: 19.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.197, allocations: 195.2 kB / 419.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.197, allocations: 20 kB / 419.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004603/0.1975, allocations: 291.7 kB / 419.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.929e-05/0.1976, allocations: 71.69 kB / 419.6 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.1977, allocations: 155.1 kB / 419.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003567/0.198, allocations: 409.1 kB / 420.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1981, allocations: 0 / 420.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1981, allocations: 4 kB / 420.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1981, allocations: 0 / 420.1 MB, free: 18.86 MB / 302.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.002017/0.2001, allocations: 0.8427 MB / 421 MB, free: 17.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2001, allocations: 8.031 kB / 421 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.2003, allocations: 36.56 kB / 421 MB, free: 17.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.2005, allocations: 287.7 kB / 421.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.687e-05/0.2006, allocations: 84.61 kB / 421.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.2006, allocations: 28.38 kB / 421.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005378/0.2012, allocations: 382.6 kB / 421.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2012, allocations: 3.938 kB / 421.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.2013, allocations: 12 kB / 421.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.2013, allocations: 8 kB / 421.8 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004697/0.2017, allocations: 362.5 kB / 422.2 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.2031, allocations: 1.363 MB / 423.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.2041, allocations: 0.5631 MB / 424.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.2044, allocations: 230.1 kB / 424.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.332e-05/0.2045, allocations: 12.41 kB / 424.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004934/0.205, allocations: 309.3 kB / 424.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.625e-06/0.205, allocations: 0 / 424.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002959/0.2079, allocations: 1.156 MB / 425.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.208, allocations: 55.84 kB / 425.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.2081, allocations: 210.1 kB / 426 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.2082, allocations: 37.7 kB / 426.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.2083, allocations: 148.8 kB / 426.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.951e-05/0.2083, allocations: 161.7 kB / 426.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.2085, allocations: 94.23 kB / 426.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.2085, allocations: 338.8 kB / 426.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.2088, allocations: 197.1 kB / 427 MB, free: 11.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.2091, allocations: 266.3 kB / 427.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.2131, allocations: 1.255 MB / 428.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2131, allocations: 4 kB / 428.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001489/0.2146, allocations: 0.7843 MB / 429.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2146, allocations: 5.094 kB / 429.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2146, allocations: 0 / 429.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.2158, allocations: 303.2 kB / 429.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.216, allocations: 83.83 kB / 429.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003162/0.2192, allocations: 2.727 MB / 432.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.2195, allocations: 39.66 kB / 432.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.2196, allocations: 23.98 kB / 432.5 MB, free: 6.016 MB / 302.1 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.0001908/0.2197, allocations: 166.1 kB / 432.6 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.2198, allocations: 31.62 kB / 432.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.2214, allocations: 0.8039 MB / 433.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2214, allocations: 4 kB / 433.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.2214, allocations: 0 / 433.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2215, allocations: 3.984 kB / 433.5 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.2234, allocations: 1.369 MB / 434.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2235, allocations: 0 / 434.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.2237, allocations: 59.84 kB / 434.9 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.2248, allocations: 312.5 kB / 435.2 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.2249, allocations: 8 kB / 435.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.2278, allocations: 2.682 MB / 437.9 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2278, allocations: 128 / 437.9 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.2298, allocations: 1.108 MB / 439 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.287e-05/0.23, allocations: 116.8 kB / 439.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.23, allocations: 15.94 kB / 439.1 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.2303, allocations: 19.98 kB / 439.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.2304, allocations: 48.5 kB / 439.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.2305, allocations: 19.98 kB / 439.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.2306, allocations: 144.3 kB / 439.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2306, allocations: 0 / 439.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006144/0.2312, allocations: 167.9 kB / 439.5 MB, free: 14.7 MB / 318.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 (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.0004524/0.2317, allocations: 222.6 kB / 439.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.2332, allocations: 0.7675 MB / 440.5 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2332, allocations: 0 / 440.5 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009532/0.2342, allocations: 0.5175 MB / 441 MB, free: 13.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.2346, allocations: 35.92 kB / 441.1 MB, free: 13.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.2358, allocations: 0.8092 MB / 441.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.2362, allocations: 0.7903 MB / 442.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2363, allocations: 39.42 kB / 442.7 MB, free: 11.47 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2363, allocations: 0 / 442.7 MB, free: 11.47 MB / 318.1 MB Notification: Performance of Templates: time 0.009424/0.2457, allocations: 6.912 MB / 449.6 MB, free: 4.562 MB / 318.1 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)