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.001078/0.001078, allocations: 106.4 kB / 17.08 MB, free: 6 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.001029/0.001029, allocations: 196 kB / 18.02 MB, free: 5.082 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05633/0.05633, allocations: 8.104 MB / 300 MB, free: 6.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 55.91 kB / 363.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2322, allocations: 51.52 MB / 414.7 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003667/0.2359, allocations: 2.847 MB / 417.6 MB, free: 22.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.2378, allocations: 1.129 MB / 418.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.2379, allocations: 4 kB / 418.7 MB, free: 21.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003972/0.2383, allocations: 143.2 kB / 418.8 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003337/0.2387, allocations: 147 kB / 419 MB, free: 21.31 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.001667/0.2404, allocations: 1.011 MB / 420 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.2407, allocations: 346.4 kB / 420.3 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.2409, allocations: 126.9 kB / 420.4 MB, free: 19.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.2411, allocations: 147.4 kB / 420.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.2413, allocations: 199.3 kB / 420.8 MB, free: 19.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.2413, allocations: 35.94 kB / 420.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004522/0.2418, allocations: 299.8 kB / 421.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.023e-05/0.2419, allocations: 71.69 kB / 421.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.242, allocations: 167.1 kB / 421.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005254/0.2425, allocations: 0.5472 MB / 421.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2425, allocations: 0 / 421.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2425, allocations: 0 / 421.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.2426, allocations: 0 / 421.9 MB, free: 18.38 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.001938/0.2445, allocations: 0.8389 MB / 422.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.2445, allocations: 8.031 kB / 422.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.499e-05/0.2446, allocations: 44.48 kB / 422.8 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.2449, allocations: 279.8 kB / 423.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.272e-05/0.245, allocations: 80.62 kB / 423.1 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.245, allocations: 32.38 kB / 423.2 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.2456, allocations: 382.5 kB / 423.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2456, allocations: 7.875 kB / 423.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.2457, allocations: 12 kB / 423.6 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.2457, allocations: 8 kB / 423.6 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004424/0.2461, allocations: 362.4 kB / 423.9 MB, free: 16.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.2475, allocations: 1.363 MB / 425.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009256/0.2484, allocations: 0.5508 MB / 425.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002766/0.2487, allocations: 234.1 kB / 426.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.424e-05/0.2488, allocations: 8.422 kB / 426.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005112/0.2493, allocations: 313.3 kB / 426.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.864e-06/0.2493, allocations: 0 / 426.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002777/0.2521, allocations: 1.156 MB / 427.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.2522, allocations: 59.83 kB / 427.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.2523, allocations: 202.2 kB / 427.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.2524, allocations: 45.69 kB / 427.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.404e-05/0.2525, allocations: 144.8 kB / 428 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.67e-05/0.2526, allocations: 165.6 kB / 428.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.2527, allocations: 94.23 kB / 428.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.753e-05/0.2527, allocations: 342.8 kB / 428.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.253, allocations: 197 kB / 428.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002904/0.2533, allocations: 258.4 kB / 429 MB, free: 10.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003854/0.2572, allocations: 1.258 MB / 430.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2572, allocations: 0 / 430.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001417/0.2586, allocations: 0.7882 MB / 431.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2587, allocations: 6.031 kB / 431.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2587, allocations: 4 kB / 431.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.2597, allocations: 309.3 kB / 431.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.26, allocations: 75.83 kB / 431.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.2633, allocations: 2.965 MB / 434.4 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.2636, allocations: 43.58 kB / 434.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.2636, allocations: 20 kB / 434.5 MB, free: 5.293 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.2638, allocations: 167.8 kB / 434.6 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.014e-05/0.2639, allocations: 31.66 kB / 434.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.2655, allocations: 0.8076 MB / 435.5 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2655, allocations: 4 kB / 435.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2655, allocations: 0 / 435.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.2655, allocations: 7.922 kB / 435.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.2675, allocations: 1.362 MB / 436.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.2675, allocations: 0 / 436.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.2677, allocations: 55.91 kB / 436.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.2687, allocations: 299.8 kB / 437.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.2688, allocations: 15.98 kB / 437.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/0.272, allocations: 2.917 MB / 440.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.272, allocations: 0 / 440.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.2741, allocations: 1.109 MB / 441.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.139e-05/0.2742, allocations: 112.8 kB / 441.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.2743, allocations: 16.12 kB / 441.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.2746, allocations: 23.98 kB / 441.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.2747, allocations: 44.5 kB / 441.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/0.2747, allocations: 19.98 kB / 441.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001529/0.2749, allocations: 147 kB / 441.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2749, allocations: 4 kB / 441.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000615/0.2755, allocations: 163.8 kB / 441.8 MB, free: 13.75 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.0004732/0.276, allocations: 217.5 kB / 442 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.2775, allocations: 0.783 MB / 442.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2775, allocations: 0 / 442.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009504/0.2785, allocations: 0.5175 MB / 443.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.2789, allocations: 35.98 kB / 443.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.2801, allocations: 0.6701 MB / 444 MB, free: 11.51 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.2805, allocations: 0.7822 MB / 444.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001623/0.2806, allocations: 46.92 kB / 444.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.656e-05/0.2807, allocations: 43.36 kB / 444.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2808, allocations: 0 / 444.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of Templates: time 0.01402/0.2948, allocations: 8.275 MB / 453.1 MB, free: 2.355 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 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1)