Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.LoopAndArcweight.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.ConTest.LoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.LoopAndArcweight") translateModel(PNlib.Examples.ConTest.LoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.LoopAndArcweight") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009057/0.0009056, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009092/0.0009093, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1686/0.1686, allocations: 16.72 MB / 307.7 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 15.98 kB / 372.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2541, allocations: 54.47 MB / 427.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.LoopAndArcweight): time 0.002045/0.2562, allocations: 2.358 MB / 429.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.2591, allocations: 2.238 MB / 431.8 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002984/0.2595, allocations: 10.09 kB / 431.8 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.2598, allocations: 181.4 kB / 431.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005144/0.2603, allocations: 199.7 kB / 432.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.2615, allocations: 0.711 MB / 432.8 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.2626, allocations: 1.265 MB / 434.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003643/0.263, allocations: 316.8 kB / 434.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005873/0.2636, allocations: 0.7249 MB / 435.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005565/0.2642, allocations: 0.6295 MB / 435.8 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.2643, allocations: 78.28 kB / 435.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005054/0.2648, allocations: 377.6 kB / 436.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.2651, allocations: 292.2 kB / 436.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.2653, allocations: 347.8 kB / 436.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.2664, allocations: 1.601 MB / 438.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.2664, allocations: 4 kB / 438.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.2664, allocations: 3.422 kB / 438.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.2664, allocations: 3.938 kB / 438.5 MB, free: 34.62 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.00194/0.2684, allocations: 2.024 MB / 440.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2684, allocations: 8.219 kB / 440.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.2698, allocations: 366.7 kB / 440.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009781/0.2708, allocations: 0.744 MB / 441.6 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/0.2711, allocations: 383.8 kB / 442 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002268/0.2713, allocations: 192.1 kB / 442.2 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003815/0.2751, allocations: 3.093 MB / 445.2 MB, free: 30.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.416e-05/0.2752, allocations: 3.938 kB / 445.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/0.2754, allocations: 95.16 kB / 445.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.2756, allocations: 157.2 kB / 445.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.2787, allocations: 2.272 MB / 447.8 MB, free: 30.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006544/0.2852, allocations: 5.781 MB / 453.5 MB, free: 26.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.2878, allocations: 2.987 MB / 456.5 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.2879, allocations: 120.8 kB / 456.7 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002085/0.29, allocations: 1.758 MB / 458.4 MB, free: 24.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=148): time 2.484e-06/0.29, allocations: 7.188 kB / 458.4 MB, free: 24.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.008779/0.2988, allocations: 7.006 MB / 465.4 MB, free: 20.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004428/0.2993, allocations: 1.073 MB / 466.5 MB, free: 19.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007902/0.3001, allocations: 0.6791 MB / 467.2 MB, free: 18.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001712/0.3003, allocations: 108.8 kB / 467.3 MB, free: 18.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.3006, allocations: 0.5168 MB / 467.8 MB, free: 18.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.3009, allocations: 395.2 kB / 468.2 MB, free: 18.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.594e-05/0.301, allocations: 44.19 kB / 468.2 MB, free: 18.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3011, allocations: 427.5 kB / 468.6 MB, free: 17.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.3025, allocations: 0.9082 MB / 469.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.3041, allocations: 1.626 MB / 471.2 MB, free: 16.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.3057, allocations: 1.644 MB / 472.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.599e-05/0.3057, allocations: 6.141 kB / 472.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.004902/0.3106, allocations: 3.561 MB / 476.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004019/0.3111, allocations: 0.6945 MB / 477.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002575/0.3136, allocations: 1.84 MB / 478.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.3148, allocations: 338.2 kB / 479.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007148/0.3156, allocations: 234.2 kB / 479.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005415/0.3161, allocations: 0.7454 MB / 480.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.3172, allocations: 268.3 kB / 480.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.3174, allocations: 117.7 kB / 480.6 MB, free: 10.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 36 variables: P2.enableOut.Index:DISCRETE(fixed = true protected = true ) type: Integer P2.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P2.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P2.enableOut.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real P2.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P2.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P2.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P2.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P2.enableIn.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real P1.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.Index:DISCRETE(fixed = true protected = true ) type: Integer P1.enableOut.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real P1.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P1.enableIn.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real P2.disMarksOut.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P2.disMarksIn.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P1.disMarksOut.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P1.disMarksIn.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 231 ($PRE.P2.enableOut.Index,P2.enableOut.Index,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,$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.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,$whenCondition6,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,$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],$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],P1.outTransition[1].tokenInOut,$PRE.P1.disMarksInOut,$whenCondition5,P2.disMarksInOut,$PRE.P2.disMarksOut.anytrue,$PRE.P2.disMarksIn.anytrue,$whenCondition4,P1.disMarksInOut,$PRE.P1.disMarksOut.anytrue,$PRE.P1.disMarksIn.anytrue,P2.disMarksOut.anytrue,P2.disMarksOut.numtrue,P2.inTransition[1].disPlace,P2.inTransition[1].maxTokensint,P2.inTransition[1].tint,T1.outPlaces[2].disTransition,T1.outPlaces[2].enabledByInPlaces,P2.reStart,T1.firingCon,T1.outPlaces[1].disTransition,T1.outPlaces[1].enabledByInPlaces,P1.inTransition[1].disPlace,P1.inTransition[1].maxTokensint,P1.inTransition[1].tint,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.outTransition[1].minTokensint,P1.outTransition[1].tint,P1.reStart,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksOut.vec[1],P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.disMarksIn.vec[1],P2.disMarksIn.anytrue,P2.disMarksIn.numtrue,P2.disMarksIn.vec[1],$whenCondition1,$whenCondition2,$whenCondition3,$PRE.P1.fireIn[1],P1.fireIn[1],$PRE.P1.fireOut[1],P1.fireOut[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin[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.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.feeding.vec[1],P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.vec[1],P1.emptying.anytrue,P1.emptying.numtrue,T1.activation.fed[1],T1.activation.emptied[1],T1.activation.emptied[2],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyOutputActiveVec[2],T1.activation.NoTokens,T1.fire_,$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[1],T1.activation.minTokensInt[1],T1.activation.disPlaceIn[1],T1.activation.arcType[1],T1.activation.testValueInt[1],T1.activation.normalArc[1],T1.activation.tIntOut[1],T1.activation.maxTokensInt[1],T1.activation.disPlaceOut[1],T1.activation.tIntOut[2],T1.activation.maxTokensInt[2],T1.activation.disPlaceOut[2],P2.delayPassedIn.vec[1],T1.activation.arcWeightIntOut[2],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntIn[1],P1.delayPassedIn.vec[1],P1.delayPassedOut.vec[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (240): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 21 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.001687/0.3191, allocations: 1.468 MB / 482.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.3195, allocations: 149.4 kB / 482.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005623/0.3251, allocations: 4.453 MB / 486.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.3251, allocations: 15.92 kB / 486.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3251, allocations: 0 / 486.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3251, allocations: 4 kB / 486.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00727/0.3324, allocations: 6.501 MB / 493.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00568/0.3381, allocations: 4.284 MB / 497.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.3384, allocations: 55.91 kB / 497.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005945/0.339, allocations: 228.7 kB / 497.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002258/0.3392, allocations: 88.48 kB / 497.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005843/0.3398, allocations: 0.7128 MB / 498.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3398, allocations: 0 / 498.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009169/0.349, allocations: 6.637 MB / 0.4934 GB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002025/0.3492, allocations: 175.8 kB / 0.4935 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004385/0.3497, allocations: 156 kB / 0.4937 GB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009766/0.3507, allocations: 159.9 kB / 0.4938 GB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006045/0.3513, allocations: 353.7 kB / 0.4942 GB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000239/0.3515, allocations: 106.1 kB / 0.4943 GB, free: 3.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004448/0.352, allocations: 378.8 kB / 0.4946 GB, free: 2.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.262e-06/0.352, allocations: 0 / 0.4946 GB, free: 2.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001931/0.3539, allocations: 0.5964 MB / 0.4952 GB, free: 2.398 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 119 (P2.disMarksInOut,$cse3[1],$whenCondition5,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,P1.outTransition[1].tokenInOut,P1.disMarksInOut,P1.fireIn[1],P1.fireOut[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.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.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.vec[1],P1.emptying.anytrue,P1.emptying.numtrue,T1.activation.fed[1],T1.activation.emptied[1],T1.activation.emptied[2],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyOutputActiveVec[2],T1.activation.NoTokens,T1.fire_,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,$whenCondition6,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) * Number of discrete states: 106 (P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.enableOut.Index,P2.enableOut.endWhile,P2.enableOut.sumEnablingProbTAout,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.randNum,P2.enableOut.posTE,P2.enableOut.k,P2.enableOut.nTAout,P2.enableOut.nremTAout,P2.enableOut.arcWeightSum,$whenCondition6,P1.disMarksInOut,P2.fireIn[1],P2.disMarksOut.anytrue,P2.disMarksIn.anytrue,P1.fireIn[1],P1.fireOut[1],P1.disMarksOut.anytrue,P1.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.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,T1.activation.weaklyOutputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.NoTokens,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],$whenCondition3,P2.enableIn.TEin[1],P1.disMarksIn.numtrue,P1.disMarksOut.numtrue,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,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],$whenCondition2,P1.enableOut.TEout[1],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],$whenCondition1,P1.enableIn.TEin[1],P2.disMarkChange,P1.disMarkChange) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 40 * Array equations: 1 * Algorithm blocks: 17 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/0.355, allocations: 0.5052 MB / 0.4957 GB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006111/0.3611, allocations: 4.619 MB / 0.5002 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.3611, allocations: 4 kB / 0.5002 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005256/0.3664, allocations: 5.823 MB / 0.5059 GB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006971/0.3671, allocations: 126.2 kB / 0.506 GB, free: 6.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005981/0.3731, allocations: 3.802 MB / 0.5097 GB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009371/0.3741, allocations: 1.292 MB / 0.511 GB, free: 1.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006356/0.3747, allocations: 260.3 kB / 0.5112 GB, free: 1.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3749, allocations: 71.42 kB / 0.5113 GB, free: 1.359 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3749, allocations: 4 kB / 0.5113 GB, free: 1.355 MB / 382.1 MB Notification: Performance of Templates: time 0.03747/0.4124, allocations: 23.55 MB / 0.5343 GB, free: 9.602 MB / 414.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.LoopAndArcweight.makefile (rm -f PNlib_PNlib.Examples.ConTest.LoopAndArcweight.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.LoopAndArcweight.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.LoopAndArcweight.pipe >> ../files/PNlib_PNlib.Examples.ConTest.LoopAndArcweight.sim & ./PNlib_PNlib.Examples.ConTest.LoopAndArcweight -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.LoopAndArcweight.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.LoopAndArcweight_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.LoopAndArcweight.mat","../files/PNlib_PNlib.Examples.ConTest.LoopAndArcweight.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches