Running command: translateModel(PNlib.Examples.HybTest.TDtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TDtoPC") Notification: Performance of loadModel(PNlib): time 1.957/1.957, allocations: 222.9 MB / 235 MB, free: 9.258 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.077e-05/4.089e-05, allocations: 4 kB / 289.6 MB, free: 4.086 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 51.68 MB / 341.3 MB, free: 308 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3747/0.4906, allocations: 79.83 MB / 421.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.4909, allocations: 66.16 kB / 421.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08358/0.5745, allocations: 12.45 MB / 433.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.052e-06/0.5746, allocations: 0 / 433.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.805e-05/0.5747, allocations: 12 kB / 433.6 MB, free: 14.07 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.003057/0.5777, allocations: 1.139 MB / 434.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.5778, allocations: 8.031 kB / 434.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00217/0.58, allocations: 179.1 kB / 434.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/0.5817, allocations: 435 kB / 435.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.5821, allocations: 138.4 kB / 435.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.5825, allocations: 75.98 kB / 435.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004159/0.5867, allocations: 1.059 MB / 436.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.368e-05/0.5868, allocations: 3.938 kB / 436.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/0.587, allocations: 35.98 kB / 436.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/0.5872, allocations: 40.97 kB / 436.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003061/0.5903, allocations: 0.6971 MB / 437.4 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008688/0.599, allocations: 2.682 MB / 440.1 MB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002934/0.602, allocations: 1.029 MB / 441.1 MB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002361/0.6044, allocations: 0.8469 MB / 442 MB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002506/0.6047, allocations: 97.06 kB / 442.1 MB, free: 5.219 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00223/0.607, allocations: 0.6348 MB / 442.7 MB, free: 4.547 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 6.057e-06/0.6071, allocations: 0 / 442.7 MB, free: 4.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.002952/0.61, allocations: 1.228 MB / 443.9 MB, free: 3.254 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004574/0.6105, allocations: 0.5575 MB / 444.5 MB, free: 2.582 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007443/0.6113, allocations: 338.2 kB / 444.8 MB, free: 2.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002124/0.6115, allocations: 61.7 kB / 444.9 MB, free: 2.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004195/0.612, allocations: 260.3 kB / 445.1 MB, free: 1.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/0.6124, allocations: 181.9 kB / 445.3 MB, free: 1.742 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.6125, allocations: 24.09 kB / 445.3 MB, free: 1.719 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003452/0.6129, allocations: 362.8 kB / 445.7 MB, free: 1.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.6142, allocations: 286 kB / 446 MB, free: 1.074 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.616, allocations: 0.6247 MB / 446.6 MB, free: 300 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001943/0.618, allocations: 0.69 MB / 447.3 MB, free: 15.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.519e-05/0.6181, allocations: 4 kB / 447.3 MB, free: 15.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005315/0.6234, allocations: 1.409 MB / 448.7 MB, free: 14.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003201/0.6238, allocations: 347.7 kB / 449 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.16e-05/0.6238, allocations: 15.98 kB / 449.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.048e-05/0.6239, allocations: 20 kB / 449.1 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000551/0.6244, allocations: 127.7 kB / 449.2 MB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.259e-05/0.6245, allocations: 19.94 kB / 449.2 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006365/0.6251, allocations: 103.2 kB / 449.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.6253, allocations: 55.98 kB / 449.4 MB, free: 13.3 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: 50 * 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 (118): * Single equations (assignments): 106 * 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.0009642/0.6263, allocations: 0.6209 MB / 450 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/0.6265, allocations: 67.39 kB / 450.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.6291, allocations: 1.113 MB / 451.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.6291, allocations: 4 kB / 451.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.6292, allocations: 4 kB / 451.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.442e-06/0.6292, allocations: 0 / 451.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004309/0.6335, allocations: 2.012 MB / 453.2 MB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.097e-05/0.6335, allocations: 4 kB / 453.2 MB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.6338, allocations: 35.91 kB / 453.2 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.074e-06/0.6338, allocations: 0 / 453.2 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.6339, allocations: 35.98 kB / 453.3 MB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.634, allocations: 4 kB / 453.3 MB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.072e-06/0.634, allocations: 0 / 453.3 MB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004463/0.6385, allocations: 2.15 MB / 455.4 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.6386, allocations: 116.5 kB / 455.5 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/0.6389, allocations: 75.91 kB / 455.6 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005329/0.6395, allocations: 60.03 kB / 455.7 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/0.6397, allocations: 95.84 kB / 455.8 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.6399, allocations: 43.97 kB / 455.8 MB, free: 6.555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003435/0.6403, allocations: 226.2 kB / 456 MB, free: 6.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.6403, allocations: 0 / 456 MB, free: 6.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001316/0.6416, allocations: 291.7 kB / 456.3 MB, free: 6.055 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 (32): * Single equations (assignments): 19 * 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.0009502/0.6426, allocations: 368.2 kB / 456.7 MB, free: 5.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.6454, allocations: 1.673 MB / 458.3 MB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.503e-06/0.6455, allocations: 4.375 kB / 458.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.6482, allocations: 2.137 MB / 460.5 MB, free: 1.625 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005286/0.6488, allocations: 61.33 kB / 460.5 MB, free: 1.566 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.6515, allocations: 1.041 MB / 461.6 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000728/0.6522, allocations: 0.9231 MB / 462.5 MB, free: 15.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000406/0.6527, allocations: 108.3 kB / 462.6 MB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.6528, allocations: 31.44 kB / 462.6 MB, free: 15.4 MB / 394.7 MB Notification: Performance of SimCode: time 3.789e-06/0.6528, allocations: 4 kB / 462.6 MB, free: 15.4 MB / 394.7 MB Notification: Performance of Templates: time 0.02318/0.676, allocations: 9.519 MB / 472.2 MB, free: 5.781 MB / 394.7 MB