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.004401/0.004401, allocations: 92.22 kB / 15.91 MB, free: 6.285 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.001118/0.001118, allocations: 195.7 kB / 16.83 MB, free: 6.203 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.201/1.201, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.142/0.142, allocations: 8.084 MB / 298.7 MB, free: 2.066 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 52.11 kB / 361 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08393/0.08495, allocations: 51.52 MB / 412.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.00365/0.08863, allocations: 2.883 MB / 415.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.09043, allocations: 1.144 MB / 416.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.947e-05/0.09052, allocations: 4 kB / 416.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002957/0.09082, allocations: 119.5 kB / 416.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002607/0.09111, allocations: 131.3 kB / 416.8 MB, free: 5.848 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.001581/0.0927, allocations: 0.9681 MB / 417.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.09298, allocations: 322.5 kB / 418.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.09317, allocations: 111.5 kB / 418.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.09329, allocations: 131.4 kB / 418.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.09351, allocations: 203.2 kB / 418.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.079e-05/0.09356, allocations: 20 kB / 418.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004244/0.09399, allocations: 291.7 kB / 418.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.09406, allocations: 63.75 kB / 418.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.0942, allocations: 159.1 kB / 419.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005422/0.09475, allocations: 0.5417 MB / 419.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.09476, allocations: 0 / 419.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.09477, allocations: 0 / 419.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.09478, allocations: 0 / 419.6 MB, free: 3.059 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.001969/0.09675, allocations: 0.8322 MB / 420.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/0.09679, allocations: 8.031 kB / 420.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/0.09688, allocations: 36.56 kB / 420.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.09717, allocations: 283.7 kB / 420.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.09725, allocations: 80.62 kB / 420.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.259e-05/0.09731, allocations: 36.38 kB / 420.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.0979, allocations: 382.5 kB / 421.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.09792, allocations: 7.875 kB / 421.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.09796, allocations: 12 kB / 421.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.09797, allocations: 8 kB / 421.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/0.09848, allocations: 362.4 kB / 421.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.1, allocations: 1.367 MB / 423 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009933/0.101, allocations: 0.5469 MB / 423.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.1013, allocations: 234.1 kB / 423.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.848e-05/0.1014, allocations: 8.438 kB / 423.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005285/0.1019, allocations: 325.2 kB / 424.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.813e-06/0.1019, allocations: 0 / 424.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.002967/0.1049, allocations: 1.156 MB / 425.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.105, allocations: 55.84 kB / 425.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.1052, allocations: 206.1 kB / 425.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.1052, allocations: 37.7 kB / 425.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.1053, allocations: 144.8 kB / 425.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.1054, allocations: 173.5 kB / 425.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.1056, allocations: 94.23 kB / 426 MB, free: 12.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1057, allocations: 338.8 kB / 426.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003066/0.106, allocations: 197 kB / 426.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.1063, allocations: 254.4 kB / 426.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004085/0.1104, allocations: 1.258 MB / 428 MB, free: 10.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1105, allocations: 0 / 428 MB, free: 10.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001576/0.112, allocations: 0.7803 MB / 428.8 MB, free: 9.535 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.1121, allocations: 4 kB / 428.8 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1121, allocations: 4 kB / 428.8 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.1132, allocations: 315 kB / 429.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.1135, allocations: 67.91 kB / 429.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003525/0.117, allocations: 2.738 MB / 431.9 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.1173, allocations: 43.58 kB / 431.9 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.1173, allocations: 20 kB / 431.9 MB, free: 6.219 MB / 366.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.0001953/0.1175, allocations: 171.6 kB / 432.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.538e-05/0.1176, allocations: 27.62 kB / 432.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.1193, allocations: 0.8036 MB / 432.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1193, allocations: 4 kB / 432.9 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1193, allocations: 3.984 kB / 433 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.1193, allocations: 0 / 433 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.1215, allocations: 1.369 MB / 434.3 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1215, allocations: 0 / 434.3 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.1217, allocations: 59.86 kB / 434.4 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/0.1228, allocations: 302.5 kB / 434.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.1228, allocations: 15.98 kB / 434.7 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003337/0.1262, allocations: 2.671 MB / 437.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1262, allocations: 0 / 437.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1407/0.2669, allocations: 1.11 MB / 438.5 MB, free: 56.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.481e-05/0.267, allocations: 116 kB / 438.6 MB, free: 56.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.2671, allocations: 16.8 kB / 438.6 MB, free: 56.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.2673, allocations: 18.23 kB / 438.6 MB, free: 56.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.2675, allocations: 43.62 kB / 438.7 MB, free: 56.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.2675, allocations: 21.17 kB / 438.7 MB, free: 56.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.2676, allocations: 144.6 kB / 438.8 MB, free: 56.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2676, allocations: 0 / 438.8 MB, free: 56.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000539/0.2682, allocations: 158.1 kB / 439 MB, free: 56.74 MB / 366.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.0004049/0.2686, allocations: 213 kB / 439.2 MB, free: 56.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.2699, allocations: 0.7598 MB / 439.9 MB, free: 56.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2699, allocations: 6.812 kB / 440 MB, free: 56.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007561/0.2706, allocations: 0.5196 MB / 440.5 MB, free: 56.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.271, allocations: 43.88 kB / 440.5 MB, free: 56.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009276/0.2719, allocations: 0.7838 MB / 441.3 MB, free: 56.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.2721, allocations: 0.7869 MB / 442.1 MB, free: 55.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001572/0.2723, allocations: 48.27 kB / 442.1 MB, free: 55.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-05/0.2723, allocations: 38.78 kB / 442.2 MB, free: 55.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2724, allocations: 0 / 442.2 MB, free: 55.34 MB / 366.1 MB Notification: Performance of Templates: time 0.009619/0.282, allocations: 7.792 MB / 450 MB, free: 54.95 MB / 366.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)