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.001011/0.001011, allocations: 101.7 kB / 16.03 MB, free: 5.855 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.0009553/0.0009553, allocations: 195.9 kB / 16.95 MB, free: 5.699 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.371/1.371, allocations: 222.9 MB / 240.6 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1621/0.1621, allocations: 8.095 MB / 298.9 MB, free: 1.984 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 67.89 kB / 361.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09173, allocations: 51.51 MB / 412.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.004115/0.0959, allocations: 2.895 MB / 415.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.09791, allocations: 1.113 MB / 416.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.09807, allocations: 7.938 kB / 416.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004014/0.09852, allocations: 123.5 kB / 417 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.09888, allocations: 131.3 kB / 417.1 MB, free: 5.668 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.001943/0.1008, allocations: 0.9376 MB / 418.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.1013, allocations: 334.5 kB / 418.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.1016, allocations: 130.9 kB / 418.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.1018, allocations: 143.4 kB / 418.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/0.1021, allocations: 207.2 kB / 418.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.1021, allocations: 28 kB / 418.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000615/0.1028, allocations: 303.7 kB / 419.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.244e-05/0.1028, allocations: 75.69 kB / 419.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.103, allocations: 167.1 kB / 419.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007476/0.1038, allocations: 0.5378 MB / 420 MB, free: 2.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1038, allocations: 0 / 420 MB, free: 2.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1038, allocations: 0 / 420 MB, free: 2.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1038, allocations: 0 / 420 MB, free: 2.828 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.002248/0.1061, allocations: 0.84 MB / 420.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1061, allocations: 11.89 kB / 420.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.471e-05/0.1062, allocations: 70.72 kB / 420.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.229e-05/0.1063, allocations: 36.56 kB / 420.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.1066, allocations: 271.8 kB / 421.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.249e-05/0.1068, allocations: 88.61 kB / 421.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.1068, allocations: 32.38 kB / 421.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006328/0.1075, allocations: 386.2 kB / 421.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1075, allocations: 4 kB / 421.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.901e-05/0.1075, allocations: 12 kB / 421.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1075, allocations: 11.94 kB / 421.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005303/0.1081, allocations: 362.5 kB / 422 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.1098, allocations: 1.37 MB / 423.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.1109, allocations: 0.547 MB / 424 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003326/0.1113, allocations: 234.1 kB / 424.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.383e-05/0.1113, allocations: 8.422 kB / 424.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006035/0.1119, allocations: 313.3 kB / 424.5 MB, free: 14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.765e-06/0.1119, allocations: 4 kB / 424.5 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003118/0.1151, allocations: 1.156 MB / 425.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.1151, allocations: 59.84 kB / 425.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.1154, allocations: 202.3 kB / 425.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.1154, allocations: 37.7 kB / 426 MB, free: 12.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1155, allocations: 140.8 kB / 426.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.1157, allocations: 165.6 kB / 426.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.1158, allocations: 102.2 kB / 426.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.116, allocations: 338.8 kB / 426.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003283/0.1163, allocations: 197.1 kB / 426.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.1167, allocations: 258.4 kB / 427.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004334/0.1211, allocations: 1.262 MB / 428.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1211, allocations: 7.938 kB / 428.4 MB, free: 10 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001737/0.1229, allocations: 0.7882 MB / 429.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.1229, allocations: 6.188 kB / 429.2 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1229, allocations: 0 / 429.2 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.1246, allocations: 304.6 kB / 429.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.125, allocations: 71.89 kB / 429.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005776/0.1308, allocations: 2.975 MB / 432.5 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.1312, allocations: 39.66 kB / 432.6 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.1312, allocations: 19.98 kB / 432.6 MB, free: 5.66 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.0002593/0.1315, allocations: 162.2 kB / 432.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-05/0.1316, allocations: 27.72 kB / 432.8 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.1334, allocations: 0.8038 MB / 433.6 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1334, allocations: 8 kB / 433.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1334, allocations: 7.875 kB / 433.6 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1334, allocations: 3.984 kB / 433.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.1357, allocations: 1.361 MB / 435 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1358, allocations: 0 / 435 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.136, allocations: 55.91 kB / 435 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.1372, allocations: 304.5 kB / 435.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.1372, allocations: 12 kB / 435.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1559/0.2932, allocations: 2.918 MB / 438.3 MB, free: 56.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2932, allocations: 0 / 438.3 MB, free: 56.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.2951, allocations: 1.109 MB / 439.4 MB, free: 56.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.2952, allocations: 115.2 kB / 439.5 MB, free: 56.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/0.2952, allocations: 10.61 kB / 439.5 MB, free: 56.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.2955, allocations: 31.14 kB / 439.5 MB, free: 56.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.2956, allocations: 38.91 kB / 439.6 MB, free: 56.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.2957, allocations: 21.42 kB / 439.6 MB, free: 56.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001158/0.2958, allocations: 145.3 kB / 439.7 MB, free: 56.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2958, allocations: 0 / 439.7 MB, free: 56.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005607/0.2964, allocations: 164.1 kB / 439.9 MB, free: 56.07 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.002276/0.2987, allocations: 1.769 MB / 441.6 MB, free: 55.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.3001, allocations: 0.7936 MB / 442.4 MB, free: 55.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3001, allocations: 0 / 442.4 MB, free: 55.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.301, allocations: 0.5257 MB / 443 MB, free: 55.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.3013, allocations: 44.67 kB / 443 MB, free: 55.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004907/0.3063, allocations: 3.99 MB / 447 MB, free: 53.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.3065, allocations: 0.7835 MB / 447.8 MB, free: 52.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000181/0.3067, allocations: 45.77 kB / 447.8 MB, free: 52.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3068, allocations: 107.9 kB / 447.9 MB, free: 52.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.823e-06/0.3068, allocations: 3.531 kB / 447.9 MB, free: 52.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1623/0.4691, allocations: 11.29 MB / 459.2 MB, free: 51.47 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002517/0.4694, allocations: 300.8 kB / 459.5 MB, free: 51.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.28/2.749, allocations: 0 / 459.5 MB, free: 51.09 MB / 366.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)