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.001331/0.001331, allocations: 104.7 kB / 16.45 MB, free: 6.43 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.001374/0.001374, allocations: 189.1 kB / 17.38 MB, free: 5.695 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 / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04956/0.04956, allocations: 8.1 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 414.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09985/0.1012, allocations: 51.52 MB / 466 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.004009/0.1052, allocations: 2.859 MB / 468.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.1075, allocations: 1.132 MB / 470 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.1077, allocations: 4 kB / 470 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005127/0.1083, allocations: 147.2 kB / 470.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004178/0.1087, allocations: 147.1 kB / 470.3 MB, free: 13.73 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.001974/0.1107, allocations: 1.015 MB / 471.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.1111, allocations: 330.5 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.1114, allocations: 130.9 kB / 471.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.1115, allocations: 147.5 kB / 471.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.1118, allocations: 207.2 kB / 472.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.1118, allocations: 28 kB / 472.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005455/0.1124, allocations: 307.7 kB / 472.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.1125, allocations: 75.69 kB / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.1127, allocations: 155.2 kB / 472.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000668/0.1133, allocations: 0.5531 MB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1133, allocations: 0 / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1134, allocations: 0 / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.1134, allocations: 0 / 473.2 MB, free: 10.8 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.002271/0.1156, allocations: 0.8387 MB / 474 MB, free: 9.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1157, allocations: 8.031 kB / 474.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.568e-05/0.1158, allocations: 40.47 kB / 474.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.1161, allocations: 271.8 kB / 474.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.128e-05/0.1162, allocations: 84.61 kB / 474.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.1163, allocations: 32.38 kB / 474.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000636/0.1169, allocations: 382.5 kB / 474.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1169, allocations: 3.938 kB / 474.8 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.983e-05/0.117, allocations: 16 kB / 474.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.117, allocations: 8 kB / 474.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005497/0.1175, allocations: 362.5 kB / 475.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.1194, allocations: 1.367 MB / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.1206, allocations: 0.5431 MB / 477.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.1209, allocations: 234.1 kB / 477.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.723e-05/0.121, allocations: 20.36 kB / 477.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006247/0.1216, allocations: 313.2 kB / 477.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.255e-06/0.1216, allocations: 0 / 477.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003387/0.125, allocations: 1.16 MB / 478.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.1251, allocations: 55.84 kB / 478.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1253, allocations: 198.2 kB / 479.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.1254, allocations: 37.7 kB / 479.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1255, allocations: 152.8 kB / 479.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.1257, allocations: 165.6 kB / 479.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.1259, allocations: 94.23 kB / 479.5 MB, free: 4.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.126, allocations: 338.8 kB / 479.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003919/0.1264, allocations: 193 kB / 480.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.1269, allocations: 262.4 kB / 480.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004696/0.1316, allocations: 1.262 MB / 481.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.1316, allocations: 0 / 481.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001882/0.1335, allocations: 0.788 MB / 482.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.1335, allocations: 4 kB / 482.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1336, allocations: 8.031 kB / 482.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.1349, allocations: 300.6 kB / 482.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.1352, allocations: 71.89 kB / 482.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004534/0.1397, allocations: 2.968 MB / 485.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.14, allocations: 35.75 kB / 485.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/0.1401, allocations: 23.98 kB / 485.8 MB, free: 13.73 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.0002609/0.1404, allocations: 170.3 kB / 485.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.239e-05/0.1405, allocations: 39.56 kB / 486 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.1423, allocations: 0.7919 MB / 486.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.1423, allocations: 8 kB / 486.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1423, allocations: 4 kB / 486.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.1423, allocations: 7.922 kB / 486.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.1447, allocations: 1.362 MB / 488.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1447, allocations: 0 / 488.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/0.1449, allocations: 55.91 kB / 488.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.1462, allocations: 303.5 kB / 488.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.1462, allocations: 15.98 kB / 488.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.1505, allocations: 2.917 MB / 491.4 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1505, allocations: 3.938 kB / 491.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.1527, allocations: 1.109 MB / 492.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.1528, allocations: 116.6 kB / 492.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.1529, allocations: 8 kB / 492.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.1532, allocations: 28.05 kB / 492.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.1533, allocations: 44.48 kB / 492.7 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.411e-05/0.1534, allocations: 23.88 kB / 492.8 MB, free: 6.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001633/0.1536, allocations: 144.4 kB / 492.9 MB, free: 6.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1536, allocations: 0 / 492.9 MB, free: 6.348 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006645/0.1542, allocations: 163.9 kB / 493.1 MB, free: 6.188 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.000514/0.1548, allocations: 211.1 kB / 493.3 MB, free: 5.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.1565, allocations: 0.7754 MB / 494 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1565, allocations: 0 / 494 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009796/0.1575, allocations: 0.5253 MB / 494.6 MB, free: 4.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.1579, allocations: 39.73 kB / 494.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.1593, allocations: 0.6639 MB / 495.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.1597, allocations: 0.786 MB / 496 MB, free: 3.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.1599, allocations: 46.94 kB / 496.1 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.16, allocations: 35.42 kB / 496.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.16, allocations: 0 / 496.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of Templates: time 0.0149/0.1749, allocations: 8.384 MB / 0.4927 GB, free: 10.69 MB / 382.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)