Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.HybTest.TCwithPD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PNlib.Examples.HybTest.TCwithPD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|P3.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TCwithPD") translateModel(PNlib.Examples.HybTest.TCwithPD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|P3.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TCwithPD") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002333/0.002333, allocations: 178.4 kB / 7.452 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.013/1.013, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008169/0.0008169, allocations: 98.02 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06503/0.06503, allocations: 16.71 MB / 325.7 MB, free: 12.77 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.979e-06/4.999e-06, allocations: 0 / 383.4 MB, free: 71.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06342/0.06344, allocations: 51.68 MB / 435.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1998/0.2633, allocations: 81.95 MB / 0.505 GB, free: 9.891 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001618/0.2635, allocations: 67.56 kB / 0.505 GB, free: 9.883 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.07509/0.3386, allocations: 32.79 MB / 0.5371 GB, free: 4.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.367e-05/0.3387, allocations: 35.94 kB / 0.5371 GB, free: 4.215 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.00341/0.3421, allocations: 2.806 MB / 0.5398 GB, free: 1.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3422, allocations: 8.031 kB / 0.5398 GB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001956/0.3441, allocations: 495.4 kB / 0.5403 GB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.346, allocations: 1.08 MB / 0.5414 GB, free: 156 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000295/0.3463, allocations: 339.2 kB / 0.5417 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003509/0.3466, allocations: 178.9 kB / 0.5419 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004194/0.3508, allocations: 2.961 MB / 0.5447 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005331/0.3562, allocations: 3.914 MB / 0.5486 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/0.3562, allocations: 4 kB / 0.5486 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/0.3565, allocations: 58.22 kB / 0.5486 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001924/0.3567, allocations: 160.5 kB / 0.5488 GB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.3669, allocations: 7.265 MB / 0.5559 GB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003996/0.3709, allocations: 4.323 MB / 0.5601 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003695/0.3746, allocations: 4.192 MB / 0.5642 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.3747, allocations: 36.64 kB / 0.5642 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003169/0.3779, allocations: 2.458 MB / 0.5666 GB, free: 8.203 MB / 378.7 MB Notification: Performance of pre-optimization done (n=207): time 3.386e-06/0.3779, allocations: 0 / 0.5666 GB, free: 8.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=207): time 0.005684/0.3836, allocations: 3.554 MB / 0.5701 GB, free: 4.641 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008215/0.3845, allocations: 1.462 MB / 0.5715 GB, free: 2.918 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.3855, allocations: 0.7398 MB / 0.5723 GB, free: 2.176 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002656/0.3858, allocations: 113.7 kB / 0.5724 GB, free: 2.059 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000592/0.3864, allocations: 0.6305 MB / 0.573 GB, free: 1.434 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005525/0.387, allocations: 0.5043 MB / 0.5735 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.3871, allocations: 20.06 kB / 0.5735 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002605/0.3874, allocations: 462.5 kB / 0.5739 GB, free: 464 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001748/0.3892, allocations: 1.193 MB / 0.5751 GB, free: 15.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.3915, allocations: 2.215 MB / 0.5773 GB, free: 12.58 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/0.3935, allocations: 1.273 MB / 0.5785 GB, free: 11.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.049e-05/0.3936, allocations: 12 kB / 0.5785 GB, free: 11.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.005175/0.3987, allocations: 3.367 MB / 0.5818 GB, free: 7.918 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3988, allocations: 8 kB / 0.5818 GB, free: 7.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.53e-05/0.3988, allocations: 35.98 kB / 0.5818 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000823/0.3997, allocations: 213.4 kB / 0.582 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000997/0.4007, allocations: 363.1 kB / 0.5824 GB, free: 7.309 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005674/0.4013, allocations: 0.9903 MB / 0.5834 GB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.4026, allocations: 237.9 kB / 0.5836 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002752/0.4029, allocations: 164 kB / 0.5837 GB, free: 5.867 MB / 394.7 MB Warning: Assuming fixed start value for the following 58 variables: P3.enableIn.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P3.enableIn.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P3.enableIn.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P3.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P3.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P3.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P3.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P3.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P3.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P3.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P3.enableOut.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P3.enableOut.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P3.enableOut.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P3.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P3.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P3.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P3.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P3.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P3.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P3.enableOut.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P2.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P2.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P2.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P2.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P2.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P2.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P2.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P2.enableIn.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real P1.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.Index:DISCRETE(fixed = false protected = true ) type: Integer P1.enableOut.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real P3.firingSumIn.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P3.firingSumOut.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P2.disMarksOut.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P2.disMarksIn.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P1.disMarksOut.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P1.disMarksIn.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P2.enableOut.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real P2.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P2.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P2.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P2.enableOut.Index:DISCRETE(fixed = false protected = true ) type: Integer P1.enableIn.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: P1.decFactorOut[1]:VARIABLE(protected = true ) "decreasing factors for output transitions" type: Real [1] P2.decFactorIn[1]:VARIABLE(protected = true ) "decreasing factors for input transitions" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 349 ($PRE.P3.enableIn.valid,P3.enableIn.valid,$PRE.P3.enableIn.benefitLimit,P3.enableIn.benefitLimit,$PRE.P3.enableIn.benefitMax,P3.enableIn.benefitMax,$PRE.P3.enableIn.posTE,P3.enableIn.posTE,$PRE.P3.enableIn.k,P3.enableIn.k,$PRE.P3.enableIn.endWhile,P3.enableIn.endWhile,$PRE.P3.enableIn.state128[1],P3.enableIn.state128[1],$PRE.P3.enableIn.state128[2],P3.enableIn.state128[2],$PRE.P3.enableIn.state128[3],P3.enableIn.state128[3],$PRE.P3.enableIn.state128[4],P3.enableIn.state128[4],$PRE.P3.enableIn.randNum,P3.enableIn.randNum,$PRE.P3.enableIn.cumEnablingProb[1],P3.enableIn.cumEnablingProb[1],$PRE.P3.enableIn.sumEnablingProbTAin,P3.enableIn.sumEnablingProbTAin,$PRE.P3.enableIn.nTAin,P3.enableIn.nTAin,$PRE.P3.enableIn.nremTAin,P3.enableIn.nremTAin,$PRE.P3.enableIn.remTAin[1],P3.enableIn.remTAin[1],$PRE.P3.enableIn.Index,P3.enableIn.Index,$PRE.P3.enableOut.valid,P3.enableOut.valid,$PRE.P3.enableOut.benefitLimit,P3.enableOut.benefitLimit,$PRE.P3.enableOut.benefitMax,P3.enableOut.benefitMax,$PRE.P3.enableOut.posTE,P3.enableOut.posTE,$PRE.P3.enableOut.k,P3.enableOut.k,$PRE.P3.enableOut.endWhile,P3.enableOut.endWhile,$PRE.P3.enableOut.state128[1],P3.enableOut.state128[1],$PRE.P3.enableOut.state128[2],P3.enableOut.state128[2],$PRE.P3.enableOut.state128[3],P3.enableOut.state128[3],$PRE.P3.enableOut.state128[4],P3.enableOut.state128[4],$PRE.P3.enableOut.randNum,P3.enableOut.randNum,$PRE.P3.enableOut.cumEnablingProb[1],P3.enableOut.cumEnablingProb[1],$PRE.P3.enableOut.sumEnablingProbTAout,P3.enableOut.sumEnablingProbTAout,$PRE.P3.enableOut.nTAout,P3.enableOut.nTAout,$PRE.P3.enableOut.nremTAout,P3.enableOut.nremTAout,$PRE.P3.enableOut.remTAout[1],P3.enableOut.remTAout[1],$PRE.P3.enableOut.Index,P3.enableOut.Index,$PRE.P2.enableIn.posTE,P2.enableIn.posTE,$PRE.P2.enableIn.k,P2.enableIn.k,$PRE.P2.enableIn.endWhile,P2.enableIn.endWhile,$PRE.P2.enableIn.state128[1],P2.enableIn.state128[1],$PRE.P2.enableIn.state128[2],P2.enableIn.state128[2],$PRE.P2.enableIn.state128[3],P2.enableIn.state128[3],$PRE.P2.enableIn.state128[4],P2.enableIn.state128[4],$PRE.P2.enableIn.randNum,P2.enableIn.randNum,$PRE.P2.enableIn.cumEnablingProb[1],P2.enableIn.cumEnablingProb[1],$PRE.P2.enableIn.sumEnablingProbTAin,P2.enableIn.sumEnablingProbTAin,$PRE.P2.enableIn.nTAin,P2.enableIn.nTAin,$PRE.P2.enableIn.nremTAin,P2.enableIn.nremTAin,$PRE.P2.enableIn.remTAin[1],P2.enableIn.remTAin[1],$PRE.P2.enableIn.Index,P2.enableIn.Index,$PRE.P2.enableIn.arcWeightSum,P2.enableIn.arcWeightSum,$PRE.P2.enableIn.disTAin[1],P2.enableIn.disTAin[1],$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,$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.cumEnablingProb[1],P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,$PRE.P1.enableOut.remTAout[1],P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,$PRE.P1.enableOut.disTAout[1],P1.enableOut.disTAout[1],$whenCondition9,$PRE.P3.reStart,$whenCondition8,$whenCondition7,P3.tokeninout,$PRE.P3.firingSumIn.firingSum,$PRE.P3.firingSumOut.firingSum,$PRE.P3.tokeninout,P3.outTransition[1].tokenInOut,$whenCondition11,P2.disMarksInOut,$PRE.P2.disMarksOut.anytrue,$PRE.P2.disMarksIn.anytrue,P2.disMarksOut.anytrue,P2.disMarksOut.numtrue,$whenCondition10,P1.disMarksInOut,$PRE.P1.disMarksOut.anytrue,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksInOut,P1.outTransition[1].tokenInOut,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.state128[1],P2.enableOut.state128[1],$PRE.P2.enableOut.state128[2],P2.enableOut.state128[2],$PRE.P2.enableOut.state128[3],P2.enableOut.state128[3],$PRE.P2.enableOut.state128[4],P2.enableOut.state128[4],$PRE.P2.enableOut.randNum,P2.enableOut.randNum,$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$PRE.P2.enableOut.Index,P2.enableOut.Index,$whenCondition2,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,$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,$whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,T1.outPlaces[2].enabledByInPlaces,P3.inTransition[1].emptied,T1.outPlaces[2].disTransition,P3.inTransition[1].disPlace,P3.outTransition[1].testValueint,P3.outTransition[1].normalArc,P3.outTransition[1].fed,T1.inPlaces[2].disTransition,P3.outTransition[1].disPlace,P3.outTransition[1].arcType,P2.inTransition[1].tint,P2.inTransition[1].maxTokensint,T1.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].disTransition,P2.inTransition[1].disPlace,P1.outTransition[1].tint,P1.outTransition[1].testValueint,P1.outTransition[1].normalArc,P1.outTransition[1].minTokensint,T1.inPlaces[1].disTransition,P1.outTransition[1].disPlace,P1.outTransition[1].arcType,P3.enableIn.enablingPrio[1],P3.enableOut.enablingPrio[1],P3.reStart,T1.firingCon,P2.enableIn.enablingPrio[1],P2.reStart,P1.enableOut.enablingPrio[1],P1.reStart,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksOut.vec[1],P2.disMarksIn.anytrue,P2.disMarksIn.numtrue,P2.disMarksIn.vec[1],P3.enableIn.disTransition[1],$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$PRE.P1.fireOut[1],P1.fireOut[1],P1.enableOut.TAout[1],P1.enableOut.TEout_[1],$PRE.P1.enableOut.TEout[1],P1.enableOut.TEout[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.vec[1],P1.emptying.anytrue,P1.emptying.numtrue,$PRE.P2.fireIn[1],P2.fireIn[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],$PRE.P2.enableIn.TEin[1],P2.enableIn.TEin[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.feeding.vec[1],P2.feeding.anytrue,P2.feeding.numtrue,P2.emptying.anytrue,P2.emptying.numtrue,T1.activation.tIntIn[2],T1.activation.tIntOut[2],T1.activation.arcWeightIntIn[2],T1.activation.arcWeightIntOut[2],T1.activation.minTokensInt[2],T1.activation.maxTokensInt[2],T1.activation.fed[1],T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyOutputActiveVec[2],T1.activation.NoTokens,T1.fire_,$PRE.P3.t,P3.t,$PRE.P3.activeOut[1],P3.activeOut[1],P3.activeConOut.vec[1],P3.activeConOut.anychange,P3.delayPassedOut.anytrue,P3.delayPassedOut.numtrue,P3.delayPassedIn.anytrue,P3.delayPassedIn.numtrue,P3.firingSumIn.arcWeight[1],P3.firingSumIn.firingSum,P3.firingSumOut.arcWeight[1],P3.firingSumOut.firingSum,P3.enableOut.TAout[1],P3.enableOut.TEout_[1],$PRE.P3.enableOut.TEout[1],P3.enableOut.TEout[1],$PRE.P3.enableOut.arcWeightSum,P3.enableOut.arcWeightSum,P3.enableIn.TAein[1],P3.enableIn.active[1],P3.enableIn.TEin_[1],$PRE.P3.enableIn.TEin[1],P3.enableIn.TEin[1],$PRE.P3.enableIn.arcWeightSum,P3.enableIn.arcWeightSum,T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.minTokensInt[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.tIntIn[1],T1.activation.disPlaceOut[1],T1.activation.maxTokensInt[1],T1.activation.tIntOut[1],T1.activation.arcType[2],T1.activation.disPlaceIn[2],P3.enableOut.disTransition[1],T1.activation.fed[2],T1.activation.normalArc[2],T1.activation.testValueInt[2],T1.activation.disPlaceOut[2],T1.activation.emptied[2],P3.firingSumOut.fire[1],P3.firingSumIn.fire[1],P3.delayPassedIn.vec[1],P3.delayPassedOut.vec[1],P3.enableIn.arcWeight[1],T1.activation.arcWeightIntOut[1],P3.enableOut.arcWeight[1],T1.activation.arcWeightIntIn[1],P2.delayPassedIn.vec[1],P1.delayPassedOut.vec[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (363): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 30 * 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 {2 3} Notification: Performance of prepare postOptimizeDAE: time 0.002048/0.405, allocations: 1.594 MB / 0.5853 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006362/0.4056, allocations: 190.6 kB / 0.5855 GB, free: 3.938 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006488/0.4121, allocations: 3.846 MB / 0.5892 GB, free: 76 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.162e-05/0.4122, allocations: 8 kB / 0.5892 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4122, allocations: 0 / 0.5892 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.4122, allocations: 7.984 kB / 0.5893 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.4223, allocations: 6.274 MB / 0.5954 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.4223, allocations: 4 kB / 0.5954 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.4227, allocations: 75.88 kB / 0.5955 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000388/0.4231, allocations: 148.5 kB / 0.5956 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002776/0.4234, allocations: 119.8 kB / 0.5957 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004852/0.4239, allocations: 0.9515 MB / 0.5966 GB, free: 8.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.4239, allocations: 7.938 kB / 0.5966 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009919/0.4338, allocations: 6.713 MB / 0.6032 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.434, allocations: 199.3 kB / 0.6034 GB, free: 1.438 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006568/0.4347, allocations: 224 kB / 0.6036 GB, free: 1.219 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.436, allocations: 207.8 kB / 0.6038 GB, free: 1.016 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008056/0.4368, allocations: 0.5314 MB / 0.6043 GB, free: 496 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000355/0.4372, allocations: 163.7 kB / 0.6045 GB, free: 336 kB / 410.7 MB Notification: Performance of sort global known variables: time 0.000509/0.4377, allocations: 403.1 kB / 0.6049 GB, free: 15.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002691/0.4404, allocations: 0.8268 MB / 0.6057 GB, free: 15.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 180 ($whenCondition1,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.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$whenCondition2,P2.enableOut.state128[1],P2.enableOut.state128[2],P2.enableOut.state128[3],P2.enableOut.state128[4],P2.enableOut.arcWeightSum,P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.disMarksInOut,$cse1[1],$cse1[2],$whenCondition11,$whenCondition10,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,P1.disMarksInOut,P1.fireOut[1],P1.enableOut.TAout[1],P1.enableOut.TEout_[1],P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.TEout[1],P1.enableOut.disTAout[1],P1.enableOut.remTAout[1],P1.enableOut.cumEnablingProb[1],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.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.vec[1],P1.emptying.anytrue,P1.emptying.numtrue,P1.outTransition[1].tokenInOut,P2.fireIn[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],P2.enableIn.state128[1],P2.enableIn.state128[2],P2.enableIn.state128[3],P2.enableIn.state128[4],P2.enableIn.TEin[1],P2.enableIn.disTAin[1],P2.enableIn.remTAin[1],P2.enableIn.cumEnablingProb[1],P2.enableIn.arcWeightSum,P2.enableIn.nremTAin,P2.enableIn.nTAin,P2.enableIn.k,P2.enableIn.posTE,P2.enableIn.randNum,P2.enableIn.sumEnablingProbTAin,P2.enableIn.endWhile,P2.enableIn.Index,P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.disMarksOut.anytrue,P2.disMarksOut.numtrue,P2.disMarksIn.anytrue,P2.disMarksIn.numtrue,P2.feeding.vec[1],P2.feeding.anytrue,P2.feeding.numtrue,P2.emptying.anytrue,P2.emptying.numtrue,T1.activation.tIntIn[2],T1.activation.tIntOut[2],T1.activation.arcWeightIntIn[2],T1.activation.arcWeightIntOut[2],T1.activation.minTokensInt[2],T1.activation.maxTokensInt[2],T1.activation.fed[1],T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyOutputActiveVec[2],T1.activation.NoTokens,T1.fire_,P3.t,P3.tokeninout,P3.activeOut[1],P3.activeConOut.vec[1],P3.activeConOut.anychange,P3.delayPassedOut.anytrue,P3.delayPassedOut.numtrue,P3.delayPassedIn.anytrue,P3.delayPassedIn.numtrue,P3.firingSumIn.arcWeight[1],P3.firingSumIn.firingSum,P3.firingSumOut.arcWeight[1],P3.firingSumOut.firingSum,P3.enableOut.TAout[1],P3.enableOut.TEout_[1],P3.enableOut.state128[1],P3.enableOut.state128[2],P3.enableOut.state128[3],P3.enableOut.state128[4],P3.enableOut.TEout[1],P3.enableOut.remTAout[1],P3.enableOut.cumEnablingProb[1],P3.enableOut.arcWeightSum,P3.enableOut.nremTAout,P3.enableOut.nTAout,P3.enableOut.k,P3.enableOut.posTE,P3.enableOut.randNum,P3.enableOut.sumEnablingProbTAout,P3.enableOut.endWhile,P3.enableOut.Index,P3.enableOut.benefitMax,P3.enableOut.valid,P3.enableOut.benefitLimit,P3.enableIn.TAein[1],P3.enableIn.active[1],P3.enableIn.TEin_[1],P3.enableIn.state128[1],P3.enableIn.state128[2],P3.enableIn.state128[3],P3.enableIn.state128[4],P3.enableIn.TEin[1],P3.enableIn.remTAin[1],P3.enableIn.cumEnablingProb[1],P3.enableIn.arcWeightSum,P3.enableIn.nremTAin,P3.enableIn.nTAin,P3.enableIn.k,P3.enableIn.posTE,P3.enableIn.randNum,P3.enableIn.sumEnablingProbTAin,P3.enableIn.endWhile,P3.enableIn.Index,P3.enableIn.benefitMax,P3.enableIn.valid,P3.enableIn.benefitLimit,P3.outTransition[1].tokenInOut) * Number of discrete states: 153 (P3.firingSumOut.firingSum,P3.firingSumIn.firingSum,P3.t,P3.tokeninout,P3.delayPassedIn.numtrue,P3.delayPassedIn.anytrue,P3.delayPassedOut.numtrue,P3.delayPassedOut.anytrue,P3.activeOut[1],P3.activeConOut.anychange,i,P3.activeConOut.vec[i],P2.fireIn[1],P2.disMarksOut.anytrue,P2.disMarksIn.anytrue,P2.emptying.numtrue,P2.emptying.anytrue,P2.feeding.numtrue,P2.feeding.anytrue,P2.disMarksIn.numtrue,P2.disMarksOut.numtrue,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P1.fireOut[1],P1.disMarksOut.anytrue,P1.disMarksIn.anytrue,P1.disMarksInOut,P1.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,T1.activation.weaklyOutputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.NoTokens,P3.enableIn.TEin_[1],P3.enableIn.valid,P3.enableIn.benefitLimit,P3.enableIn.benefitMax,P3.enableIn.posTE,P3.enableIn.k,P3.enableIn.endWhile,P3.enableIn.state128[4],P3.enableIn.state128[3],P3.enableIn.state128[2],P3.enableIn.state128[1],P3.enableIn.randNum,P3.enableIn.cumEnablingProb[1],P3.enableIn.sumEnablingProbTAin,P3.enableIn.nTAin,P3.enableIn.nremTAin,P3.enableIn.remTAin[1],P3.enableIn.Index,$whenCondition6,P3.enableIn.arcWeightSum,P3.enableIn.TEin[1],P2.enableIn.TEin_[1],P2.enableIn.posTE,P2.enableIn.k,P2.enableIn.endWhile,P2.enableIn.state128[4],P2.enableIn.state128[3],P2.enableIn.state128[2],P2.enableIn.state128[1],P2.enableIn.randNum,P2.enableIn.cumEnablingProb[1],P2.enableIn.sumEnablingProbTAin,P2.enableIn.nTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],P2.enableIn.Index,P2.enableIn.arcWeightSum,P2.enableIn.disTAin[1],$whenCondition4,P2.enableIn.TEin[1],P3.enableOut.TEout_[1],P3.enableOut.valid,P3.enableOut.benefitLimit,P3.enableOut.benefitMax,P3.enableOut.posTE,P3.enableOut.k,P3.enableOut.endWhile,P3.enableOut.state128[4],P3.enableOut.state128[3],P3.enableOut.state128[2],P3.enableOut.state128[1],P3.enableOut.randNum,P3.enableOut.cumEnablingProb[1],P3.enableOut.sumEnablingProbTAout,P3.enableOut.nTAout,P3.enableOut.nremTAout,P3.enableOut.remTAout[1],P3.enableOut.Index,$whenCondition5,P3.enableOut.arcWeightSum,P3.enableOut.TEout[1],P1.disMarksIn.numtrue,P1.disMarksOut.numtrue,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.enableOut.TEout_[1],P1.enableOut.posTE,P1.enableOut.k,P1.enableOut.endWhile,P1.enableOut.state128[4],P1.enableOut.state128[3],P1.enableOut.state128[2],P1.enableOut.state128[1],P1.enableOut.randNum,P1.enableOut.cumEnablingProb[1],P1.enableOut.sumEnablingProbTAout,P1.enableOut.nTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],P1.enableOut.Index,P1.enableOut.arcWeightSum,P1.enableOut.disTAout[1],$whenCondition3,P1.enableOut.TEout[1],P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.enableOut.arcWeightSum,P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,$whenCondition2,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.enableIn.arcWeightSum,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,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 56 * Array equations: 1 * Algorithm blocks: 24 * Record equations: 0 * When equations: 1 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/0.4422, allocations: 0.7952 MB / 0.6064 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006382/0.4486, allocations: 5.504 MB / 0.6118 GB, free: 8.645 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4486, allocations: 4 kB / 0.6118 GB, free: 8.641 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006823/0.4554, allocations: 8.4 MB / 0.62 GB, free: 88 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/0.4561, allocations: 142.5 kB / 0.6202 GB, free: 15.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007403/0.4636, allocations: 4.287 MB / 0.6244 GB, free: 11.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00154/0.4651, allocations: 1.611 MB / 0.6259 GB, free: 9.973 MB / 442.7 MB Notification: Performance of SimCode: time 2.174e-06/0.4651, allocations: 0 / 0.6259 GB, free: 9.973 MB / 442.7 MB Notification: Performance of Templates: time 0.1488/0.614, allocations: 34.34 MB / 0.6595 GB, free: 180.4 MB / 458.7 MB make -j1 -f PNlib_PNlib.Examples.HybTest.TCwithPD.makefile (rm -f PNlib_PNlib.Examples.HybTest.TCwithPD.pipe ; mkfifo PNlib_PNlib.Examples.HybTest.TCwithPD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.HybTest.TCwithPD.pipe >> ../files/PNlib_PNlib.Examples.HybTest.TCwithPD.sim & ./PNlib_PNlib.Examples.HybTest.TCwithPD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.HybTest.TCwithPD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.HybTest.TCwithPD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.HybTest.TCwithPD.mat","../files/PNlib_PNlib.Examples.HybTest.TCwithPD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches