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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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: translateModel(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized") translateModel(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000921/0.0009211, allocations: 102.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009423/0.0009423, allocations: 182 kB / 16.97 MB, free: 6.875 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.559/1.559, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1714/0.1714, allocations: 8.078 MB / 300.2 MB, free: 2.938 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000317/0.000317, allocations: 12 kB / 363.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 52.52 MB / 416 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.002793/0.1212, allocations: 2.517 MB / 418.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.1232, allocations: 1.109 MB / 419.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1233, allocations: 4 kB / 419.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003509/0.1237, allocations: 123.5 kB / 419.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.124, allocations: 135.2 kB / 419.9 MB, free: 4.465 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001781/0.1258, allocations: 0.9343 MB / 420.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003696/0.1262, allocations: 318.5 kB / 421.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.1264, allocations: 107.5 kB / 421.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.1266, allocations: 123.5 kB / 421.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.1268, allocations: 195.2 kB / 421.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.631e-05/0.1269, allocations: 16 kB / 421.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005088/0.1274, allocations: 279.7 kB / 421.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.251e-05/0.1274, allocations: 63.69 kB / 421.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.1276, allocations: 168.9 kB / 422.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005801/0.1282, allocations: 0.526 MB / 422.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1282, allocations: 3.984 kB / 422.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1282, allocations: 3.938 kB / 422.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1282, allocations: 0 / 422.6 MB, free: 1.738 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.002031/0.1303, allocations: 0.7777 MB / 423.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1303, allocations: 8.031 kB / 423.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.496e-05/0.1304, allocations: 36.56 kB / 423.4 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.1307, allocations: 279.7 kB / 423.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.427e-05/0.1308, allocations: 80.62 kB / 423.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.5e-05/0.1309, allocations: 28.38 kB / 423.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006016/0.1315, allocations: 382.6 kB / 424.2 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1315, allocations: 7.938 kB / 424.2 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.873e-05/0.1316, allocations: 16 kB / 424.2 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1316, allocations: 11.94 kB / 424.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2297/0.3614, allocations: 361.2 kB / 424.6 MB, free: 41.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.3632, allocations: 1.366 MB / 425.9 MB, free: 41.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.3642, allocations: 0.5444 MB / 426.5 MB, free: 41.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.3645, allocations: 231.9 kB / 426.7 MB, free: 41.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.234e-05/0.3646, allocations: 15.61 kB / 426.7 MB, free: 41.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005587/0.3652, allocations: 317.3 kB / 427 MB, free: 41.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.554e-06/0.3652, allocations: 0 / 427 MB, free: 41.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002995/0.3682, allocations: 1.16 MB / 428.2 MB, free: 41.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.3682, allocations: 58.53 kB / 428.3 MB, free: 40.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.3684, allocations: 205.5 kB / 428.5 MB, free: 40.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.3685, allocations: 35.55 kB / 428.5 MB, free: 40.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.925e-05/0.3686, allocations: 138.2 kB / 428.6 MB, free: 40.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.863e-05/0.3687, allocations: 171.6 kB / 428.8 MB, free: 40.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.885e-05/0.3687, allocations: 59.16 kB / 428.8 MB, free: 40.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.785e-05/0.3688, allocations: 333.5 kB / 429.2 MB, free: 40.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.3691, allocations: 199.7 kB / 429.4 MB, free: 40.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.3694, allocations: 261.3 kB / 429.6 MB, free: 40.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004104/0.3735, allocations: 1.273 MB / 430.9 MB, free: 40.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3735, allocations: 0 / 430.9 MB, free: 40.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001457/0.375, allocations: 0.7818 MB / 431.7 MB, free: 40.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.375, allocations: 9.781 kB / 431.7 MB, free: 40.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.375, allocations: 0 / 431.7 MB, free: 40.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.3761, allocations: 314.8 kB / 432 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.3764, allocations: 70.05 kB / 432.1 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/0.3797, allocations: 2.737 MB / 434.8 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.3799, allocations: 46.2 kB / 434.8 MB, free: 38.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.38, allocations: 21.59 kB / 434.9 MB, free: 38.18 MB / 350.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.0002296/0.3802, allocations: 166.4 kB / 435 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/0.3803, allocations: 32.16 kB / 435.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.3819, allocations: 0.7917 MB / 435.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.3819, allocations: 13.67 kB / 435.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.3819, allocations: 0 / 435.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3819, allocations: 0 / 435.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.3841, allocations: 1.372 MB / 437.2 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3841, allocations: 3.188 kB / 437.2 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.3843, allocations: 56.92 kB / 437.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.3854, allocations: 307.9 kB / 437.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.3854, allocations: 15.31 kB / 437.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003007/0.3884, allocations: 2.676 MB / 440.3 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3884, allocations: 1.125 kB / 440.3 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.3902, allocations: 1.126 MB / 441.4 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.078e-05/0.3903, allocations: 106 kB / 441.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.3903, allocations: 11.12 kB / 441.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.3906, allocations: 34.08 kB / 441.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.3907, allocations: 41.53 kB / 441.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.3907, allocations: 19.97 kB / 441.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.3909, allocations: 143.2 kB / 441.8 MB, free: 34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3909, allocations: 0 / 441.8 MB, free: 34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.3915, allocations: 160.3 kB / 441.9 MB, free: 33.97 MB / 350.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.0004417/0.3919, allocations: 215.7 kB / 442.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.3932, allocations: 0.7704 MB / 442.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3932, allocations: 0 / 442.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008315/0.394, allocations: 0.5291 MB / 443.4 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.3944, allocations: 35.52 kB / 443.5 MB, free: 33.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.3955, allocations: 0.8132 MB / 444.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.3957, allocations: 0.7876 MB / 445.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000156/0.3958, allocations: 47.62 kB / 445.1 MB, free: 31.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.3959, allocations: 34.27 kB / 445.1 MB, free: 31.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3959, allocations: 0 / 445.1 MB, free: 31.95 MB / 350.1 MB Notification: Performance of Templates: time 0.01103/0.407, allocations: 7.653 MB / 452.8 MB, free: 31.4 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.makefile Environment - environmentSimulation: (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 & ./PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1) Environment - environmentSimulation: