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.001088/0.001088, allocations: 102.4 kB / 16.45 MB, free: 6.445 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.001244/0.001244, allocations: 188.9 kB / 17.39 MB, free: 5.684 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.342/1.342, 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.04685/0.04685, allocations: 8.104 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 71.88 kB / 414.5 MB, free: 21.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1088, allocations: 51.51 MB / 466 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.004429/0.1133, allocations: 2.859 MB / 468.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1154, allocations: 1.129 MB / 470 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1155, allocations: 4 kB / 470 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004111/0.1159, allocations: 143.2 kB / 470.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003729/0.1163, allocations: 139.1 kB / 470.3 MB, free: 13.86 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.002098/0.1184, allocations: 1.031 MB / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.1189, allocations: 334.5 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.1192, allocations: 122.9 kB / 471.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.1193, allocations: 147.5 kB / 471.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.1197, allocations: 207.2 kB / 472.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.926e-05/0.1197, allocations: 28 kB / 472.1 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005388/0.1203, allocations: 307.7 kB / 472.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.672e-05/0.1203, allocations: 75.69 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.1205, allocations: 167.1 kB / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007072/0.1212, allocations: 0.545 MB / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1212, allocations: 4 kB / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1212, allocations: 0 / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1212, allocations: 0 / 473.2 MB, free: 10.91 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.002231/0.1235, allocations: 0.8508 MB / 474.1 MB, free: 10 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1235, allocations: 12.03 kB / 474.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1236, allocations: 36.75 kB / 474.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.124, allocations: 275.8 kB / 474.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-05/0.1241, allocations: 84.62 kB / 474.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.1241, allocations: 32.36 kB / 474.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.1247, allocations: 378.6 kB / 474.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1248, allocations: 3.938 kB / 474.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.1248, allocations: 16 kB / 474.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1248, allocations: 8 kB / 474.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005506/0.1254, allocations: 358.5 kB / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.127, allocations: 1.371 MB / 476.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.1281, allocations: 0.5547 MB / 477.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003369/0.1285, allocations: 230.1 kB / 477.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.084e-05/0.1285, allocations: 16.36 kB / 477.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005437/0.1291, allocations: 305.3 kB / 477.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.903e-06/0.1291, allocations: 4 kB / 477.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003149/0.1323, allocations: 1.16 MB / 478.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.1323, allocations: 67.83 kB / 478.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.1325, allocations: 202.2 kB / 479.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.1326, allocations: 37.7 kB / 479.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.708e-05/0.1327, allocations: 145 kB / 479.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.1328, allocations: 170.5 kB / 479.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.1329, allocations: 98.23 kB / 479.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1331, allocations: 334.8 kB / 479.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003281/0.1334, allocations: 201 kB / 480.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004239/0.1338, allocations: 262.3 kB / 480.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004378/0.1382, allocations: 1.25 MB / 481.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1382, allocations: 4 kB / 481.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001643/0.1399, allocations: 0.7843 MB / 482.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1399, allocations: 4 kB / 482.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1399, allocations: 3.984 kB / 482.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.1411, allocations: 307.5 kB / 482.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.1414, allocations: 75.83 kB / 482.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004109/0.1455, allocations: 2.967 MB / 485.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.1458, allocations: 39.73 kB / 485.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.1458, allocations: 23.98 kB / 485.8 MB, free: 13.8 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.0002155/0.146, allocations: 170.2 kB / 486 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.546e-05/0.1461, allocations: 35.75 kB / 486 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.1479, allocations: 0.7922 MB / 486.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1479, allocations: 8 kB / 486.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.1479, allocations: 0 / 486.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1479, allocations: 7.922 kB / 486.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.1502, allocations: 1.37 MB / 488.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1502, allocations: 3.938 kB / 488.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002034/0.1504, allocations: 51.91 kB / 488.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.1516, allocations: 308.5 kB / 488.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.1516, allocations: 12 kB / 488.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003809/0.1554, allocations: 2.917 MB / 491.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1554, allocations: 4 kB / 491.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.1574, allocations: 1.113 MB / 492.6 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/0.1575, allocations: 108.8 kB / 492.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.1575, allocations: 15.95 kB / 492.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.1578, allocations: 19.98 kB / 492.7 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.1579, allocations: 40.5 kB / 492.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.158, allocations: 28.05 kB / 492.8 MB, free: 6.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1581, allocations: 148.4 kB / 492.9 MB, free: 6.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1581, allocations: 4.062 kB / 492.9 MB, free: 6.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005291/0.1587, allocations: 159.9 kB / 493.1 MB, free: 6.262 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.0004227/0.1591, allocations: 211.6 kB / 493.3 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.1605, allocations: 0.7792 MB / 494.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1606, allocations: 4 kB / 494.1 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009515/0.1615, allocations: 0.5252 MB / 494.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1619, allocations: 35.73 kB / 494.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.163, allocations: 0.667 MB / 495.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1633, allocations: 0.7822 MB / 496.1 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.1635, allocations: 54.92 kB / 496.1 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.529e-05/0.1636, allocations: 35.42 kB / 496.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1636, allocations: 0 / 496.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of Templates: time 0.013/0.1766, allocations: 8.395 MB / 0.4928 GB, free: 10.74 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)