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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 116.6 kB / 17.17 MB, free: 5.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 195.7 kB / 20.12 MB, free: 2.809 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 225.6 MB / 248.5 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05131/0.05131, allocations: 8.228 MB / 311.6 MB, free: 2.109 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002692/0.002692, allocations: 67.89 kB / 434 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3525, allocations: 54.35 MB / 488.3 MB, free: 27.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.00464/0.3571, allocations: 2.874 MB / 491.2 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.3595, allocations: 1.142 MB / 492.3 MB, free: 24.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.3596, allocations: 4.656 kB / 492.3 MB, free: 24.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004742/0.3601, allocations: 139.4 kB / 492.5 MB, free: 24.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000423/0.3605, allocations: 144.2 kB / 492.6 MB, free: 24.11 MB / 366.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.002317/0.3629, allocations: 1.031 MB / 493.7 MB, free: 23.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000446/0.3633, allocations: 342.2 kB / 494 MB, free: 23.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.3635, allocations: 87.81 kB / 494.1 MB, free: 23.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.3637, allocations: 144.2 kB / 494.2 MB, free: 23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002951/0.364, allocations: 201.5 kB / 494.4 MB, free: 22.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.364, allocations: 28.88 kB / 494.4 MB, free: 22.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006422/0.3647, allocations: 314 kB / 494.7 MB, free: 22.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.388e-05/0.3647, allocations: 74.69 kB / 494.8 MB, free: 22.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.3649, allocations: 165.9 kB / 495 MB, free: 22.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007789/0.3657, allocations: 0.5483 MB / 495.5 MB, free: 22.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3657, allocations: 0 / 495.5 MB, free: 22.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3657, allocations: 0 / 495.5 MB, free: 22.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.3657, allocations: 5.25 kB / 495.5 MB, free: 22.18 MB / 366.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.002798/0.3685, allocations: 0.8447 MB / 496.4 MB, free: 21.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3685, allocations: 13.73 kB / 496.4 MB, free: 21.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.929e-05/0.3686, allocations: 72.53 kB / 496.5 MB, free: 21.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.3687, allocations: 38.66 kB / 496.5 MB, free: 21.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.3691, allocations: 274 kB / 496.8 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.691e-05/0.3692, allocations: 81.59 kB / 496.9 MB, free: 21.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.919e-05/0.3693, allocations: 36.66 kB / 496.9 MB, free: 21.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007914/0.37, allocations: 387 kB / 497.3 MB, free: 20.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.3701, allocations: 0 / 497.3 MB, free: 20.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.548e-05/0.3701, allocations: 11.66 kB / 497.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.3701, allocations: 6.906 kB / 497.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007227/0.3708, allocations: 365.5 kB / 497.6 MB, free: 20.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.3727, allocations: 1.36 MB / 499 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.3741, allocations: 0.5079 MB / 499.5 MB, free: 19.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004167/0.3745, allocations: 201.7 kB / 499.7 MB, free: 19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.169e-05/0.3746, allocations: 10.72 kB / 499.7 MB, free: 18.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000721/0.3753, allocations: 307.6 kB / 0.4883 GB, free: 18.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.735e-06/0.3753, allocations: 0 / 0.4883 GB, free: 18.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004154/0.3794, allocations: 1.15 MB / 0.4894 GB, free: 18.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.3795, allocations: 62.69 kB / 0.4895 GB, free: 18.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.3797, allocations: 202 kB / 0.4897 GB, free: 17.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.3798, allocations: 37.45 kB / 0.4897 GB, free: 17.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.3798, allocations: 143.4 kB / 0.4898 GB, free: 17.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.38, allocations: 179.6 kB / 0.49 GB, free: 17.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.3801, allocations: 95.61 kB / 0.4901 GB, free: 17.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.203e-05/0.3802, allocations: 336.2 kB / 0.4904 GB, free: 17.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/0.3806, allocations: 207.4 kB / 0.4906 GB, free: 17.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.3811, allocations: 254.8 kB / 0.4909 GB, free: 16.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00571/0.3868, allocations: 1.257 MB / 0.4921 GB, free: 16.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3868, allocations: 0 / 0.4921 GB, free: 16.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002234/0.389, allocations: 0.7755 MB / 0.4929 GB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.3891, allocations: 5.844 kB / 0.4929 GB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3891, allocations: 1.719 kB / 0.4929 GB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.3907, allocations: 303.1 kB / 0.4931 GB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.3911, allocations: 77.5 kB / 0.4932 GB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005111/0.3962, allocations: 2.973 MB / 0.4961 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.3966, allocations: 41.94 kB / 0.4962 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-05/0.3966, allocations: 17.81 kB / 0.4962 GB, free: 13.19 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.0002871/0.3969, allocations: 181.3 kB / 0.4964 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.397, allocations: 34.42 kB / 0.4964 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.3993, allocations: 0.7773 MB / 0.4971 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.3994, allocations: 5.656 kB / 0.4972 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3994, allocations: 9.375 kB / 0.4972 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3994, allocations: 3.984 kB / 0.4972 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.4023, allocations: 1.359 MB / 0.4985 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4023, allocations: 0 / 0.4985 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.4026, allocations: 54.53 kB / 0.4985 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/0.4041, allocations: 303.9 kB / 0.4988 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.822e-05/0.4042, allocations: 15.48 kB / 0.4989 GB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00462/0.4088, allocations: 2.909 MB / 0.5017 GB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4088, allocations: 1.844 kB / 0.5017 GB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.4115, allocations: 1.1 MB / 0.5028 GB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.4116, allocations: 114.3 kB / 0.5029 GB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.104e-05/0.4117, allocations: 19.39 kB / 0.5029 GB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.4121, allocations: 31.17 kB / 0.5029 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.4122, allocations: 49 kB / 0.503 GB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.591e-05/0.4123, allocations: 21.3 kB / 0.503 GB, free: 8.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.4125, allocations: 147 kB / 0.5031 GB, free: 8.051 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4125, allocations: 1.125 kB / 0.5031 GB, free: 8.051 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009299/0.4134, allocations: 164.4 kB / 0.5033 GB, free: 8.016 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.003469/0.4169, allocations: 1.75 MB / 0.505 GB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.4188, allocations: 0.7374 MB / 0.5057 GB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4188, allocations: 0 / 0.5057 GB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.4199, allocations: 0.4978 MB / 0.5062 GB, free: 5.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005393/0.4205, allocations: 41.98 kB / 0.5062 GB, free: 5.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007317/0.4278, allocations: 3.852 MB / 0.51 GB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.428, allocations: 0.7822 MB / 0.5108 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000232/0.4282, allocations: 46.92 kB / 0.5108 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.4284, allocations: 107.4 kB / 0.5109 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4284, allocations: 4 kB / 0.5109 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04424/0.4727, allocations: 11.67 MB / 0.5223 GB, free: 5.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.93, allocations: 12.22 kB / 0.5223 GB, free: 5.266 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.340177197009325] Failed to read output from testmodel.py, exit status != 0: 12.020781514700502 12.032158075 11.663754765 Calling exit ...