Running command: translateModel(PNlib.Examples.ConTest.TCtoPCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPCfunction") Notification: Performance of loadModel(PNlib): time 2.045/2.045, allocations: 222.9 MB / 235 MB, free: 9.258 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.767e-05/5.781e-05, allocations: 4 kB / 289.6 MB, free: 4.086 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 51.68 MB / 341.3 MB, free: 312 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3715/0.4862, allocations: 80.04 MB / 421.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.4866, allocations: 63.97 kB / 421.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07091/0.5575, allocations: 12.92 MB / 434.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5575, allocations: 0 / 434.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.382e-05/0.5576, allocations: 16 kB / 434.3 MB, free: 13.4 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: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001899/0.5595, allocations: 1.141 MB / 435.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.5596, allocations: 8.031 kB / 435.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001232/0.5608, allocations: 179.1 kB / 435.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.5618, allocations: 431.5 kB / 436.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.5621, allocations: 142.4 kB / 436.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.5622, allocations: 71.89 kB / 436.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.5647, allocations: 1.09 MB / 437.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.5647, allocations: 0 / 437.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.5649, allocations: 35.92 kB / 437.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/0.565, allocations: 44.97 kB / 437.4 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.5667, allocations: 0.7245 MB / 438.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/0.5719, allocations: 2.812 MB / 441 MB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.5736, allocations: 1.009 MB / 442 MB, free: 5.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.5751, allocations: 0.9165 MB / 442.9 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.309e-05/0.5752, allocations: 19.95 kB / 442.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001384/0.5766, allocations: 0.6531 MB / 443.6 MB, free: 3.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.786e-06/0.5766, allocations: 4 kB / 443.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.00283/0.5795, allocations: 1.276 MB / 444.8 MB, free: 2.379 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004236/0.5799, allocations: 0.4953 MB / 445.3 MB, free: 1.785 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.5805, allocations: 338.2 kB / 445.7 MB, free: 1.449 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.5807, allocations: 61.69 kB / 445.7 MB, free: 1.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/0.5809, allocations: 252.4 kB / 446 MB, free: 1.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.5812, allocations: 178 kB / 446.2 MB, free: 0.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/0.5813, allocations: 16 kB / 446.2 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002254/0.5815, allocations: 370.7 kB / 446.5 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000694/0.5822, allocations: 305.7 kB / 446.8 MB, free: 276 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009916/0.5832, allocations: 0.6044 MB / 447.4 MB, free: 15.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.5843, allocations: 0.6934 MB / 448.1 MB, free: 14.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.5843, allocations: 4 kB / 448.1 MB, free: 14.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002943/0.5873, allocations: 1.422 MB / 449.6 MB, free: 13.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002958/0.5876, allocations: 354.7 kB / 449.9 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.762e-05/0.5877, allocations: 11.98 kB / 449.9 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/0.5879, allocations: 60.86 kB / 450 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004461/0.5884, allocations: 111.7 kB / 450.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007911/0.5892, allocations: 1.023 MB / 451.1 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006297/0.5899, allocations: 91.39 kB / 451.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.59, allocations: 55.98 kB / 451.2 MB, free: 11.43 MB / 378.7 MB Warning: Assuming fixed start value for the following 18 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 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 102 ($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],$whenCondition3,P1.disMarksInOut,$PRE.P1.disMarksOut.anytrue,$PRE.P1.disMarksIn.anytrue,P1.disMarksOut.anytrue,P1.disMarksOut.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.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,P1.enableIn.enablingPrio[1],P1.reStart,T1.firingCon,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.disMarksIn.vec[1],$whenCondition2,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T1.activation.NoTokens,$PRE.P1.fireIn[1],P1.fireIn[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.feeding.vec[1],P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.anytrue,P1.emptying.numtrue,T1.activation.disPlaceOut[1],T1.activation.maxTokensInt[1],T1.activation.tIntOut[1],P1.delayPassedIn.vec[1],T1.activation.arcWeightIntOut[1],T1.fire_) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 11 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000932/0.591, allocations: 0.6025 MB / 451.8 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/0.5912, allocations: 71.42 kB / 451.9 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/0.5943, allocations: 1.372 MB / 453.3 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.5944, allocations: 8 kB / 453.3 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.5944, allocations: 0 / 453.3 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.5944, allocations: 3.984 kB / 453.3 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006927/0.6014, allocations: 2.185 MB / 455.5 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/0.6014, allocations: 7.953 kB / 455.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.6017, allocations: 27.98 kB / 455.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003036/0.602, allocations: 80.78 kB / 455.6 MB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/0.6021, allocations: 35.98 kB / 455.6 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007512/0.6029, allocations: 1.011 MB / 456.6 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.146e-06/0.6029, allocations: 4 kB / 456.6 MB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004658/0.6076, allocations: 2.221 MB / 458.9 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.6078, allocations: 124.5 kB / 459 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/0.6081, allocations: 75.92 kB / 459.1 MB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.6086, allocations: 55.91 kB / 459.1 MB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.6088, allocations: 67.98 kB / 459.2 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/0.609, allocations: 47.97 kB / 459.2 MB, free: 3.043 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000336/0.6093, allocations: 214.2 kB / 459.4 MB, free: 2.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.58e-07/0.6094, allocations: 4 kB / 459.4 MB, free: 2.836 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001388/0.6108, allocations: 311.6 kB / 459.8 MB, free: 2.531 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (P1.t_) * Number of discrete variables: 54 ($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.disMarksInOut,$whenCondition3,$whenCondition2,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T1.activation.NoTokens,P1.fireIn[1],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.anytrue,P1.delayPassedIn.numtrue,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.feeding.vec[1],P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.anytrue,P1.emptying.numtrue) * Number of discrete states: 50 (P1.fireIn[1],P1.disMarksOut.anytrue,P1.disMarksIn.anytrue,P1.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,P1.disMarksIn.numtrue,P1.disMarksOut.numtrue,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,T1.activation.weaklyOutputActiveVec[1],T1.activation.active,T1.activation.NoTokens,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.disMarkChange,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 (26): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.6118, allocations: 397.8 kB / 460.1 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003186/0.615, allocations: 1.832 MB / 462 MB, free: 176 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.632e-06/0.6151, allocations: 4 kB / 462 MB, free: 172 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002969/0.6181, allocations: 2.294 MB / 464.3 MB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.6186, allocations: 57.27 kB / 464.3 MB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.6214, allocations: 1.09 MB / 465.4 MB, free: 12.58 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007333/0.6222, allocations: 0.93 MB / 466.3 MB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000461/0.6227, allocations: 124.1 kB / 466.5 MB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.6228, allocations: 47.42 kB / 466.5 MB, free: 11.45 MB / 394.7 MB Notification: Performance of SimCode: time 1.792e-06/0.6228, allocations: 0 / 466.5 MB, free: 11.45 MB / 394.7 MB Notification: Performance of Templates: time 0.02572/0.6486, allocations: 10.3 MB / 476.8 MB, free: 1.055 MB / 394.7 MB