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.001241/0.001241, allocations: 107.1 kB / 16.45 MB, free: 6.441 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.001241/0.001241, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.398/1.398, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05102/0.05102, allocations: 8.097 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.08121, allocations: 51.51 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003998/0.08525, allocations: 2.863 MB / 468.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.08728, allocations: 1.125 MB / 469.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.0874, allocations: 8 kB / 469.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003801/0.08779, allocations: 139.2 kB / 469.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003404/0.08816, allocations: 147 kB / 469.8 MB, free: 14.37 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.002065/0.09024, allocations: 1.027 MB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.09068, allocations: 338.5 kB / 471.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.09093, allocations: 126.9 kB / 471.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.09109, allocations: 139.5 kB / 471.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.09139, allocations: 207.2 kB / 471.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.545e-05/0.09146, allocations: 28 kB / 471.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006073/0.09207, allocations: 303.7 kB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.211e-05/0.09217, allocations: 79.69 kB / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.09236, allocations: 163.1 kB / 472.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007692/0.09313, allocations: 0.5491 MB / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.09315, allocations: 0 / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09316, allocations: 0 / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.09317, allocations: 0 / 472.7 MB, free: 11.43 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.002351/0.09553, allocations: 0.8508 MB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.09558, allocations: 11.89 kB / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.834e-05/0.09567, allocations: 70.72 kB / 473.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.447e-05/0.09577, allocations: 36.75 kB / 473.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.09615, allocations: 283.8 kB / 474 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.022e-05/0.09626, allocations: 84.62 kB / 474 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-05/0.09632, allocations: 28.38 kB / 474.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006621/0.09699, allocations: 382.3 kB / 474.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.09702, allocations: 3.984 kB / 474.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.09706, allocations: 12 kB / 474.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.09707, allocations: 8 kB / 474.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005963/0.09767, allocations: 366.4 kB / 474.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.0995, allocations: 1.371 MB / 476.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.1007, allocations: 0.5507 MB / 476.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003717/0.101, allocations: 234.1 kB / 477 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.617e-05/0.1011, allocations: 8.422 kB / 477 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005966/0.1017, allocations: 313.3 kB / 477.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.154e-06/0.1017, allocations: 0 / 477.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003338/0.1051, allocations: 1.156 MB / 478.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.1051, allocations: 55.84 kB / 478.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.1054, allocations: 206.3 kB / 478.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.1054, allocations: 37.7 kB / 478.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1056, allocations: 153 kB / 478.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1057, allocations: 178.5 kB / 479.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.1059, allocations: 90.23 kB / 479.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.106, allocations: 334.8 kB / 479.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.1064, allocations: 201 kB / 479.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.1068, allocations: 258.4 kB / 479.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004704/0.1115, allocations: 1.254 MB / 481.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.1115, allocations: 0 / 481.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001818/0.1134, allocations: 0.7922 MB / 482 MB, free: 1.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1134, allocations: 4 kB / 482 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1134, allocations: 0 / 482 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.1147, allocations: 316.4 kB / 482.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.115, allocations: 71.91 kB / 482.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004666/0.1197, allocations: 2.957 MB / 485.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.12, allocations: 43.72 kB / 485.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/0.12, allocations: 20 kB / 485.4 MB, free: 14.24 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.0002555/0.1203, allocations: 174.2 kB / 485.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.567e-05/0.1204, allocations: 35.81 kB / 485.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001969/0.1224, allocations: 0.796 MB / 486.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.1224, allocations: 7.984 kB / 486.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1224, allocations: 3.938 kB / 486.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1224, allocations: 0 / 486.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.1249, allocations: 1.37 MB / 487.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1249, allocations: 0 / 487.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.1252, allocations: 55.91 kB / 487.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.1264, allocations: 303.9 kB / 488.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.1265, allocations: 19.92 kB / 488.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004265/0.1308, allocations: 2.921 MB / 491 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1308, allocations: 0 / 491 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.133, allocations: 1.109 MB / 492.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.286e-05/0.1331, allocations: 120.9 kB / 492.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.162e-05/0.1332, allocations: 11.95 kB / 492.3 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.1335, allocations: 19.98 kB / 492.3 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.1336, allocations: 48.44 kB / 492.4 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.1337, allocations: 23.98 kB / 492.4 MB, free: 6.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.1338, allocations: 144.3 kB / 492.5 MB, free: 6.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1339, allocations: 0 / 492.5 MB, free: 6.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005999/0.1345, allocations: 163.9 kB / 492.7 MB, free: 6.691 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.002924/0.1374, allocations: 1.762 MB / 494.4 MB, free: 4.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.139, allocations: 0.7793 MB / 495.2 MB, free: 4.129 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.139, allocations: 4 kB / 495.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.14, allocations: 0.5253 MB / 495.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.1404, allocations: 48.8 kB / 495.8 MB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006388/0.1468, allocations: 3.872 MB / 499.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1472, allocations: 0.7861 MB / 0.4887 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000165/0.1474, allocations: 50.92 kB / 0.4888 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.1476, allocations: 107.4 kB / 0.4889 GB, free: 14.6 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1476, allocations: 4 kB / 0.4889 GB, free: 14.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.1873, allocations: 11.57 MB / 0.5002 GB, free: 3.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.67, allocations: 15.25 kB / 0.5002 GB, free: 3.219 MB / 382.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)