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.00125/0.001251, allocations: 103.5 kB / 16.45 MB, free: 6.441 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.001357/0.001357, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.38/1.38, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05433/0.05433, allocations: 8.089 MB / 299.3 MB, free: 6.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 63.89 kB / 414.5 MB, free: 21.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1168, allocations: 51.51 MB / 466 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.004941/0.1218, allocations: 2.871 MB / 468.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.1244, allocations: 1.121 MB / 470 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003185/0.1247, allocations: 7.938 kB / 470 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005413/0.1253, allocations: 147.2 kB / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005986/0.1259, allocations: 135.1 kB / 470.3 MB, free: 13.88 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.002269/0.1282, allocations: 1.023 MB / 471.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006774/0.1289, allocations: 330.5 kB / 471.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.1292, allocations: 130.9 kB / 471.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.1295, allocations: 139.5 kB / 471.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003943/0.1299, allocations: 211.2 kB / 472.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.191e-05/0.13, allocations: 35.94 kB / 472.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007141/0.1307, allocations: 299.7 kB / 472.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1308, allocations: 75.69 kB / 472.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.131, allocations: 171.1 kB / 472.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1321, allocations: 0.5375 MB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1321, allocations: 0 / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1321, allocations: 4 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.1321, allocations: 0 / 473.2 MB, free: 10.95 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.002565/0.1347, allocations: 0.8361 MB / 474 MB, free: 10.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.1347, allocations: 12.03 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.1349, allocations: 44.47 kB / 474.1 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/0.1354, allocations: 267.8 kB / 474.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.1355, allocations: 88.61 kB / 474.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.898e-05/0.1356, allocations: 32.38 kB / 474.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.1363, allocations: 382.6 kB / 474.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.1363, allocations: 3.938 kB / 474.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.1363, allocations: 12 kB / 474.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1364, allocations: 4 kB / 474.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006267/0.137, allocations: 366.5 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.1389, allocations: 1.363 MB / 476.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.1401, allocations: 0.5547 MB / 477.1 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.1404, allocations: 226.1 kB / 477.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.6e-05/0.1405, allocations: 20.36 kB / 477.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006139/0.1411, allocations: 305.2 kB / 477.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.374e-06/0.1412, allocations: 4 kB / 477.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003142/0.1443, allocations: 1.156 MB / 478.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.1444, allocations: 63.84 kB / 478.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.1446, allocations: 202.2 kB / 479.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.1446, allocations: 37.7 kB / 479.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.1448, allocations: 144.8 kB / 479.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.1449, allocations: 165.6 kB / 479.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.1451, allocations: 98.23 kB / 479.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1452, allocations: 338.8 kB / 479.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003264/0.1456, allocations: 197 kB / 480.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000349/0.1459, allocations: 262.3 kB / 480.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004229/0.1502, allocations: 1.254 MB / 481.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1502, allocations: 0 / 481.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001606/0.1518, allocations: 0.7842 MB / 482.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1518, allocations: 11.94 kB / 482.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1518, allocations: 0 / 482.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.1531, allocations: 304.6 kB / 482.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.1533, allocations: 75.83 kB / 482.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.1575, allocations: 2.976 MB / 485.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.1577, allocations: 31.69 kB / 485.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.1578, allocations: 19.98 kB / 485.8 MB, free: 13.87 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.0002499/0.158, allocations: 170.1 kB / 485.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.517e-05/0.1581, allocations: 39.55 kB / 486 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.1599, allocations: 0.7881 MB / 486.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.1599, allocations: 8 kB / 486.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1599, allocations: 4 kB / 486.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.16, allocations: 7.922 kB / 486.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.1623, allocations: 1.37 MB / 488.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1623, allocations: 4 kB / 488.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.1625, allocations: 51.92 kB / 488.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.1636, allocations: 311.4 kB / 488.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.133e-05/0.1637, allocations: 12 kB / 488.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003882/0.1676, allocations: 2.905 MB / 491.4 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1676, allocations: 0 / 491.4 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/0.1698, allocations: 1.117 MB / 492.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.623e-05/0.1699, allocations: 108.6 kB / 492.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.1699, allocations: 15.98 kB / 492.7 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.1702, allocations: 19.98 kB / 492.7 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.1703, allocations: 44.5 kB / 492.7 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-05/0.1704, allocations: 19.94 kB / 492.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.1705, allocations: 144.4 kB / 492.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1705, allocations: 0 / 492.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.1712, allocations: 167.9 kB / 493 MB, free: 6.34 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.0005253/0.1718, allocations: 218.7 kB / 493.3 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.1734, allocations: 0.7715 MB / 494 MB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1734, allocations: 0 / 494 MB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009615/0.1744, allocations: 0.5291 MB / 494.6 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003867/0.1748, allocations: 35.75 kB / 494.6 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.1761, allocations: 0.6601 MB / 495.3 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.1764, allocations: 0.7899 MB / 496 MB, free: 3.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.1766, allocations: 50.94 kB / 496.1 MB, free: 3.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.301e-05/0.1767, allocations: 31.44 kB / 496.1 MB, free: 3.199 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1767, allocations: 0 / 496.1 MB, free: 3.199 MB / 366.1 MB Notification: Performance of Templates: time 0.0157/0.1924, allocations: 8.388 MB / 0.4927 GB, free: 10.84 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)