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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 107.1 kB / 17.8 MB, free: 5.277 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 187.8 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1451/0.1451, allocations: 8.088 MB / 306.7 MB, free: 2.613 MB / 238.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized") translateModel(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 67.88 kB / 423.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2093, allocations: 51.53 MB / 475.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002978/0.2123, allocations: 2.852 MB / 478.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2139, allocations: 1.132 MB / 479.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.412e-05/0.214, allocations: 4.938 kB / 479.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.2143, allocations: 142.6 kB / 479.5 MB, free: 18.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.2146, allocations: 140.1 kB / 479.7 MB, free: 18.75 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.001541/0.2161, allocations: 1.019 MB / 480.7 MB, free: 18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.2164, allocations: 341.6 kB / 481 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.2166, allocations: 131.6 kB / 481.2 MB, free: 17.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.2168, allocations: 139.9 kB / 481.3 MB, free: 17.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.217, allocations: 209.9 kB / 481.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.217, allocations: 29.06 kB / 481.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004204/0.2175, allocations: 304.5 kB / 481.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.309e-05/0.2175, allocations: 70.09 kB / 481.9 MB, free: 17.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.2177, allocations: 166.6 kB / 482.1 MB, free: 17.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005303/0.2182, allocations: 0.5402 MB / 482.6 MB, free: 16.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2182, allocations: 3.984 kB / 482.6 MB, free: 16.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2182, allocations: 1.25 kB / 482.6 MB, free: 16.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.2182, allocations: 0 / 482.6 MB, free: 16.84 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.001879/0.2201, allocations: 0.8564 MB / 483.5 MB, free: 16.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.2201, allocations: 9.938 kB / 483.5 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.681e-05/0.2202, allocations: 38.59 kB / 483.5 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.2205, allocations: 276.4 kB / 483.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.788e-05/0.2205, allocations: 81.81 kB / 483.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.2206, allocations: 32.56 kB / 483.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005165/0.2211, allocations: 379.1 kB / 484.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2211, allocations: 4.969 kB / 484.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.2212, allocations: 22.45 kB / 484.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.2212, allocations: 7.406 kB / 484.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004777/0.2217, allocations: 358.3 kB / 484.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.2229, allocations: 1.367 MB / 486 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009911/0.2239, allocations: 0.5516 MB / 486.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002913/0.2242, allocations: 233 kB / 486.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.278e-05/0.2243, allocations: 15.45 kB / 486.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004546/0.2248, allocations: 314.6 kB / 487.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.863e-06/0.2248, allocations: 0 / 487.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002799/0.2276, allocations: 1.16 MB / 488.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.2276, allocations: 57.44 kB / 488.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.2278, allocations: 202 kB / 488.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.2278, allocations: 36.95 kB / 488.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.333e-05/0.2279, allocations: 148.2 kB / 488.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.155e-05/0.228, allocations: 177.9 kB / 488.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.2281, allocations: 96.11 kB / 489 MB, free: 12.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.301e-05/0.2282, allocations: 336.6 kB / 489.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.2284, allocations: 195.7 kB / 489.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.2287, allocations: 259.6 kB / 489.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003951/0.2327, allocations: 1.251 MB / 491 MB, free: 10.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2327, allocations: 1.375 kB / 491 MB, free: 10.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001454/0.2342, allocations: 0.7923 MB / 491.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2342, allocations: 5.5 kB / 491.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.2342, allocations: 1.375 kB / 491.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.2353, allocations: 309.8 kB / 492.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.2356, allocations: 69 kB / 492.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003147/0.2387, allocations: 2.975 MB / 495.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.239, allocations: 44.81 kB / 495.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.239, allocations: 21.56 kB / 495.2 MB, free: 7.844 MB / 350.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.0001606/0.2392, allocations: 165 kB / 495.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.2392, allocations: 38.66 kB / 495.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.2408, allocations: 0.7896 MB / 496.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2408, allocations: 11.92 kB / 496.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.2408, allocations: 0 / 496.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2408, allocations: 3.938 kB / 496.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.2426, allocations: 1.374 MB / 497.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2426, allocations: 0 / 497.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2428, allocations: 51.92 kB / 497.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.2438, allocations: 304.5 kB / 497.9 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.2438, allocations: 15.98 kB / 497.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0028/0.2466, allocations: 2.914 MB / 0.4891 GB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2466, allocations: 0 / 0.4891 GB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.2483, allocations: 1.109 MB / 0.4902 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.2483, allocations: 116.9 kB / 0.4903 GB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.474e-05/0.2484, allocations: 15.95 kB / 0.4903 GB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.2486, allocations: 26.59 kB / 0.4904 GB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.934e-05/0.2487, allocations: 40.5 kB / 0.4904 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.2488, allocations: 28.06 kB / 0.4904 GB, free: 0.8711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.867e-05/0.2489, allocations: 151.1 kB / 0.4906 GB, free: 0.7227 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2489, allocations: 0 / 0.4906 GB, free: 0.7227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004713/0.2494, allocations: 151.9 kB / 0.4907 GB, free: 0.5742 MB / 350.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.0004269/0.2498, allocations: 232.2 kB / 0.4909 GB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.2511, allocations: 0.7754 MB / 0.4917 GB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2511, allocations: 0 / 0.4917 GB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009669/0.2521, allocations: 0.5253 MB / 0.4922 GB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.2525, allocations: 43.67 kB / 0.4922 GB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.2536, allocations: 0.696 MB / 0.4929 GB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.254, allocations: 0.7861 MB / 0.4937 GB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.711e-05/0.2541, allocations: 39.42 kB / 0.4937 GB, free: 13.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.963e-06/0.2541, allocations: 0 / 0.4937 GB, free: 13.41 MB / 366.1 MB Notification: Performance of Templates: time 0.00986/0.264, allocations: 6.959 MB / 0.5005 GB, free: 6.461 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.3162593068555] Failed to read output from testmodel.py, exit status != 0: 0.2709809630177915 0.283582678 0.062794001 Calling exit ...