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.001548/0.001549, allocations: 103 kB / 16.98 MB, free: 6.18 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.002052/0.002052, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.39/1.39, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04722/0.04722, allocations: 8.096 MB / 299.9 MB, free: 6.738 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 59.91 kB / 362.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2065, allocations: 51.52 MB / 413.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003147/0.2097, allocations: 2.844 MB / 416.8 MB, free: 22.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2113, allocations: 1.129 MB / 417.9 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2114, allocations: 4 kB / 417.9 MB, free: 21.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.2118, allocations: 143.2 kB / 418.1 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003066/0.2121, allocations: 135.1 kB / 418.2 MB, free: 21.32 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.001631/0.2138, allocations: 1.023 MB / 419.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.2141, allocations: 330.5 kB / 419.5 MB, free: 19.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.2143, allocations: 130.9 kB / 419.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.995e-05/0.2144, allocations: 139.5 kB / 419.8 MB, free: 19.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.2146, allocations: 203.2 kB / 420 MB, free: 19.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.2147, allocations: 28 kB / 420 MB, free: 19.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005/0.2152, allocations: 303.7 kB / 420.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.664e-05/0.2153, allocations: 79.69 kB / 420.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.2154, allocations: 159.2 kB / 420.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005476/0.2159, allocations: 0.5434 MB / 421.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.216, allocations: 0 / 421.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.216, allocations: 0 / 421.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.216, allocations: 0 / 421.1 MB, free: 18.4 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.002011/0.218, allocations: 0.84 MB / 421.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.218, allocations: 8.031 kB / 421.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.837e-05/0.2181, allocations: 40.56 kB / 422 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.2184, allocations: 275.7 kB / 422.2 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.137e-05/0.2185, allocations: 88.61 kB / 422.3 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.2185, allocations: 28.38 kB / 422.4 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.2191, allocations: 382.6 kB / 422.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.2191, allocations: 7.875 kB / 422.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.2191, allocations: 12 kB / 422.8 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.2192, allocations: 8 kB / 422.8 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005457/0.2197, allocations: 366.5 kB / 423.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.2211, allocations: 1.367 MB / 424.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009707/0.2221, allocations: 0.5508 MB / 425 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.2224, allocations: 230.1 kB / 425.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.648e-05/0.2224, allocations: 20.34 kB / 425.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004933/0.2229, allocations: 313.3 kB / 425.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.605e-06/0.2229, allocations: 0 / 425.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002943/0.2259, allocations: 1.156 MB / 426.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.2259, allocations: 67.78 kB / 426.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.2261, allocations: 202.1 kB / 427 MB, free: 12.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.2262, allocations: 33.7 kB / 427 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.408e-05/0.2262, allocations: 152.8 kB / 427.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.6e-05/0.2263, allocations: 161.7 kB / 427.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.2264, allocations: 90.23 kB / 427.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.23e-05/0.2265, allocations: 346.8 kB / 427.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.2268, allocations: 193.1 kB / 428 MB, free: 11.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/0.2271, allocations: 262.4 kB / 428.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004071/0.2311, allocations: 1.266 MB / 429.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2312, allocations: 0 / 429.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001497/0.2327, allocations: 0.7881 MB / 430.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.2327, allocations: 10.34 kB / 430.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.2327, allocations: 0 / 430.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001156/0.2339, allocations: 311.7 kB / 430.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.2341, allocations: 75.89 kB / 430.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/0.2375, allocations: 2.964 MB / 433.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.2378, allocations: 43.59 kB / 433.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.2379, allocations: 19.98 kB / 433.7 MB, free: 5.289 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.0002069/0.2381, allocations: 171.7 kB / 433.9 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.92e-05/0.2381, allocations: 31.66 kB / 433.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001544/0.2397, allocations: 0.7959 MB / 434.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2397, allocations: 8 kB / 434.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.2397, allocations: 0 / 434.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2397, allocations: 11.92 kB / 434.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.2417, allocations: 1.361 MB / 436.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.2417, allocations: 0 / 436.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.2419, allocations: 59.91 kB / 436.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/0.243, allocations: 300.5 kB / 436.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.2431, allocations: 12 kB / 436.4 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003321/0.2464, allocations: 2.924 MB / 439.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2464, allocations: 0 / 439.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.2486, allocations: 1.112 MB / 440.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.268e-05/0.2487, allocations: 112.7 kB / 440.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.2487, allocations: 8 kB / 440.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.249, allocations: 23.97 kB / 440.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.2491, allocations: 48.44 kB / 440.7 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.954e-05/0.2492, allocations: 19.94 kB / 440.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.2494, allocations: 147.1 kB / 440.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2494, allocations: 0 / 440.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006149/0.25, allocations: 167.8 kB / 441 MB, free: 13.74 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.0004869/0.2505, allocations: 219.7 kB / 441.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.2522, allocations: 0.7986 MB / 442 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.2523, allocations: 4 kB / 442 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.2533, allocations: 0.5175 MB / 442.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.2537, allocations: 35.98 kB / 442.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.2549, allocations: 0.6913 MB / 443.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.2553, allocations: 0.79 MB / 444 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2554, allocations: 39.42 kB / 444.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2554, allocations: 0 / 444.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of Templates: time 0.01002/0.2654, allocations: 6.925 MB / 451 MB, free: 3.684 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)