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.001416/0.001416, allocations: 107.8 kB / 17.07 MB, free: 5.68 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.0009819/0.0009819, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04894/0.04894, allocations: 8.093 MB / 300 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 71.89 kB / 363.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1974, allocations: 51.53 MB / 414.7 MB, free: 25.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003225/0.2006, allocations: 2.843 MB / 417.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.2022, allocations: 1.133 MB / 418.7 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.2023, allocations: 4 kB / 418.7 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.2026, allocations: 131.2 kB / 418.8 MB, free: 21.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002828/0.2029, allocations: 151 kB / 419 MB, free: 21.13 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.001479/0.2044, allocations: 1.027 MB / 420 MB, free: 20.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.2047, allocations: 338.5 kB / 420.3 MB, free: 19.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.2049, allocations: 126.9 kB / 420.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.593e-05/0.205, allocations: 147.5 kB / 420.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.2052, allocations: 199.2 kB / 420.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/0.2052, allocations: 31.98 kB / 420.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003895/0.2056, allocations: 303.7 kB / 421.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.388e-05/0.2057, allocations: 75.69 kB / 421.2 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.2058, allocations: 163.1 kB / 421.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004755/0.2063, allocations: 0.5431 MB / 421.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2063, allocations: 4 kB / 421.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2063, allocations: 0 / 421.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2063, allocations: 3.938 kB / 421.9 MB, free: 18.2 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.001891/0.2082, allocations: 0.8322 MB / 422.7 MB, free: 17.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.888e-05/0.2083, allocations: 12.03 kB / 422.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.814e-05/0.2083, allocations: 36.56 kB / 422.8 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.2086, allocations: 279.7 kB / 423.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.662e-05/0.2087, allocations: 84.62 kB / 423.1 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.2087, allocations: 28.38 kB / 423.2 MB, free: 16.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.2092, allocations: 382.5 kB / 423.5 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2092, allocations: 3.938 kB / 423.5 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.307e-05/0.2093, allocations: 19.98 kB / 423.6 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.2093, allocations: 8 kB / 423.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/0.2097, allocations: 358.5 kB / 423.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.211, allocations: 1.363 MB / 425.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009001/0.2119, allocations: 0.5508 MB / 425.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.2122, allocations: 238.1 kB / 426.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.562e-05/0.2123, allocations: 8.422 kB / 426.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004629/0.2128, allocations: 313.3 kB / 426.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.903e-06/0.2128, allocations: 0 / 426.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.00279/0.2156, allocations: 1.156 MB / 427.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.2156, allocations: 59.84 kB / 427.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.2158, allocations: 202.1 kB / 427.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.2158, allocations: 41.7 kB / 427.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.38e-05/0.2159, allocations: 148.8 kB / 428 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.2159, allocations: 169.6 kB / 428.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.2161, allocations: 94.23 kB / 428.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.2161, allocations: 334.8 kB / 428.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.2164, allocations: 197 kB / 428.8 MB, free: 11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.2167, allocations: 262.3 kB / 429 MB, free: 10.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003876/0.2206, allocations: 1.262 MB / 430.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2206, allocations: 0 / 430.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001425/0.222, allocations: 0.7803 MB / 431 MB, free: 8.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2221, allocations: 8 kB / 431.1 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.2221, allocations: 4 kB / 431.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.2232, allocations: 307.5 kB / 431.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.2234, allocations: 75.84 kB / 431.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003205/0.2267, allocations: 2.953 MB / 434.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.2269, allocations: 47.58 kB / 434.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.227, allocations: 20 kB / 434.5 MB, free: 5.125 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.000187/0.2272, allocations: 171.8 kB / 434.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.533e-05/0.2272, allocations: 31.59 kB / 434.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.2288, allocations: 0.8038 MB / 435.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2288, allocations: 4 kB / 435.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2288, allocations: 3.984 kB / 435.5 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2288, allocations: 3.938 kB / 435.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.2308, allocations: 1.37 MB / 436.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2308, allocations: 0 / 436.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.231, allocations: 51.92 kB / 436.9 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.2321, allocations: 300.6 kB / 437.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.2321, allocations: 11.98 kB / 437.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003199/0.2353, allocations: 2.92 MB / 440.1 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2353, allocations: 0 / 440.1 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.2374, allocations: 1.109 MB / 441.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.111e-05/0.2374, allocations: 112.7 kB / 441.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.2375, allocations: 16.19 kB / 441.3 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.2378, allocations: 23.98 kB / 441.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2379, allocations: 44.5 kB / 441.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.527e-05/0.2379, allocations: 19.94 kB / 441.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.2381, allocations: 147.1 kB / 441.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2381, allocations: 0 / 441.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005696/0.2387, allocations: 167.8 kB / 441.7 MB, free: 13.57 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.0004346/0.2391, allocations: 230.4 kB / 442 MB, free: 13.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.2405, allocations: 0.7675 MB / 442.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2406, allocations: 0 / 442.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009113/0.2415, allocations: 0.5292 MB / 443.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.2418, allocations: 35.98 kB / 443.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.2429, allocations: 0.6582 MB / 444 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.2433, allocations: 0.7861 MB / 444.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001591/0.2435, allocations: 46.86 kB / 444.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.846e-05/0.2436, allocations: 39.42 kB / 444.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2436, allocations: 4 kB / 444.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of Templates: time 0.01285/0.2564, allocations: 8.287 MB / 453.1 MB, free: 2.172 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 gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1)