Running command: translateModel(PNlib.Examples.HybTest.TDtoPCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TDtoPCfunction") Notification: Performance of loadModel(PNlib): time 2.194/2.194, allocations: 222.9 MB / 235 MB, free: 9.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.217e-05/3.229e-05, allocations: 4 kB / 289.6 MB, free: 4.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.08977, allocations: 51.67 MB / 341.3 MB, free: 296 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.5234, allocations: 79.86 MB / 421.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.5236, allocations: 63.97 kB / 421.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05796/0.5816, allocations: 12.45 MB / 433.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.012e-06/0.5817, allocations: 0 / 433.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.992e-05/0.5818, allocations: 8 kB / 433.6 MB, free: 14.05 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003118/0.5849, allocations: 1.143 MB / 434.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.585, allocations: 12.03 kB / 434.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002109/0.5871, allocations: 179.1 kB / 435 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.5887, allocations: 439.1 kB / 435.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003274/0.5891, allocations: 130.4 kB / 435.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003126/0.5894, allocations: 67.98 kB / 435.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004405/0.5939, allocations: 1.07 MB / 436.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.414e-05/0.594, allocations: 8 kB / 436.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000237/0.5942, allocations: 31.98 kB / 436.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001851/0.5944, allocations: 36.98 kB / 436.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003247/0.5977, allocations: 0.6971 MB / 437.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00907/0.6068, allocations: 2.694 MB / 440.1 MB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00327/0.6101, allocations: 1.113 MB / 441.2 MB, free: 6.062 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002736/0.6129, allocations: 0.9019 MB / 442.1 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002514/0.6132, allocations: 97.3 kB / 442.2 MB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002572/0.6158, allocations: 0.6706 MB / 442.9 MB, free: 4.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=70): time 7.059e-06/0.6159, allocations: 0 / 442.9 MB, free: 4.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=70): time 0.005074/0.6209, allocations: 1.259 MB / 444.2 MB, free: 3.004 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005142/0.6215, allocations: 0.5614 MB / 444.7 MB, free: 2.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.6221, allocations: 322.3 kB / 445 MB, free: 2.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.6222, allocations: 61.69 kB / 445.1 MB, free: 1.941 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002638/0.6225, allocations: 256.4 kB / 445.4 MB, free: 1.688 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/0.6228, allocations: 177.8 kB / 445.5 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.572e-05/0.6229, allocations: 20 kB / 445.6 MB, free: 1.492 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.6231, allocations: 374.9 kB / 445.9 MB, free: 1.117 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007696/0.6239, allocations: 290 kB / 446.2 MB, free: 0.832 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.6256, allocations: 0.6195 MB / 446.8 MB, free: 64 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/0.6277, allocations: 0.6823 MB / 447.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.959e-05/0.6278, allocations: 4 kB / 447.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.004984/0.6328, allocations: 1.41 MB / 448.9 MB, free: 13.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004224/0.6333, allocations: 354.6 kB / 449.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.185e-05/0.6334, allocations: 16.06 kB / 449.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.953e-05/0.6335, allocations: 16 kB / 449.3 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008725/0.6344, allocations: 115.8 kB / 449.4 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-05/0.6345, allocations: 23.92 kB / 449.4 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.6355, allocations: 99.67 kB / 449.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.6358, allocations: 52 kB / 449.6 MB, free: 13.09 MB / 378.7 MB Warning: Assuming fixed start value for the following 21 variables: P1.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P1.enableIn.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real T1.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = false protected = true ) "for transition animation" type: Real P1.disMarksOut.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P1.disMarksIn.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableOut.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" 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 ) type: Integer T1.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 108 ($PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$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.cumEnablingProb[1],P1.enableIn.cumEnablingProb[1],$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$PRE.P1.enableIn.remTAin[1],P1.enableIn.remTAin[1],$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,$PRE.P1.enableIn.disTAin[1],P1.enableIn.disTAin[1],$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,$whenCondition5,P1.disMarksInOut,$PRE.P1.disMarksOut.anytrue,$PRE.P1.disMarksIn.anytrue,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.emptying.anytrue,P1.emptying.numtrue,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.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,$whenCondition1,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.inTransition[1].tint,P1.inTransition[1].maxTokensint,T1.enabledByInPlaces,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,T1.firingCon,P1.enableIn.enablingPrio[1],P1.reStart,P1.feeding.anytrue,P1.feeding.numtrue,P1.feeding.vec[1],$whenCondition4,$whenCondition3,$whenCondition2,P1.fireIn[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin[1],P1.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.disMarksIn.vec[1],P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,T1.activation.disPlaceOut[1],T1.activation.maxTokensInt[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntOut[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 11 * Record equations: 1 * 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.001397/0.6372, allocations: 0.6221 MB / 450.2 MB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.6376, allocations: 63.44 kB / 450.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004577/0.6422, allocations: 1.154 MB / 451.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.6423, allocations: 7.984 kB / 451.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/0.6423, allocations: 4 kB / 451.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.6424, allocations: 0 / 451.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007679/0.6501, allocations: 2.057 MB / 453.5 MB, free: 8.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.223e-05/0.6501, allocations: 3.984 kB / 453.5 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.6506, allocations: 35.92 kB / 453.5 MB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/0.6506, allocations: 0 / 453.5 MB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/0.6508, allocations: 39.97 kB / 453.6 MB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.294e-05/0.6509, allocations: 4 kB / 453.6 MB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.406e-06/0.6509, allocations: 0 / 453.6 MB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006956/0.6579, allocations: 2.205 MB / 455.8 MB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.6581, allocations: 124.5 kB / 455.9 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002447/0.6583, allocations: 67.97 kB / 456 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.6589, allocations: 63.95 kB / 456 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.6592, allocations: 95.84 kB / 456.1 MB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.6593, allocations: 47.97 kB / 456.2 MB, free: 6.191 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003356/0.6597, allocations: 218.2 kB / 456.4 MB, free: 5.977 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.75e-07/0.6597, allocations: 4 kB / 456.4 MB, free: 5.973 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001299/0.661, allocations: 295.6 kB / 456.7 MB, free: 5.684 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (P1.t_) * Number of discrete variables: 59 ($whenCondition1,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.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.emptying.anytrue,P1.emptying.numtrue,P1.fireIn[1],P1.disMarksInOut,T1.active,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,P1.enableIn.active[1],P1.enableIn.TEin_[1],P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.TEin[1],P1.enableIn.disTAin[1],P1.enableIn.remTAin[1],P1.enableIn.cumEnablingProb[1],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.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksIn.vec[1],P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.active,P1.feeding.anytrue,P1.feeding.numtrue) * Number of discrete states: 48 (P1.feeding.numtrue,P1.feeding.anytrue,T1.activation.active,T1.delayPassed,P1.disMarksOut.anytrue,P1.disMarksIn.anytrue,P1.disMarksOut.numtrue,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.enableIn.TEin_[1],P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.endWhile,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.cumEnablingProb[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.nTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],P1.enableIn.Index,P1.enableIn.arcWeightSum,P1.enableIn.disTAin[1],$whenCondition2,P1.enableIn.TEin[1],P1.disMarksIn.numtrue,P1.disMarkChange,P1.emptying.numtrue,P1.emptying.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.enableOut.arcWeightSum,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,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 1 * When equations: 3 * 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.0009491/0.662, allocations: 355.9 kB / 457 MB, free: 5.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.6649, allocations: 1.711 MB / 458.7 MB, free: 3.492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.694e-06/0.6649, allocations: 0 / 458.7 MB, free: 3.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002888/0.6678, allocations: 2.204 MB / 460.9 MB, free: 1.168 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.6684, allocations: 61.19 kB / 461 MB, free: 1.109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.6714, allocations: 1.082 MB / 462.1 MB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007414/0.6721, allocations: 0.9228 MB / 463 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004228/0.6726, allocations: 108.7 kB / 463.1 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.6727, allocations: 35.42 kB / 463.1 MB, free: 14.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6727, allocations: 0 / 463.1 MB, free: 14.9 MB / 394.7 MB Notification: Performance of Templates: time 0.02341/0.6961, allocations: 9.582 MB / 472.7 MB, free: 5.227 MB / 394.7 MB