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.001146/0.001146, allocations: 101.6 kB / 16.31 MB, free: 5.879 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.001154/0.001154, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05928/0.05928, allocations: 8.096 MB / 299.2 MB, free: 6.707 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 63.89 kB / 361.9 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2342, allocations: 51.51 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003386/0.2377, allocations: 2.859 MB / 416.2 MB, free: 22.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.2391, allocations: 1.125 MB / 417.3 MB, free: 21.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.2392, allocations: 8 kB / 417.4 MB, free: 21.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.2396, allocations: 139.2 kB / 417.5 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002923/0.2399, allocations: 143.1 kB / 417.6 MB, free: 21.27 MB / 302.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.001589/0.2415, allocations: 1.011 MB / 418.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.2417, allocations: 334.5 kB / 419 MB, free: 19.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.2419, allocations: 118.9 kB / 419.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.242, allocations: 159.4 kB / 419.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.2423, allocations: 199.2 kB / 419.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.2423, allocations: 28 kB / 419.5 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004111/0.2427, allocations: 307.7 kB / 419.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.168e-05/0.2428, allocations: 67.75 kB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.2429, allocations: 167.1 kB / 420 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004819/0.2434, allocations: 0.5437 MB / 420.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2434, allocations: 0 / 420.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2434, allocations: 0 / 420.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2434, allocations: 4 kB / 420.5 MB, free: 18.36 MB / 302.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.001986/0.2454, allocations: 0.836 MB / 421.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2455, allocations: 11.89 kB / 421.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.135e-05/0.2455, allocations: 70.72 kB / 421.5 MB, free: 17.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.127e-05/0.2456, allocations: 40.56 kB / 421.5 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.2459, allocations: 271.8 kB / 421.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.246, allocations: 84.62 kB / 421.8 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.246, allocations: 32.38 kB / 421.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.2465, allocations: 390.3 kB / 422.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2466, allocations: 3.938 kB / 422.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/0.2466, allocations: 12 kB / 422.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.2466, allocations: 8 kB / 422.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004546/0.2471, allocations: 358.5 kB / 422.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.2485, allocations: 1.367 MB / 424 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009371/0.2495, allocations: 0.5585 MB / 424.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.2497, allocations: 226.1 kB / 424.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.011e-05/0.2498, allocations: 12.44 kB / 424.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004461/0.2502, allocations: 313.3 kB / 425.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.974e-06/0.2503, allocations: 3.938 kB / 425.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002836/0.2531, allocations: 1.156 MB / 426.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.2531, allocations: 71.77 kB / 426.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.2533, allocations: 202.2 kB / 426.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.2533, allocations: 41.69 kB / 426.6 MB, free: 12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.2534, allocations: 140.8 kB / 426.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.053e-05/0.2535, allocations: 161.7 kB / 426.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.2536, allocations: 98.23 kB / 427 MB, free: 11.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.231e-05/0.2537, allocations: 338.8 kB / 427.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.2539, allocations: 197 kB / 427.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/0.2542, allocations: 262.4 kB / 427.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003899/0.2581, allocations: 1.258 MB / 429 MB, free: 9.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2582, allocations: 0 / 429 MB, free: 9.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001372/0.2595, allocations: 0.7842 MB / 429.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2596, allocations: 8 kB / 429.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2596, allocations: 0 / 429.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.2606, allocations: 320.1 kB / 430.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.2609, allocations: 71.89 kB / 430.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05772/0.3186, allocations: 2.969 MB / 433.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/0.319, allocations: 43.59 kB / 433.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.3191, allocations: 16 kB / 433.2 MB, free: 5.172 MB / 302.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.0002012/0.3193, allocations: 179.7 kB / 433.4 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.3194, allocations: 31.72 kB / 433.4 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.3209, allocations: 0.7959 MB / 434.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3209, allocations: 8 kB / 434.2 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3209, allocations: 3.938 kB / 434.2 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3209, allocations: 3.984 kB / 434.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.3227, allocations: 1.361 MB / 435.6 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3227, allocations: 4 kB / 435.6 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.3229, allocations: 63.84 kB / 435.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/0.3239, allocations: 303.9 kB / 435.9 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.3239, allocations: 12 kB / 435.9 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002957/0.3269, allocations: 2.912 MB / 438.9 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3269, allocations: 3.984 kB / 438.9 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.3288, allocations: 1.112 MB / 440 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.048e-05/0.3289, allocations: 104.7 kB / 440.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.3289, allocations: 15.94 kB / 440.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.3292, allocations: 24.05 kB / 440.1 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.3293, allocations: 52.38 kB / 440.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.3293, allocations: 19.98 kB / 440.2 MB, free: 13.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.3295, allocations: 148.3 kB / 440.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3295, allocations: 0 / 440.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005243/0.33, allocations: 163.8 kB / 440.5 MB, free: 13.62 MB / 318.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.002402/0.3324, allocations: 1.759 MB / 442.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.3339, allocations: 0.7948 MB / 443 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3339, allocations: 0 / 443 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000871/0.3348, allocations: 0.5291 MB / 443.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.3351, allocations: 34.33 kB / 443.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.3404, allocations: 3.867 MB / 447.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3407, allocations: 0.7861 MB / 448.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000165/0.3409, allocations: 54.92 kB / 448.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.341, allocations: 103.4 kB / 448.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of SimCode: time 1.673e-06/0.341, allocations: 0 / 448.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08483/0.4259, allocations: 11.39 MB / 459.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.6, allocations: 15.39 kB / 459.8 MB, free: 10.32 MB / 334.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)