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: "" <> 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.0008257/0.0008257, allocations: 95.89 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008298/0.0008299, allocations: 179.2 kB / 16.61 MB, free: 6.891 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.222/1.222, allocations: 223.2 MB / 240.5 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1405/0.1405, allocations: 8.088 MB / 299.7 MB, free: 2.863 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002796, allocations: 15.98 kB / 362.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08413, allocations: 52.5 MB / 415.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002435/0.08659, allocations: 2.325 MB / 417.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.08807, allocations: 1.036 MB / 418.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.339e-05/0.08816, allocations: 4 kB / 418.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.0884, allocations: 95.45 kB / 418.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002472/0.08866, allocations: 139.6 kB / 419 MB, free: 5.059 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.001422/0.09009, allocations: 0.8098 MB / 419.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.09037, allocations: 235.4 kB / 420 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.09054, allocations: 97.78 kB / 420.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.09066, allocations: 119.5 kB / 420.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.09088, allocations: 167.4 kB / 420.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.09092, allocations: 16 kB / 420.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003681/0.09129, allocations: 239.6 kB / 420.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.153e-05/0.09136, allocations: 55.73 kB / 420.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.055e-05/0.09143, allocations: 77.58 kB / 420.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000401/0.09184, allocations: 379.4 kB / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.09185, allocations: 0 / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09185, allocations: 0 / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.09186, allocations: 0 / 421.1 MB, free: 2.883 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.001925/0.09379, allocations: 0.7891 MB / 421.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.09383, allocations: 12.03 kB / 421.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/0.09392, allocations: 66.53 kB / 422 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.402e-05/0.094, allocations: 43.58 kB / 422 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.09431, allocations: 270.5 kB / 422.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.564e-05/0.09438, allocations: 80.06 kB / 422.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.09445, allocations: 28 kB / 422.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005638/0.09502, allocations: 385.9 kB / 422.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.09503, allocations: 0 / 422.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.09507, allocations: 12 kB / 422.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.09509, allocations: 11.95 kB / 422.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005216/0.09561, allocations: 362.5 kB / 423.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1462/0.2418, allocations: 1.367 MB / 424.5 MB, free: 39.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009947/0.2428, allocations: 0.5408 MB / 425.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.287e-05/0.2429, allocations: 12.23 kB / 425.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004617/0.2433, allocations: 309.1 kB / 425.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.415e-06/0.2434, allocations: 0 / 425.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002747/0.2461, allocations: 1.144 MB / 426.5 MB, free: 39.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.2462, allocations: 63.78 kB / 426.6 MB, free: 39.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.2463, allocations: 199.1 kB / 426.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.2464, allocations: 35.92 kB / 426.8 MB, free: 39.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.371e-05/0.2464, allocations: 148.5 kB / 427 MB, free: 39.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.244e-05/0.2465, allocations: 165.5 kB / 427.1 MB, free: 39.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.2466, allocations: 7.625 kB / 427.1 MB, free: 39.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.2466, allocations: 344 kB / 427.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.2469, allocations: 195.9 kB / 427.7 MB, free: 38.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.2472, allocations: 256.2 kB / 427.9 MB, free: 38.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.2475, allocations: 223.6 kB / 428.1 MB, free: 38.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2475, allocations: 0 / 428.1 MB, free: 38.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001378/0.2489, allocations: 0.7789 MB / 428.9 MB, free: 38.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2489, allocations: 12.03 kB / 428.9 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2489, allocations: 3.25 kB / 428.9 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.2501, allocations: 303.4 kB / 429.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.2503, allocations: 72.94 kB / 429.3 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.2535, allocations: 2.808 MB / 432.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.2538, allocations: 38.56 kB / 432.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.2538, allocations: 23.56 kB / 432.2 MB, free: 37.42 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: myFailure.seed:DISCRETE(fixed = true protected = true ) type: Integer myFailure.F:VARIABLE(start = 0.0 fixed = true ) "cumulative distribution function" type: Real myFailure.r:DISCRETE(fixed = true ) "random numbers" type: Real myFailure.componentIsWorking:DISCRETE(start = true fixed = true ) type: Boolean 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,$whenCondition3,$whenCondition2,$whenCondition1,n.y,myFailure.y,$PRE.myFailure.componentIsWorking,myFailure.componentIsWorking,$PRE.myFailure.r,myFailure.r) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001643/0.254, allocations: 169.2 kB / 432.3 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.254, allocations: 35.69 kB / 432.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.2556, allocations: 0.7957 MB / 433.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.2556, allocations: 14.25 kB / 433.2 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2556, allocations: 0.6562 kB / 433.2 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2556, allocations: 3.141 kB / 433.2 MB, free: 37.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.2576, allocations: 1.371 MB / 434.5 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.2576, allocations: 0.5 kB / 434.5 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.2578, allocations: 57.39 kB / 434.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.2588, allocations: 293.6 kB / 434.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.2589, allocations: 21.39 kB / 434.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.2617, allocations: 2.756 MB / 437.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2618, allocations: 3.562 kB / 437.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.2634, allocations: 1.097 MB / 438.8 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.2635, allocations: 117.7 kB / 438.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.2635, allocations: 15.16 kB / 438.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.2638, allocations: 22.81 kB / 438.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/0.2639, allocations: 47.19 kB / 439 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.2639, allocations: 20.92 kB / 439 MB, free: 33.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.2641, allocations: 148.2 kB / 439.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2641, allocations: 0 / 439.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000505/0.2646, allocations: 170.1 kB / 439.3 MB, free: 33.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.002156/0.2667, allocations: 1.757 MB / 441.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.2679, allocations: 0.7624 MB / 441.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2679, allocations: 0 / 441.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007636/0.2687, allocations: 0.5195 MB / 442.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.269, allocations: 32.28 kB / 442.4 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.2702, allocations: 1.685 MB / 444.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.2704, allocations: 0.7946 MB / 444.8 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.2705, allocations: 47.23 kB / 444.9 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.2707, allocations: 101.4 kB / 445 MB, free: 29.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2707, allocations: 0 / 445 MB, free: 29.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.2912, allocations: 10.3 MB / 455.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/0.2914, allocations: 291.8 kB / 455.6 MB, free: 28.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/2.018, allocations: 2.5 kB / 455.6 MB, free: 28.66 MB / 350.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/linux/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) Environment - environmentSimulation: