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.001052/0.001052, allocations: 106.9 kB / 16.31 MB, free: 6.359 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.001073/0.001073, allocations: 186.4 kB / 17.24 MB, free: 5.879 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04481/0.04481, allocations: 8.1 MB / 299.2 MB, free: 6.691 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.89 kB / 361.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.215, allocations: 51.51 MB / 413.2 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003538/0.2186, allocations: 2.856 MB / 416.1 MB, free: 22.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.2205, allocations: 1.133 MB / 417.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.2206, allocations: 4 kB / 417.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003626/0.221, allocations: 135.2 kB / 417.4 MB, free: 21.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002999/0.2213, allocations: 143 kB / 417.5 MB, free: 21.28 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.001462/0.2228, allocations: 1.019 MB / 418.5 MB, free: 20.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.223, allocations: 334.5 kB / 418.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.2232, allocations: 122.9 kB / 419 MB, free: 19.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.765e-05/0.2233, allocations: 147.4 kB / 419.1 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.2235, allocations: 211.2 kB / 419.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.2236, allocations: 28 kB / 419.4 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004073/0.224, allocations: 303.7 kB / 419.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.187e-05/0.2241, allocations: 75.69 kB / 419.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.2242, allocations: 159.1 kB / 419.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004989/0.2247, allocations: 0.5395 MB / 420.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2247, allocations: 3.984 kB / 420.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2247, allocations: 0 / 420.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.2247, allocations: 0 / 420.4 MB, free: 18.36 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.001973/0.2267, allocations: 0.84 MB / 421.3 MB, free: 17.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2268, allocations: 8.031 kB / 421.3 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.621e-05/0.2269, allocations: 40.56 kB / 421.3 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.2271, allocations: 275.7 kB / 421.6 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.836e-05/0.2272, allocations: 80.62 kB / 421.7 MB, free: 17.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.2272, allocations: 28.38 kB / 421.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004905/0.2277, allocations: 382.6 kB / 422.1 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2278, allocations: 3.938 kB / 422.1 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.2278, allocations: 19.98 kB / 422.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2278, allocations: 4 kB / 422.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004444/0.2283, allocations: 366.4 kB / 422.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.2296, allocations: 1.367 MB / 423.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009238/0.2305, allocations: 0.5469 MB / 424.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002629/0.2308, allocations: 238 kB / 424.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.2309, allocations: 16.44 kB / 424.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004872/0.2314, allocations: 305.3 kB / 424.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.913e-06/0.2314, allocations: 0 / 424.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.00276/0.2342, allocations: 1.16 MB / 426.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.2342, allocations: 63.84 kB / 426.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.2344, allocations: 206 kB / 426.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.2344, allocations: 33.7 kB / 426.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/0.2345, allocations: 152.8 kB / 426.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.233e-05/0.2346, allocations: 169.6 kB / 426.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.2347, allocations: 94.23 kB / 426.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.652e-05/0.2347, allocations: 338.8 kB / 427.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.235, allocations: 193 kB / 427.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.2353, allocations: 258.4 kB / 427.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003959/0.2393, allocations: 1.27 MB / 428.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2393, allocations: 0 / 428.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001491/0.2408, allocations: 0.7803 MB / 429.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.2408, allocations: 8 kB / 429.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.2408, allocations: 4 kB / 429.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.242, allocations: 325.2 kB / 429.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.2422, allocations: 67.91 kB / 430 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003741/0.246, allocations: 2.967 MB / 433 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.2463, allocations: 47.58 kB / 433 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.2464, allocations: 16 kB / 433 MB, free: 5.25 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.0002469/0.2466, allocations: 175.8 kB / 433.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.2467, allocations: 31.66 kB / 433.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.2483, allocations: 0.7999 MB / 434 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2483, allocations: 11.98 kB / 434 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2483, allocations: 0 / 434 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2483, allocations: 3.938 kB / 434 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.2502, allocations: 1.365 MB / 435.4 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.2503, allocations: 0 / 435.4 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.2505, allocations: 51.92 kB / 435.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001081/0.2516, allocations: 304.5 kB / 435.7 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/0.2516, allocations: 19.92 kB / 435.8 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003227/0.2548, allocations: 2.91 MB / 438.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2549, allocations: 0 / 438.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002079/0.2569, allocations: 1.112 MB / 439.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.685e-05/0.257, allocations: 112.7 kB / 439.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.984e-05/0.2571, allocations: 8 kB / 439.9 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.2574, allocations: 23.98 kB / 439.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.2576, allocations: 40.5 kB / 440 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/0.2576, allocations: 19.94 kB / 440 MB, free: 14.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.2578, allocations: 152.5 kB / 440.1 MB, free: 13.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2578, allocations: 0 / 440.1 MB, free: 13.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005949/0.2584, allocations: 163.8 kB / 440.3 MB, free: 13.71 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.0004634/0.2589, allocations: 217.6 kB / 440.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.2605, allocations: 0.8025 MB / 441.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2605, allocations: 0 / 441.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009502/0.2615, allocations: 0.5175 MB / 441.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.2618, allocations: 36.11 kB / 441.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.263, allocations: 0.6698 MB / 442.5 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.2633, allocations: 0.7861 MB / 443.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.2635, allocations: 42.94 kB / 443.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.185e-05/0.2636, allocations: 39.42 kB / 443.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2636, allocations: 0 / 443.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of Templates: time 0.01311/0.2767, allocations: 8.281 MB / 451.7 MB, free: 2.297 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)