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.001166/0.001166, allocations: 100.8 kB / 16.02 MB, free: 6.32 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.001232/0.001232, allocations: 199.2 kB / 16.96 MB, free: 6.141 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.409/1.409, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05663/0.05663, allocations: 8.103 MB / 298.9 MB, free: 6.891 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.89 kB / 361.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2476, allocations: 51.51 MB / 412.7 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.00322/0.2509, allocations: 2.898 MB / 415.6 MB, free: 22.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.2525, allocations: 1.113 MB / 416.8 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2526, allocations: 4 kB / 416.8 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003849/0.253, allocations: 119.5 kB / 416.9 MB, free: 21.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.2534, allocations: 127.2 kB / 417 MB, free: 21.49 MB / 302.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.001497/0.2549, allocations: 0.9459 MB / 417.9 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.2552, allocations: 338.5 kB / 418.3 MB, free: 20.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2554, allocations: 130.9 kB / 418.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.861e-05/0.2555, allocations: 143.4 kB / 418.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.2557, allocations: 207.2 kB / 418.7 MB, free: 19.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.856e-05/0.2557, allocations: 28 kB / 418.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003964/0.2561, allocations: 303.7 kB / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.863e-05/0.2562, allocations: 75.69 kB / 419.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2563, allocations: 167.1 kB / 419.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.2568, allocations: 0.5356 MB / 419.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2568, allocations: 0 / 419.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2568, allocations: 0 / 419.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.2568, allocations: 0 / 419.8 MB, free: 18.64 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.001874/0.2587, allocations: 0.8438 MB / 420.7 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2587, allocations: 12.03 kB / 420.7 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.2588, allocations: 36.56 kB / 420.7 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.2591, allocations: 271.8 kB / 421 MB, free: 17.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.227e-05/0.2592, allocations: 88.61 kB / 421.1 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.2592, allocations: 36.31 kB / 421.1 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.2597, allocations: 378.6 kB / 421.5 MB, free: 16.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.2598, allocations: 3.938 kB / 421.5 MB, free: 16.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.2598, allocations: 12 kB / 421.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.2598, allocations: 12 kB / 421.5 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.2602, allocations: 362.5 kB / 421.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.2622, allocations: 1.367 MB / 423.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.2634, allocations: 0.5437 MB / 423.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.2636, allocations: 230.1 kB / 424 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.237e-05/0.2637, allocations: 16.42 kB / 424 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004952/0.2642, allocations: 313.3 kB / 424.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/0.2642, allocations: 0 / 424.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002883/0.2671, allocations: 1.156 MB / 425.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.2672, allocations: 59.84 kB / 425.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.2673, allocations: 210 kB / 425.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.2674, allocations: 37.7 kB / 425.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.358e-05/0.2675, allocations: 144.8 kB / 425.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.849e-05/0.2676, allocations: 161.7 kB / 426.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.2677, allocations: 98.23 kB / 426.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.2678, allocations: 338.8 kB / 426.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.2681, allocations: 197.1 kB / 426.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.2684, allocations: 258.3 kB / 427 MB, free: 11.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/0.2724, allocations: 1.274 MB / 428.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2724, allocations: 0 / 428.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001509/0.2739, allocations: 0.7843 MB / 429 MB, free: 9.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.274, allocations: 8 kB / 429 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.274, allocations: 0 / 429 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.2752, allocations: 311.3 kB / 429.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.2754, allocations: 71.89 kB / 429.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003446/0.2789, allocations: 2.978 MB / 432.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.2792, allocations: 39.59 kB / 432.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.2792, allocations: 23.98 kB / 432.4 MB, free: 5.527 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.0001887/0.2794, allocations: 158.2 kB / 432.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.556e-05/0.2795, allocations: 31.66 kB / 432.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.281, allocations: 0.7999 MB / 433.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.281, allocations: 8 kB / 433.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.281, allocations: 0 / 433.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.281, allocations: 7.922 kB / 433.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.2829, allocations: 1.361 MB / 434.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.283, allocations: 7.938 kB / 434.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.2833, allocations: 55.91 kB / 434.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.2844, allocations: 304.5 kB / 435.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.2844, allocations: 12 kB / 435.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/0.2875, allocations: 2.917 MB / 438.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.2875, allocations: 3.984 kB / 438.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.2896, allocations: 1.112 MB / 439.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.528e-05/0.2897, allocations: 104.7 kB / 439.3 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.2898, allocations: 12 kB / 439.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.2901, allocations: 19.98 kB / 439.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.2902, allocations: 52.55 kB / 439.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.099e-05/0.2903, allocations: 23.94 kB / 439.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001433/0.2905, allocations: 148.5 kB / 439.6 MB, free: 14.15 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2905, allocations: 0 / 439.6 MB, free: 14.15 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006358/0.2911, allocations: 163.8 kB / 439.7 MB, free: 13.99 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.0005068/0.2917, allocations: 213.3 kB / 439.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2932, allocations: 0.7908 MB / 440.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.2933, allocations: 0 / 440.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.2943, allocations: 0.5214 MB / 441.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.2947, allocations: 35.98 kB / 441.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.296, allocations: 0.7885 MB / 442.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.2965, allocations: 0.79 MB / 442.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.2966, allocations: 46.94 kB / 442.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.2968, allocations: 35.42 kB / 442.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2968, allocations: 0 / 442.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of Templates: time 0.01397/0.3108, allocations: 8.255 MB / 451.2 MB, free: 2.496 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)