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.00134/0.00134, allocations: 119 kB / 17.13 MB, free: 5.906 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.00139/0.00139, allocations: 197.1 kB / 18.06 MB, free: 4.988 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.35/1.35, allocations: 222.9 MB / 241.8 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.04624/0.04624, allocations: 8.1 MB / 300 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.91 kB / 415.2 MB, free: 21.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.0919, allocations: 51.51 MB / 466.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.004073/0.09602, allocations: 2.859 MB / 469.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.09818, allocations: 1.133 MB / 470.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003057/0.09851, allocations: 8 kB / 470.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004624/0.09898, allocations: 135.2 kB / 470.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005213/0.09955, allocations: 143.1 kB / 471 MB, free: 13.84 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.002095/0.1017, allocations: 1.031 MB / 472 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005137/0.1022, allocations: 326.5 kB / 472.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.1024, allocations: 130.9 kB / 472.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.1027, allocations: 143.5 kB / 472.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003345/0.103, allocations: 207.2 kB / 472.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.486e-05/0.1031, allocations: 28 kB / 472.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006158/0.1037, allocations: 307.7 kB / 473.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.733e-05/0.1038, allocations: 75.69 kB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.104, allocations: 163.1 kB / 473.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000802/0.1048, allocations: 0.5414 MB / 473.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1048, allocations: 0 / 473.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1049, allocations: 3.984 kB / 473.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.1049, allocations: 4 kB / 473.9 MB, free: 10.9 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.002343/0.1072, allocations: 0.84 MB / 474.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1073, allocations: 8.031 kB / 474.7 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.1074, allocations: 40.47 kB / 474.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.1078, allocations: 279.8 kB / 475 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.836e-05/0.1079, allocations: 80.62 kB / 475.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.823e-05/0.1079, allocations: 28.38 kB / 475.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006325/0.1086, allocations: 378.6 kB / 475.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1086, allocations: 7.938 kB / 475.5 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.737e-05/0.1086, allocations: 15.98 kB / 475.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1086, allocations: 8 kB / 475.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005587/0.1092, allocations: 362.5 kB / 475.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.111, allocations: 1.363 MB / 477.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.1121, allocations: 0.5469 MB / 477.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003387/0.1124, allocations: 238 kB / 478.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.264e-05/0.1125, allocations: 12.42 kB / 478.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005842/0.1131, allocations: 317.2 kB / 478.4 MB, free: 6.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.214e-06/0.1131, allocations: 0 / 478.4 MB, free: 6.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.00316/0.1163, allocations: 1.152 MB / 479.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.1163, allocations: 55.84 kB / 479.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.1165, allocations: 198.3 kB / 479.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.1166, allocations: 37.7 kB / 479.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.97e-05/0.1167, allocations: 152.8 kB / 480 MB, free: 4.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1168, allocations: 169.6 kB / 480.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.117, allocations: 94.23 kB / 480.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1171, allocations: 338.8 kB / 480.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.1174, allocations: 197 kB / 480.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.1178, allocations: 258.3 kB / 481 MB, free: 3.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004337/0.1221, allocations: 1.258 MB / 482.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1221, allocations: 0 / 482.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001668/0.1238, allocations: 0.7842 MB / 483 MB, free: 1.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1238, allocations: 4 kB / 483 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1238, allocations: 4 kB / 483 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.1251, allocations: 304.6 kB / 483.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.1254, allocations: 75.84 kB / 483.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004553/0.13, allocations: 2.965 MB / 486.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.1303, allocations: 39.73 kB / 486.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.112e-05/0.1303, allocations: 16 kB / 486.4 MB, free: 13.84 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.0002668/0.1306, allocations: 174.2 kB / 486.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-05/0.1307, allocations: 35.56 kB / 486.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.1325, allocations: 0.796 MB / 487.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1325, allocations: 7.984 kB / 487.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.1325, allocations: 0 / 487.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1325, allocations: 7.938 kB / 487.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.1348, allocations: 1.366 MB / 488.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.1349, allocations: 3.938 kB / 488.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.1351, allocations: 51.98 kB / 488.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.1363, allocations: 300.4 kB / 489.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.1363, allocations: 19.92 kB / 489.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004124/0.1404, allocations: 2.918 MB / 492.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1405, allocations: 0 / 492.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.1427, allocations: 1.109 MB / 493.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.1428, allocations: 120.6 kB / 493.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.1429, allocations: 8 kB / 493.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/0.1432, allocations: 19.98 kB / 493.4 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.1433, allocations: 44.56 kB / 493.4 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/0.1434, allocations: 28.06 kB / 493.4 MB, free: 6.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.1435, allocations: 151.1 kB / 493.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1435, allocations: 0 / 493.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006163/0.1441, allocations: 159.9 kB / 493.7 MB, free: 6.289 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.0005012/0.1447, allocations: 219.3 kB / 493.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.1462, allocations: 0.7715 MB / 494.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1462, allocations: 0 / 494.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009878/0.1472, allocations: 0.533 MB / 495.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.1476, allocations: 42.17 kB / 495.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.1489, allocations: 0.6774 MB / 496 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.1493, allocations: 0.7899 MB / 496.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.1494, allocations: 43.42 kB / 496.8 MB, free: 3.156 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1494, allocations: 4 kB / 496.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of Templates: time 0.01061/0.16, allocations: 6.906 MB / 0.4919 GB, free: 12.25 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)