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.0008008/0.000801, allocations: 101.6 kB / 16.07 MB, free: 32 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.0009269/0.0009268, allocations: 181 kB / 16.97 MB, free: 6.879 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.281/1.281, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1519/0.1519, allocations: 8.087 MB / 300.2 MB, free: 2.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004885/0.0004885, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1057, allocations: 52.52 MB / 416.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002759/0.1085, allocations: 2.521 MB / 418.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1103, allocations: 1.106 MB / 419.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1104, allocations: 8 kB / 419.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000337/0.1107, allocations: 127.4 kB / 419.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.111, allocations: 123.3 kB / 420 MB, free: 4.391 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.001722/0.1128, allocations: 0.9421 MB / 420.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003361/0.1131, allocations: 322.5 kB / 421.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.1133, allocations: 107.5 kB / 421.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.1134, allocations: 119.5 kB / 421.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.1137, allocations: 195.2 kB / 421.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.1137, allocations: 16 kB / 421.7 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004773/0.1142, allocations: 283.7 kB / 422 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.348e-05/0.1143, allocations: 59.7 kB / 422 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.1144, allocations: 176.8 kB / 422.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005899/0.115, allocations: 0.5182 MB / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.115, allocations: 0 / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1151, allocations: 0 / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1151, allocations: 0 / 422.7 MB, free: 1.664 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.002135/0.1172, allocations: 0.7777 MB / 423.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1173, allocations: 8.031 kB / 423.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.151e-05/0.1174, allocations: 70.72 kB / 423.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.726e-05/0.1174, allocations: 40.5 kB / 423.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.1178, allocations: 283.7 kB / 423.9 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.463e-05/0.1179, allocations: 80.62 kB / 424 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.061e-05/0.1179, allocations: 32.38 kB / 424 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1524/0.2704, allocations: 382 kB / 424.4 MB, free: 41.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.2704, allocations: 3.188 kB / 424.4 MB, free: 41.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.2705, allocations: 15.47 kB / 424.4 MB, free: 41.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.2705, allocations: 5.875 kB / 424.4 MB, free: 41.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005802/0.2711, allocations: 365.8 kB / 424.7 MB, free: 41.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.2727, allocations: 1.358 MB / 426.1 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009808/0.2737, allocations: 0.5503 MB / 426.7 MB, free: 40.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.274, allocations: 231 kB / 426.9 MB, free: 40.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-05/0.274, allocations: 14.14 kB / 426.9 MB, free: 40.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004783/0.2745, allocations: 315.9 kB / 427.2 MB, free: 40.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.875e-06/0.2745, allocations: 0.75 kB / 427.2 MB, free: 40.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002919/0.2775, allocations: 1.161 MB / 428.4 MB, free: 40.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.2775, allocations: 64.64 kB / 428.4 MB, free: 40.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.2777, allocations: 196.1 kB / 428.6 MB, free: 40.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.2777, allocations: 38.95 kB / 428.7 MB, free: 40.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.621e-05/0.2778, allocations: 150.2 kB / 428.8 MB, free: 40.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.099e-05/0.2779, allocations: 164 kB / 429 MB, free: 39.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.704e-05/0.2779, allocations: 52.52 kB / 429 MB, free: 39.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.975e-05/0.278, allocations: 337.9 kB / 429.3 MB, free: 39.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.2783, allocations: 201.6 kB / 429.5 MB, free: 39.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.2786, allocations: 255.6 kB / 429.8 MB, free: 39.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004129/0.2827, allocations: 1.276 MB / 431.1 MB, free: 39.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2827, allocations: 0 / 431.1 MB, free: 39.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001504/0.2842, allocations: 0.7868 MB / 431.9 MB, free: 39.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.2843, allocations: 3.25 kB / 431.9 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2843, allocations: 3.906 kB / 431.9 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.2854, allocations: 310.2 kB / 432.2 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.2857, allocations: 67.88 kB / 432.2 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003187/0.2889, allocations: 2.737 MB / 435 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.2891, allocations: 48.66 kB / 435 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.2892, allocations: 20.69 kB / 435 MB, free: 37.57 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.0001838/0.2894, allocations: 171.4 kB / 435.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.857e-05/0.2894, allocations: 36.03 kB / 435.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.291, allocations: 0.7927 MB / 436 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.291, allocations: 6.625 kB / 436 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2911, allocations: 0 / 436 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.2911, allocations: 3.328 kB / 436 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00203/0.2931, allocations: 1.382 MB / 437.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2931, allocations: 0 / 437.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.2933, allocations: 51.77 kB / 437.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.2944, allocations: 306 kB / 437.8 MB, free: 36.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.2945, allocations: 12.25 kB / 437.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.2974, allocations: 2.683 MB / 440.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2974, allocations: 3.938 kB / 440.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.2992, allocations: 1.112 MB / 441.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.2993, allocations: 113.3 kB / 441.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.2994, allocations: 15.19 kB / 441.7 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.2996, allocations: 24 kB / 441.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.2998, allocations: 52.97 kB / 441.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.2998, allocations: 20.06 kB / 441.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.2999, allocations: 143.8 kB / 441.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2999, allocations: 0 / 441.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005534/0.3005, allocations: 167.9 kB / 442.1 MB, free: 33.35 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.002301/0.3028, allocations: 1.767 MB / 443.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.3042, allocations: 0.774 MB / 444.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3042, allocations: 0 / 444.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008108/0.305, allocations: 0.5175 MB / 445.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.3054, allocations: 38.48 kB / 445.2 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005076/0.3105, allocations: 4.008 MB / 449.2 MB, free: 29.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.3107, allocations: 0.7857 MB / 450 MB, free: 28.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.3109, allocations: 52.06 kB / 450 MB, free: 28.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.311, allocations: 104.5 kB / 450.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.311, allocations: 0 / 450.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.3328, allocations: 10.55 MB / 460.7 MB, free: 27.54 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.333, allocations: 308.7 kB / 461 MB, free: 27.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.24, allocations: 2.656 kB / 461 MB, free: 27.16 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/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)