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.001067/0.001067, allocations: 88.45 kB / 16.71 MB, free: 6.633 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.001335/0.001335, allocations: 174.2 kB / 17.62 MB, free: 6.156 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.427/1.427, allocations: 223.3 MB / 241.7 MB, free: 14.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0414/0.0414, allocations: 8.108 MB / 300.9 MB, free: 6.426 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.000325, allocations: 8 kB / 364.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1934, allocations: 52.5 MB / 416.7 MB, free: 24.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002149/0.1956, allocations: 2.522 MB / 419.2 MB, free: 22.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.1972, allocations: 1.106 MB / 420.3 MB, free: 21.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.1974, allocations: 4 kB / 420.3 MB, free: 21.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003567/0.1978, allocations: 119.5 kB / 420.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003636/0.1982, allocations: 123.3 kB / 420.5 MB, free: 20.91 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.001589/0.1998, allocations: 0.9573 MB / 421.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000341/0.2001, allocations: 322.5 kB / 421.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.2003, allocations: 103.5 kB / 421.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.2005, allocations: 119.5 kB / 422 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.2007, allocations: 187.2 kB / 422.2 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.2008, allocations: 16 kB / 422.2 MB, free: 19.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004745/0.2012, allocations: 283.7 kB / 422.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.218e-05/0.2013, allocations: 59.69 kB / 422.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2014, allocations: 176.8 kB / 422.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000428/0.2019, allocations: 397 kB / 423.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2019, allocations: 0 / 423.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2019, allocations: 4 kB / 423.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2019, allocations: 0 / 423.1 MB, free: 18.31 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.002051/0.204, allocations: 0.7776 MB / 423.9 MB, free: 17.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.204, allocations: 8.031 kB / 423.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.2041, allocations: 36.56 kB / 424 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.2044, allocations: 283.7 kB / 424.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.801e-05/0.2044, allocations: 80.62 kB / 424.3 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.314e-05/0.2045, allocations: 28.38 kB / 424.3 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005364/0.205, allocations: 382.6 kB / 424.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.2051, allocations: 15.86 kB / 424.7 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.2051, allocations: 12 kB / 424.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2051, allocations: 8 kB / 424.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.2056, allocations: 358.5 kB / 425.1 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.2071, allocations: 1.374 MB / 426.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009535/0.208, allocations: 0.5471 MB / 427 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.2083, allocations: 234.1 kB / 427.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.2084, allocations: 12.42 kB / 427.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004591/0.2088, allocations: 313.3 kB / 427.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.194e-06/0.2089, allocations: 0 / 427.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002901/0.2118, allocations: 1.156 MB / 428.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.2118, allocations: 63.84 kB / 428.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.212, allocations: 202.1 kB / 429 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.212, allocations: 37.7 kB / 429 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.2121, allocations: 144.8 kB / 429.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.883e-05/0.2122, allocations: 165.6 kB / 429.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.984e-05/0.2123, allocations: 57.62 kB / 429.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.097e-05/0.2123, allocations: 338.8 kB / 429.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.2126, allocations: 201.1 kB / 429.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.2129, allocations: 262.3 kB / 430.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004117/0.217, allocations: 1.266 MB / 431.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2171, allocations: 0 / 431.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001543/0.2186, allocations: 0.7919 MB / 432.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.2187, allocations: 8.125 kB / 432.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2187, allocations: 0 / 432.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.2198, allocations: 311.7 kB / 432.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.2201, allocations: 75.83 kB / 432.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/0.2234, allocations: 2.731 MB / 435.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.2237, allocations: 35.66 kB / 435.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.2238, allocations: 27.98 kB / 435.4 MB, free: 5.539 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.000213/0.224, allocations: 166.1 kB / 435.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.2241, allocations: 27.62 kB / 435.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.2257, allocations: 0.8077 MB / 436.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2257, allocations: 8 kB / 436.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.2257, allocations: 0 / 436.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2257, allocations: 3.984 kB / 436.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.2278, allocations: 1.365 MB / 437.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.2278, allocations: 0 / 437.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.228, allocations: 63.84 kB / 437.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.2291, allocations: 308.4 kB / 438.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.2292, allocations: 16 kB / 438.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/0.2322, allocations: 2.68 MB / 440.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2322, allocations: 0 / 440.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.2344, allocations: 1.112 MB / 441.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.2345, allocations: 128.6 kB / 442.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.2346, allocations: 7.938 kB / 442.1 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003036/0.2349, allocations: 27.98 kB / 442.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.2351, allocations: 44.62 kB / 442.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.391e-05/0.2351, allocations: 23.98 kB / 442.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.2353, allocations: 148.3 kB / 442.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2353, allocations: 0 / 442.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006272/0.2359, allocations: 167.9 kB / 442.5 MB, free: 14.21 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.0005032/0.2364, allocations: 209.4 kB / 442.7 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.238, allocations: 0.7637 MB / 443.4 MB, free: 13.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.238, allocations: 0 / 443.4 MB, free: 13.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.239, allocations: 0.5174 MB / 444 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.2395, allocations: 39.92 kB / 444 MB, free: 12.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.2408, allocations: 0.8474 MB / 444.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.2411, allocations: 0.7864 MB / 445.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.2412, allocations: 39.42 kB / 445.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2412, allocations: 0 / 445.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of Templates: time 0.0113/0.2526, allocations: 6.875 MB / 452.6 MB, free: 4.074 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)