Running command: translateModel(PNlib.Examples.DisTest.SinglePD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SinglePD") Notification: Performance of loadModel(PNlib): time 2.198/2.198, allocations: 222.9 MB / 235 MB, free: 9.172 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.09e-05, allocations: 5.25 kB / 289.6 MB, free: 4.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.149, allocations: 51.69 MB / 341.3 MB, free: 288 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4228/0.5719, allocations: 79.83 MB / 421.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.5722, allocations: 63.97 kB / 421.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04535/0.6176, allocations: 11 MB / 432.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.6176, allocations: 0 / 432.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.6176, allocations: 4 kB / 432.2 MB, free: 15.52 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001453/0.6191, allocations: 0.9031 MB / 433.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.6192, allocations: 8.031 kB / 433.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004177/0.6196, allocations: 55.61 kB / 433.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.6201, allocations: 238.6 kB / 433.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.6201, allocations: 16 kB / 433.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.231e-05/0.6202, allocations: 24 kB / 433.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.6208, allocations: 332.4 kB / 433.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.6208, allocations: 0 / 433.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/0.6209, allocations: 19.92 kB / 433.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.6209, allocations: 7.938 kB / 433.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.6212, allocations: 128 kB / 433.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.6228, allocations: 1.428 MB / 435.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004618/0.6233, allocations: 319.7 kB / 435.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003374/0.6236, allocations: 254.6 kB / 435.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.6236, allocations: 0 / 435.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005126/0.6242, allocations: 312.4 kB / 436.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.852e-06/0.6242, allocations: 4 kB / 436.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009516/0.6251, allocations: 0.527 MB / 436.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000293/0.6254, allocations: 419.9 kB / 437.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.6258, allocations: 214.6 kB / 437.3 MB, free: 9.855 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.6259, allocations: 53.69 kB / 437.4 MB, free: 9.797 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.626, allocations: 129 kB / 437.5 MB, free: 9.668 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.6262, allocations: 122.6 kB / 437.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.6262, allocations: 8 kB / 437.6 MB, free: 9.539 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.6264, allocations: 354.8 kB / 438 MB, free: 9.184 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.6267, allocations: 141.2 kB / 438.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005093/0.6273, allocations: 358 kB / 438.5 MB, free: 8.605 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006294/0.6279, allocations: 475 kB / 438.9 MB, free: 8.086 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.215e-06/0.6279, allocations: 4 kB / 438.9 MB, free: 8.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001599/0.6295, allocations: 0.887 MB / 439.8 MB, free: 7.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002161/0.6298, allocations: 271.3 kB / 440.1 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.6298, allocations: 8 kB / 440.1 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/0.6299, allocations: 12 kB / 440.1 MB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.6302, allocations: 63.78 kB / 440.2 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.158e-05/0.6302, allocations: 16.5 kB / 440.2 MB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.6305, allocations: 59.52 kB / 440.3 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-05/0.6306, allocations: 39.95 kB / 440.3 MB, free: 6.617 MB / 362.7 MB Warning: Assuming fixed start value for the following 22 variables: P1.firingSumIn.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P1.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P1.enableIn.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P1.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P1.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableOut.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P1.enableOut.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableOut.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 84 ($whenCondition5,$PRE.P1.reStart,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,$whenCondition4,$whenCondition3,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,$PRE.P1.t,P1.t,P1.pret,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.state128[1],P1.enableIn.state128[1],$PRE.P1.enableIn.state128[2],P1.enableIn.state128[2],$PRE.P1.enableIn.state128[3],P1.enableIn.state128[3],$PRE.P1.enableIn.state128[4],P1.enableIn.state128[4],$PRE.P1.enableIn.randNum,P1.enableIn.randNum,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$whenCondition2,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.state128[1],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[4],$PRE.P1.enableOut.randNum,P1.enableOut.randNum,$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$whenCondition1,P1.activeConOut.anychange,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.reStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005953/0.6312, allocations: 475 kB / 440.8 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.389e-05/0.6313, allocations: 39.7 kB / 440.8 MB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.597e-05/0.6314, allocations: 25.64 kB / 440.8 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.078e-06/0.6314, allocations: 4 kB / 440.8 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.6315, allocations: 4 kB / 440.8 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.365e-06/0.6315, allocations: 0 / 440.8 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004944/0.632, allocations: 393 kB / 441.2 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.348e-06/0.632, allocations: 0 / 441.2 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-05/0.6321, allocations: 15.92 kB / 441.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.225e-06/0.6321, allocations: 0 / 441.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.6322, allocations: 19.98 kB / 441.2 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.6322, allocations: 8 kB / 441.3 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.286e-06/0.6322, allocations: 0 / 441.3 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.6335, allocations: 0.767 MB / 442 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.6336, allocations: 108.7 kB / 442.1 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.6338, allocations: 51.98 kB / 442.2 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.634, allocations: 19.98 kB / 442.2 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-05/0.6341, allocations: 35.86 kB / 442.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.6342, allocations: 20 kB / 442.2 MB, free: 4.457 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001935/0.6344, allocations: 145.9 kB / 442.4 MB, free: 4.316 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.29e-07/0.6344, allocations: 0 / 442.4 MB, free: 4.316 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006544/0.635, allocations: 116.1 kB / 442.5 MB, free: 4.203 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 47 ($whenCondition4,$whenCondition3,$whenCondition5,P1.t,P1.pret,P1.tokeninout,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,$whenCondition2,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition1,P1.activeConOut.anychange,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.arcWeightSum,P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,P1.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit) * Number of discrete states: 42 (P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.state128[4],P1.enableOut.state128[3],P1.enableOut.state128[2],P1.enableOut.state128[1],P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,P1.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit,$whenCondition1,P1.enableOut.arcWeightSum,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition2,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,P1.t) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005583/0.6356, allocations: 245.3 kB / 442.7 MB, free: 3.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.637, allocations: 0.9891 MB / 443.7 MB, free: 2.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.544e-06/0.6371, allocations: 4.25 kB / 443.7 MB, free: 2.863 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.6383, allocations: 1.156 MB / 444.9 MB, free: 1.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.6387, allocations: 56.81 kB / 444.9 MB, free: 1.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.6397, allocations: 440.9 kB / 445.4 MB, free: 1.098 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.6402, allocations: 0.7728 MB / 446.2 MB, free: 308 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001577/0.6404, allocations: 43.44 kB / 446.2 MB, free: 268 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.543e-05/0.6405, allocations: 23.44 kB / 446.2 MB, free: 244 kB / 362.7 MB Notification: Performance of SimCode: time 1.629e-06/0.6405, allocations: 4 kB / 446.2 MB, free: 240 kB / 362.7 MB Notification: Performance of Templates: time 0.01147/0.652, allocations: 4.423 MB / 450.6 MB, free: 11.82 MB / 378.7 MB