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.001033/0.001034, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 177.5 kB / 16.63 MB, free: 6.887 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.516/1.516, allocations: 223.3 MB / 240.7 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2523/0.2523, allocations: 8.081 MB / 299.8 MB, free: 2.801 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003968, allocations: 8 kB / 362.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1208, allocations: 52.52 MB / 415.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002998/0.1238, allocations: 2.421 MB / 417.8 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.126, allocations: 1.04 MB / 418.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002605/0.1262, allocations: 4 kB / 418.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004341/0.1267, allocations: 95.53 kB / 418.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005029/0.1272, allocations: 119.3 kB / 419.1 MB, free: 5.02 MB / 350.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.001956/0.1292, allocations: 0.8216 MB / 419.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000543/0.1297, allocations: 294.6 kB / 420.2 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.13, allocations: 101.7 kB / 420.3 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.1302, allocations: 131.5 kB / 420.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003976/0.1306, allocations: 175.3 kB / 420.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.537e-05/0.1307, allocations: 16 kB / 420.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006467/0.1314, allocations: 271.7 kB / 420.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.1315, allocations: 55.75 kB / 420.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1316, allocations: 81.52 kB / 421 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000571/0.1322, allocations: 391.4 kB / 421.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1322, allocations: 0 / 421.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1322, allocations: 0 / 421.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1322, allocations: 7.938 kB / 421.4 MB, free: 2.695 MB / 350.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.002153/0.1344, allocations: 0.7775 MB / 422.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1344, allocations: 12.03 kB / 422.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1345, allocations: 39.58 kB / 422.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.1349, allocations: 270.5 kB / 422.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.52e-05/0.135, allocations: 88.05 kB / 422.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.1351, allocations: 28 kB / 422.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006106/0.1357, allocations: 381.9 kB / 422.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1357, allocations: 4 kB / 423 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.1358, allocations: 12 kB / 423 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1358, allocations: 8 kB / 423 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005315/0.1363, allocations: 366.4 kB / 423.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2197/0.3561, allocations: 1.354 MB / 424.7 MB, free: 40.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.3572, allocations: 0.5426 MB / 425.2 MB, free: 40.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.3575, allocations: 236 kB / 425.5 MB, free: 40.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.406e-05/0.3576, allocations: 9.516 kB / 425.5 MB, free: 40.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.3582, allocations: 313.2 kB / 425.8 MB, free: 40.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.066e-06/0.3582, allocations: 1.844 kB / 425.8 MB, free: 40.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002692/0.3609, allocations: 1.151 MB / 426.9 MB, free: 39.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.3609, allocations: 61.47 kB / 427 MB, free: 39.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.3611, allocations: 202.4 kB / 427.2 MB, free: 39.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.3612, allocations: 38.67 kB / 427.2 MB, free: 39.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.3612, allocations: 145.2 kB / 427.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.3613, allocations: 163.3 kB / 427.5 MB, free: 39.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.3614, allocations: 10.12 kB / 427.5 MB, free: 39.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.725e-05/0.3614, allocations: 341.4 kB / 427.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.3617, allocations: 196.2 kB / 428.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.362, allocations: 256.9 kB / 428.3 MB, free: 39.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.3623, allocations: 225 kB / 428.5 MB, free: 39.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3624, allocations: 0 / 428.5 MB, free: 39.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001408/0.3638, allocations: 0.7723 MB / 429.3 MB, free: 39.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3638, allocations: 7.938 kB / 429.3 MB, free: 39.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3638, allocations: 5.078 kB / 429.3 MB, free: 39.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3649, allocations: 309.2 kB / 429.6 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.3651, allocations: 76.81 kB / 429.7 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.3684, allocations: 2.72 MB / 432.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.3687, allocations: 41.97 kB / 432.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.3687, allocations: 22.14 kB / 432.5 MB, free: 37.71 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: myFailure.seed:DISCRETE(fixed = true protected = true ) type: Integer myFailure.F:VARIABLE(start = 0.0 fixed = true ) "cumulative distribution function" type: Real myFailure.r:DISCRETE(fixed = true ) "random numbers" type: Real myFailure.componentIsWorking:DISCRETE(start = true fixed = true ) type: Boolean 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,$whenCondition3,$whenCondition2,$whenCondition1,n.y,myFailure.y,$PRE.myFailure.componentIsWorking,myFailure.componentIsWorking,$PRE.myFailure.r,myFailure.r) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.3689, allocations: 166 kB / 432.6 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.273e-05/0.369, allocations: 32.8 kB / 432.7 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.3706, allocations: 0.7974 MB / 433.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3706, allocations: 6.25 kB / 433.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3706, allocations: 0 / 433.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3706, allocations: 3.469 kB / 433.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/0.3727, allocations: 1.373 MB / 434.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3727, allocations: 3.406 kB / 434.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.3729, allocations: 55.73 kB / 434.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.3739, allocations: 303 kB / 435.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.3739, allocations: 16.28 kB / 435.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002803/0.3767, allocations: 2.675 MB / 437.9 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3768, allocations: 0.6562 kB / 437.9 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.3785, allocations: 1.106 MB / 439 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.824e-05/0.3785, allocations: 113 kB / 439.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.493e-05/0.3786, allocations: 11.84 kB / 439.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.3788, allocations: 24.28 kB / 439.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.606e-05/0.3789, allocations: 48.98 kB / 439.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.379, allocations: 20.55 kB / 439.2 MB, free: 33.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.3791, allocations: 146.7 kB / 439.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3791, allocations: 0 / 439.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000526/0.3796, allocations: 163.7 kB / 439.5 MB, free: 33.61 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004206/0.3801, allocations: 219.2 kB / 439.7 MB, free: 33.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.3813, allocations: 0.7643 MB / 440.5 MB, free: 33.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3814, allocations: 4.062 kB / 440.5 MB, free: 33.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000768/0.3821, allocations: 0.5166 MB / 441 MB, free: 32.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.3825, allocations: 37.67 kB / 441 MB, free: 32.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009922/0.3835, allocations: 0.7806 MB / 441.8 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.3837, allocations: 0.7889 MB / 442.6 MB, free: 31.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000164/0.3839, allocations: 49.09 kB / 442.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.754e-05/0.384, allocations: 34.08 kB / 442.7 MB, free: 31.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.384, allocations: 0 / 442.7 MB, free: 31.63 MB / 350.1 MB Notification: Performance of Templates: time 0.01049/0.3945, allocations: 7.451 MB / 450.2 MB, free: 31.09 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: