Running command: translateModel(PNlib.Examples.ConTest.TCtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPC") Notification: Performance of loadModel(PNlib): time 2.063/2.063, allocations: 222.9 MB / 235 MB, free: 9.172 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.042e-05, allocations: 4 kB / 289.6 MB, free: 4.074 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 51.68 MB / 341.3 MB, free: 296 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4702, allocations: 80.02 MB / 421.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.4704, allocations: 70.69 kB / 421.4 MB, free: 10.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05313/0.5236, allocations: 12.93 MB / 434.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5236, allocations: 4 kB / 434.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.429e-05/0.5237, allocations: 16 kB / 434.3 MB, free: 13.39 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.001908/0.5256, allocations: 1.141 MB / 435.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.5257, allocations: 8.031 kB / 435.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.5268, allocations: 171.2 kB / 435.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009239/0.5277, allocations: 431.5 kB / 436 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/0.5279, allocations: 146.4 kB / 436.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/0.5281, allocations: 75.89 kB / 436.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.5305, allocations: 1.09 MB / 437.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.5306, allocations: 4 kB / 437.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.5307, allocations: 31.98 kB / 437.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.786e-05/0.5308, allocations: 44.91 kB / 437.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.5325, allocations: 0.7206 MB / 438.1 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005008/0.5376, allocations: 2.796 MB / 440.9 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.5391, allocations: 0.9509 MB / 441.9 MB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.5405, allocations: 0.8579 MB / 442.7 MB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.83e-05/0.5406, allocations: 23.94 kB / 442.8 MB, free: 4.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.5419, allocations: 0.6373 MB / 443.4 MB, free: 3.875 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.399e-06/0.5419, allocations: 0 / 443.4 MB, free: 3.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.002683/0.5446, allocations: 1.244 MB / 444.7 MB, free: 2.562 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003965/0.545, allocations: 0.507 MB / 445.2 MB, free: 1.957 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005519/0.5456, allocations: 330.2 kB / 445.5 MB, free: 1.629 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.5457, allocations: 61.69 kB / 445.5 MB, free: 1.562 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.546, allocations: 264.2 kB / 445.8 MB, free: 1.301 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.5463, allocations: 173.9 kB / 446 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.007e-05/0.5463, allocations: 20 kB / 446 MB, free: 1.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.5466, allocations: 370.8 kB / 446.4 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006872/0.5473, allocations: 302 kB / 446.6 MB, free: 452 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.5483, allocations: 0.6087 MB / 447.3 MB, free: 15.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.5494, allocations: 0.7012 MB / 448 MB, free: 14.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.5494, allocations: 7.938 kB / 448 MB, free: 14.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002993/0.5524, allocations: 1.414 MB / 449.4 MB, free: 13.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003147/0.5528, allocations: 354.7 kB / 449.7 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.301e-05/0.5529, allocations: 15.98 kB / 449.7 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002168/0.5531, allocations: 48.84 kB / 449.8 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/0.5536, allocations: 107.8 kB / 449.9 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007918/0.5544, allocations: 1.019 MB / 450.9 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.555, allocations: 91.33 kB / 451 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.5552, allocations: 59.92 kB / 451.1 MB, free: 11.6 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: 45 * 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 (108): * Single equations (assignments): 96 * 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.0009347/0.5562, allocations: 0.6179 MB / 451.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.5564, allocations: 59.53 kB / 451.7 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.5594, allocations: 1.333 MB / 453.1 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.5594, allocations: 7.984 kB / 453.1 MB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.292e-06/0.5594, allocations: 4 kB / 453.1 MB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.496e-06/0.5594, allocations: 0 / 453.1 MB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.5638, allocations: 2.145 MB / 455.2 MB, free: 7.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-05/0.5639, allocations: 7.938 kB / 455.2 MB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.5641, allocations: 31.92 kB / 455.3 MB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002847/0.5644, allocations: 68.8 kB / 455.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.5646, allocations: 43.97 kB / 455.4 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000736/0.5653, allocations: 1.007 MB / 456.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.877e-06/0.5653, allocations: 0 / 456.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/0.5699, allocations: 2.158 MB / 458.5 MB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.5701, allocations: 124.4 kB / 458.7 MB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.5704, allocations: 75.94 kB / 458.7 MB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008601/0.5712, allocations: 60.02 kB / 458.8 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003123/0.5716, allocations: 55.94 kB / 458.8 MB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/0.5717, allocations: 47.97 kB / 458.9 MB, free: 3.371 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003578/0.5721, allocations: 226.1 kB / 459.1 MB, free: 3.156 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.25e-07/0.5721, allocations: 0 / 459.1 MB, free: 3.156 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001351/0.5735, allocations: 315.5 kB / 459.4 MB, free: 2.848 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.001003/0.5745, allocations: 394 kB / 459.8 MB, free: 2.469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00489/0.5794, allocations: 1.808 MB / 461.6 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.5795, allocations: 1 kB / 461.6 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004588/0.5841, allocations: 2.231 MB / 463.8 MB, free: 14.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008099/0.5849, allocations: 65.19 kB / 463.9 MB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00427/0.5892, allocations: 1.047 MB / 465 MB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009337/0.5902, allocations: 0.9378 MB / 465.9 MB, free: 12.05 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004401/0.5907, allocations: 128.2 kB / 466 MB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.5908, allocations: 43.42 kB / 466.1 MB, free: 11.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.712e-06/0.5908, allocations: 0 / 466.1 MB, free: 11.88 MB / 394.7 MB Notification: Performance of Templates: time 0.02523/0.6161, allocations: 10.22 MB / 476.3 MB, free: 1.562 MB / 394.7 MB