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.0008108/0.0008109, allocations: 96.86 kB / 15.74 MB, free: 424 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.0008727/0.0008728, allocations: 173.8 kB / 16.62 MB, free: 6.613 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.26/1.26, allocations: 223.3 MB / 240.6 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.1516/0.1516, allocations: 8.086 MB / 299.8 MB, free: 2.965 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.00028, allocations: 12 kB / 363 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.09046, allocations: 52.5 MB / 415.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002638/0.09313, allocations: 2.425 MB / 417.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.09469, allocations: 1.032 MB / 418.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.09481, allocations: 4 kB / 418.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.09513, allocations: 99.53 kB / 419 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.09543, allocations: 119.3 kB / 419.1 MB, free: 4.922 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.001651/0.09709, allocations: 0.8216 MB / 420 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003541/0.09746, allocations: 298.5 kB / 420.3 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.09765, allocations: 101.8 kB / 420.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.09782, allocations: 123.5 kB / 420.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.0981, allocations: 179.3 kB / 420.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.716e-05/0.09816, allocations: 16 kB / 420.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005124/0.09868, allocations: 275.7 kB / 420.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.897e-05/0.09875, allocations: 51.77 kB / 421 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.567e-05/0.09884, allocations: 77.58 kB / 421.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000488/0.09933, allocations: 395.3 kB / 421.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.09935, allocations: 0 / 421.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09936, allocations: 0 / 421.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.09937, allocations: 0 / 421.4 MB, free: 2.609 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.001902/0.1013, allocations: 0.7813 MB / 422.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1013, allocations: 12.03 kB / 422.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.539e-05/0.1014, allocations: 70.53 kB / 422.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.935e-05/0.1015, allocations: 39.58 kB / 422.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.1018, allocations: 270.5 kB / 422.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.896e-05/0.1019, allocations: 80.06 kB / 422.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.1019, allocations: 31.98 kB / 422.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/0.1025, allocations: 381.9 kB / 423.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1026, allocations: 0 / 423.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.1026, allocations: 16 kB / 423.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1026, allocations: 11.95 kB / 423.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.1031, allocations: 366.5 kB / 423.5 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1611/0.2643, allocations: 1.357 MB / 424.8 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008687/0.2652, allocations: 0.5365 MB / 425.4 MB, free: 40.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.2655, allocations: 235.9 kB / 425.6 MB, free: 40.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.476e-05/0.2655, allocations: 18.73 kB / 425.6 MB, free: 40.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000448/0.266, allocations: 312.2 kB / 425.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.334e-06/0.266, allocations: 2.781 kB / 425.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002526/0.2685, allocations: 1.142 MB / 427.1 MB, free: 40.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.2686, allocations: 61.47 kB / 427.1 MB, free: 40 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.2687, allocations: 200.9 kB / 427.3 MB, free: 39.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.2688, allocations: 35.27 kB / 427.4 MB, free: 39.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.2688, allocations: 148.1 kB / 427.5 MB, free: 39.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.618e-05/0.2689, allocations: 168.3 kB / 427.7 MB, free: 39.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/0.2689, allocations: 10.22 kB / 427.7 MB, free: 39.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.269, allocations: 342.4 kB / 428 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/0.2693, allocations: 196.5 kB / 428.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/0.2696, allocations: 255.4 kB / 428.5 MB, free: 39.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.2698, allocations: 227.6 kB / 428.7 MB, free: 39.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.2699, allocations: 0 / 428.7 MB, free: 39.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001291/0.2712, allocations: 0.7732 MB / 429.5 MB, free: 39.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2712, allocations: 11.5 kB / 429.5 MB, free: 39.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2712, allocations: 0 / 429.5 MB, free: 39.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009823/0.2722, allocations: 309.5 kB / 429.8 MB, free: 39.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.2724, allocations: 65.94 kB / 429.8 MB, free: 39.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002898/0.2753, allocations: 2.731 MB / 432.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.2755, allocations: 45.86 kB / 432.6 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.2756, allocations: 22.36 kB / 432.6 MB, free: 37.85 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.0001469/0.2757, allocations: 164.5 kB / 432.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.232e-05/0.2758, allocations: 34.56 kB / 432.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.2773, allocations: 0.792 MB / 433.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.2773, allocations: 9.984 kB / 433.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.2773, allocations: 0 / 433.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.2773, allocations: 3.469 kB / 433.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.2791, allocations: 1.368 MB / 435 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2791, allocations: 0 / 435 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2793, allocations: 57.19 kB / 435 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009078/0.2802, allocations: 301.5 kB / 435.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.2802, allocations: 18.44 kB / 435.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.2829, allocations: 2.675 MB / 438 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2829, allocations: 8.156 kB / 438 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.2845, allocations: 1.111 MB / 439.2 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.2846, allocations: 111.2 kB / 439.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.2846, allocations: 14.62 kB / 439.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.2848, allocations: 24.8 kB / 439.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.674e-05/0.2849, allocations: 41.08 kB / 439.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.285, allocations: 24.52 kB / 439.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.578e-05/0.2851, allocations: 142.4 kB / 439.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2851, allocations: 0 / 439.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004761/0.2856, allocations: 174.8 kB / 439.7 MB, free: 34.04 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.002099/0.2877, allocations: 1.76 MB / 441.4 MB, free: 32.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.2888, allocations: 0.7691 MB / 442.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2889, allocations: 0 / 442.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007682/0.2896, allocations: 0.5111 MB / 442.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.29, allocations: 39.75 kB / 442.8 MB, free: 32.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.2933, allocations: 2.258 MB / 445 MB, free: 31.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.2935, allocations: 0.7852 MB / 445.8 MB, free: 30.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001636/0.2937, allocations: 52.41 kB / 445.9 MB, free: 30.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.2938, allocations: 103.9 kB / 446 MB, free: 30.26 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2938, allocations: 0 / 446 MB, free: 30.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.3176, allocations: 10.4 MB / 456.4 MB, free: 29.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/0.3178, allocations: 295.9 kB / 456.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.095, allocations: 0 / 456.6 MB, free: 29.14 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: