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: "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 101.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.001133/0.001133, allocations: 189.4 kB / 17.38 MB, free: 5.668 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.291/1.291, 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-master/package.mo): time 0.04403/0.04403, allocations: 8.102 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.00115, allocations: 59.91 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.0892, allocations: 51.52 MB / 465.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003662/0.0929, allocations: 2.851 MB / 468.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.09474, allocations: 1.136 MB / 469.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.09486, allocations: 4 kB / 469.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003616/0.09524, allocations: 139.2 kB / 469.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003136/0.09557, allocations: 147.1 kB / 469.8 MB, free: 14.33 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.001805/0.09738, allocations: 1.023 MB / 470.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.09776, allocations: 338.5 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.09797, allocations: 122.9 kB / 471.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.09811, allocations: 143.5 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002476/0.09836, allocations: 219.2 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.09841, allocations: 28 kB / 471.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004767/0.09889, allocations: 307.7 kB / 471.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.09897, allocations: 71.69 kB / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.09913, allocations: 159.2 kB / 472.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.09975, allocations: 0.549 MB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.09977, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09977, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.09978, allocations: 0 / 472.7 MB, free: 11.39 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.002029/0.1018, allocations: 0.8322 MB / 473.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1019, allocations: 15.89 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.359e-05/0.1019, allocations: 74.66 kB / 473.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.137e-05/0.102, allocations: 44.47 kB / 473.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.1024, allocations: 267.9 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.301e-05/0.1024, allocations: 80.62 kB / 474 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.471e-05/0.1025, allocations: 36.31 kB / 474.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.1031, allocations: 382.3 kB / 474.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1031, allocations: 0 / 474.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.1032, allocations: 23.98 kB / 474.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1032, allocations: 4 kB / 474.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005254/0.1037, allocations: 358.5 kB / 474.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.1053, allocations: 1.363 MB / 476.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.1063, allocations: 0.5547 MB / 476.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.1066, allocations: 230.1 kB / 476.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.759e-05/0.1067, allocations: 12.44 kB / 477 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005505/0.1073, allocations: 321.2 kB / 477.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.844e-06/0.1073, allocations: 0 / 477.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002909/0.1102, allocations: 1.156 MB / 478.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.1102, allocations: 59.84 kB / 478.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.1104, allocations: 194.3 kB / 478.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.1105, allocations: 37.7 kB / 478.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.205e-05/0.1106, allocations: 148.8 kB / 478.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.1107, allocations: 169.6 kB / 479 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.1109, allocations: 98.23 kB / 479.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.111, allocations: 338.8 kB / 479.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003145/0.1113, allocations: 197 kB / 479.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.1117, allocations: 254.4 kB / 479.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00403/0.1157, allocations: 1.258 MB / 481.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1157, allocations: 0 / 481.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001557/0.1173, allocations: 0.7842 MB / 481.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1173, allocations: 8 kB / 481.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1173, allocations: 0 / 481.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.1184, allocations: 304.6 kB / 482.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.1187, allocations: 67.91 kB / 482.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003806/0.1225, allocations: 2.969 MB / 485.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.1228, allocations: 39.73 kB / 485.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.1228, allocations: 16 kB / 485.3 MB, free: 14.25 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.0002482/0.1231, allocations: 189.9 kB / 485.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.449e-05/0.1232, allocations: 31.72 kB / 485.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.1248, allocations: 0.7881 MB / 486.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.1248, allocations: 11.98 kB / 486.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1248, allocations: 3.938 kB / 486.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1249, allocations: 0 / 486.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.1272, allocations: 1.366 MB / 487.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.463e-06/0.1272, allocations: 7.938 kB / 487.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.1274, allocations: 55.91 kB / 487.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.1285, allocations: 303.5 kB / 488.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.1285, allocations: 15.98 kB / 488.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003694/0.1322, allocations: 2.913 MB / 491 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1323, allocations: 3.938 kB / 491 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.1343, allocations: 1.109 MB / 492.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1344, allocations: 116.6 kB / 492.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.1345, allocations: 12 kB / 492.2 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.1347, allocations: 19.98 kB / 492.3 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.1349, allocations: 44.44 kB / 492.3 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.058e-05/0.1349, allocations: 19.98 kB / 492.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.1351, allocations: 152.3 kB / 492.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1351, allocations: 0 / 492.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006407/0.1357, allocations: 159.9 kB / 492.6 MB, free: 6.707 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.002685/0.1384, allocations: 1.77 MB / 494.4 MB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.14, allocations: 0.7715 MB / 495.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.14, allocations: 256 / 495.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009542/0.1409, allocations: 0.5211 MB / 495.7 MB, free: 3.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.1414, allocations: 42.48 kB / 495.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.1474, allocations: 3.876 MB / 499.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.1477, allocations: 0.7861 MB / 0.4887 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.1479, allocations: 50.92 kB / 0.4887 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.1481, allocations: 107.4 kB / 0.4888 GB, free: 14.62 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1481, allocations: 0 / 0.4888 GB, free: 14.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0361/0.1842, allocations: 11.57 MB / 0.5001 GB, free: 3.262 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.73, allocations: 9.906 kB / 0.5001 GB, free: 3.254 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1)