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.001415/0.001415, allocations: 124.2 kB / 17.14 MB, free: 5.914 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.001603/0.001603, allocations: 190.9 kB / 18.06 MB, free: 5 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.308/1.308, allocations: 222.9 MB / 241.7 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04442/0.04442, allocations: 8.097 MB / 300 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 415.2 MB, free: 21.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08058/0.08181, allocations: 51.5 MB / 466.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003991/0.08584, allocations: 2.866 MB / 469.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.08791, allocations: 1.133 MB / 470.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002049/0.08814, allocations: 4 kB / 470.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004282/0.08858, allocations: 139.2 kB / 470.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000406/0.08902, allocations: 151 kB / 471 MB, free: 13.82 MB / 350.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.002036/0.09107, allocations: 1.019 MB / 472 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000471/0.09156, allocations: 334.5 kB / 472.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.0918, allocations: 126.9 kB / 472.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.092, allocations: 147.5 kB / 472.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.09232, allocations: 195.2 kB / 472.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.09239, allocations: 28 kB / 472.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006028/0.093, allocations: 315.7 kB / 473.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.652e-05/0.09309, allocations: 71.69 kB / 473.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.09326, allocations: 167.1 kB / 473.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007417/0.09401, allocations: 0.5453 MB / 473.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.09402, allocations: 4 kB / 473.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09403, allocations: 0 / 473.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.09405, allocations: 0 / 473.9 MB, free: 10.89 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.002396/0.09645, allocations: 0.8361 MB / 474.7 MB, free: 10 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.09649, allocations: 12.03 kB / 474.7 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.09661, allocations: 40.47 kB / 474.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.09696, allocations: 275.8 kB / 475 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-05/0.09705, allocations: 84.61 kB / 475.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/0.09712, allocations: 32.36 kB / 475.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006546/0.09778, allocations: 382.6 kB / 475.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.0978, allocations: 3.938 kB / 475.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.09785, allocations: 12 kB / 475.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.09786, allocations: 8 kB / 475.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005669/0.09844, allocations: 362.5 kB / 475.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.1002, allocations: 1.367 MB / 477.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.1014, allocations: 0.5469 MB / 477.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.1018, allocations: 234 kB / 478.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.758e-05/0.1018, allocations: 12.42 kB / 478.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006185/0.1025, allocations: 317.2 kB / 478.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.625e-06/0.1025, allocations: 0 / 478.4 MB, free: 6.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003372/0.1059, allocations: 1.152 MB / 479.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1059, allocations: 63.83 kB / 479.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/0.1062, allocations: 194.3 kB / 479.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.843e-05/0.1062, allocations: 37.7 kB / 479.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1064, allocations: 148.8 kB / 480 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.1065, allocations: 173.6 kB / 480.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.1067, allocations: 94.23 kB / 480.2 MB, free: 4.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1069, allocations: 338.8 kB / 480.6 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.1072, allocations: 193 kB / 480.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.1076, allocations: 262.3 kB / 481 MB, free: 3.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004672/0.1123, allocations: 1.25 MB / 482.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.1123, allocations: 0 / 482.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001851/0.1142, allocations: 0.7842 MB / 483 MB, free: 1.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1142, allocations: 4 kB / 483 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.1142, allocations: 7.984 kB / 483 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.1155, allocations: 304.6 kB / 483.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.1159, allocations: 83.77 kB / 483.4 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004436/0.1203, allocations: 2.956 MB / 486.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.1207, allocations: 31.75 kB / 486.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.1207, allocations: 23.98 kB / 486.4 MB, free: 13.82 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.0002716/0.121, allocations: 166.2 kB / 486.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.197e-05/0.1211, allocations: 31.56 kB / 486.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/0.123, allocations: 0.8038 MB / 487.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.123, allocations: 4 kB / 487.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.123, allocations: 4 kB / 487.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.123, allocations: 7.922 kB / 487.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.1255, allocations: 1.366 MB / 488.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1255, allocations: 0 / 488.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.1257, allocations: 55.91 kB / 488.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/0.1269, allocations: 308.5 kB / 489.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.127, allocations: 11.94 kB / 489.2 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.1311, allocations: 2.917 MB / 492.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1311, allocations: 0 / 492.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.1333, allocations: 1.109 MB / 493.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.1334, allocations: 116.6 kB / 493.3 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.358e-05/0.1335, allocations: 12 kB / 493.3 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.1338, allocations: 20.17 kB / 493.3 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.134, allocations: 48.5 kB / 493.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/0.134, allocations: 27.92 kB / 493.4 MB, free: 6.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.1342, allocations: 143.1 kB / 493.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1342, allocations: 0 / 493.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006396/0.1348, allocations: 167.9 kB / 493.7 MB, free: 6.277 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.0004801/0.1353, allocations: 219.9 kB / 493.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.137, allocations: 0.7716 MB / 494.7 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.137, allocations: 4.062 kB / 494.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.138, allocations: 0.5288 MB / 495.2 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.1384, allocations: 42.48 kB / 495.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.1397, allocations: 0.6835 MB / 496 MB, free: 4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1401, allocations: 0.786 MB / 496.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.1402, allocations: 43.42 kB / 496.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1402, allocations: 0 / 496.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of Templates: time 0.01073/0.151, allocations: 6.943 MB / 0.4919 GB, free: 12.2 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)