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.003952/0.003952, allocations: 91.67 kB / 15.91 MB, free: 6.277 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.001058/0.001058, allocations: 195.3 kB / 16.83 MB, free: 6.191 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.246/1.246, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1437/0.1437, allocations: 8.094 MB / 298.7 MB, free: 2.031 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 60.12 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08147/0.08261, allocations: 51.51 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003386/0.08603, allocations: 2.899 MB / 415.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.08765, allocations: 1.133 MB / 416.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.253e-05/0.08774, allocations: 8 kB / 416.7 MB, free: 6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.08805, allocations: 127.5 kB / 416.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00025/0.08831, allocations: 119.3 kB / 416.9 MB, free: 5.758 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.001608/0.08993, allocations: 0.9729 MB / 417.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002732/0.09021, allocations: 318.5 kB / 418.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.09039, allocations: 111.4 kB / 418.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.09051, allocations: 135.5 kB / 418.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.09073, allocations: 203.2 kB / 418.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.09078, allocations: 20 kB / 418.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004127/0.0912, allocations: 287.7 kB / 419 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.696e-05/0.09126, allocations: 67.73 kB / 419 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.0914, allocations: 151.2 kB / 419.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005271/0.09193, allocations: 0.5377 MB / 419.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.09194, allocations: 4 kB / 419.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.09195, allocations: 0 / 419.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.09196, allocations: 0 / 419.7 MB, free: 2.973 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.001962/0.09393, allocations: 0.84 MB / 420.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.09397, allocations: 8.031 kB / 420.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.959e-05/0.09404, allocations: 70.72 kB / 420.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.551e-05/0.09412, allocations: 36.56 kB / 420.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.09444, allocations: 279.7 kB / 420.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.632e-05/0.09452, allocations: 84.62 kB / 421 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.09458, allocations: 28.38 kB / 421.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006033/0.09519, allocations: 382.3 kB / 421.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.09521, allocations: 0 / 421.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.09525, allocations: 16 kB / 421.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.09526, allocations: 11.98 kB / 421.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005327/0.0958, allocations: 362.4 kB / 421.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.09739, allocations: 1.367 MB / 423.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.09845, allocations: 0.5547 MB / 423.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.09877, allocations: 238.1 kB / 424 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.757e-05/0.09883, allocations: 8.438 kB / 424 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005005/0.09933, allocations: 313.3 kB / 424.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.693e-06/0.09934, allocations: 0 / 424.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.002887/0.1022, allocations: 1.152 MB / 425.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.1023, allocations: 63.83 kB / 425.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.1025, allocations: 198.2 kB / 425.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.1025, allocations: 37.7 kB / 425.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.1026, allocations: 148.8 kB / 425.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.1027, allocations: 169.5 kB / 426 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1028, allocations: 102.2 kB / 426.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.067e-05/0.1029, allocations: 342.8 kB / 426.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.1032, allocations: 193 kB / 426.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003245/0.1036, allocations: 258.3 kB / 426.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004168/0.1077, allocations: 1.262 MB / 428.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1077, allocations: 0 / 428.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001565/0.1093, allocations: 0.7803 MB / 428.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1093, allocations: 5.562 kB / 429 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1094, allocations: 4 kB / 429 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.1106, allocations: 315 kB / 429.3 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.1108, allocations: 67.91 kB / 429.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03324/0.1441, allocations: 2.736 MB / 432.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.1446, allocations: 43.59 kB / 432.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.1446, allocations: 23.98 kB / 432.1 MB, free: 6.043 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.0002436/0.1449, allocations: 162.2 kB / 432.3 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.74e-05/0.145, allocations: 31.56 kB / 432.3 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.1467, allocations: 0.792 MB / 433.1 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1468, allocations: 7.938 kB / 433.1 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.1468, allocations: 0 / 433.1 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1468, allocations: 3.984 kB / 433.1 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.149, allocations: 1.369 MB / 434.5 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.149, allocations: 7.938 kB / 434.5 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.1492, allocations: 59.91 kB / 434.6 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.1503, allocations: 300.5 kB / 434.9 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.1504, allocations: 12 kB / 434.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003428/0.1538, allocations: 2.677 MB / 437.5 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1538, allocations: 0 / 437.5 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1484/0.3022, allocations: 1.109 MB / 438.7 MB, free: 56.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.3024, allocations: 112.1 kB / 438.8 MB, free: 56.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.3024, allocations: 16.86 kB / 438.8 MB, free: 56.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.3027, allocations: 20.91 kB / 438.8 MB, free: 56.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.3029, allocations: 45.97 kB / 438.8 MB, free: 56.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.403e-05/0.3029, allocations: 19.59 kB / 438.9 MB, free: 56.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.303, allocations: 143.3 kB / 439 MB, free: 56.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.303, allocations: 0 / 439 MB, free: 56.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005526/0.3036, allocations: 163.8 kB / 439.2 MB, free: 56.69 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.002359/0.306, allocations: 1.766 MB / 440.9 MB, free: 56.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.3073, allocations: 0.7594 MB / 441.7 MB, free: 55.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3073, allocations: 6.594 kB / 441.7 MB, free: 55.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007833/0.3081, allocations: 0.517 MB / 442.2 MB, free: 55.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.3084, allocations: 43.59 kB / 442.3 MB, free: 55.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004905/0.3134, allocations: 3.981 MB / 446.2 MB, free: 53.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.3136, allocations: 0.7872 MB / 447 MB, free: 53.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.3137, allocations: 48.83 kB / 447.1 MB, free: 53.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.3139, allocations: 104.1 kB / 447.2 MB, free: 53.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3139, allocations: 0 / 447.2 MB, free: 53.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.3348, allocations: 10.8 MB / 458 MB, free: 52.33 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/0.335, allocations: 310.3 kB / 458.3 MB, free: 51.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.281, allocations: 0 / 458.3 MB, free: 51.95 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)