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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001456/0.001457, allocations: 176.2 kB / 7.643 MB, free: 1.414 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.5/1.5, allocations: 205.3 MB / 213.4 MB, free: 13.69 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.0007721/0.000772, allocations: 81.56 kB / 261.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06892/0.06892, allocations: 16.73 MB / 326.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.788e-05, allocations: 4 kB / 384 MB, free: 70.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 51.69 MB / 435.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3628/0.4632, allocations: 79.41 MB / 0.503 GB, free: 10.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.4635, allocations: 69 kB / 0.5031 GB, free: 10.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05113/0.5146, allocations: 22.46 MB / 0.525 GB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.5147, allocations: 0.6562 kB / 0.525 GB, free: 14.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.797e-05/0.5147, allocations: 24 kB / 0.525 GB, free: 14.38 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: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.002844/0.5176, allocations: 2.061 MB / 0.527 GB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.5176, allocations: 12.03 kB / 0.5271 GB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001933/0.5196, allocations: 401.4 kB / 0.5274 GB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.521, allocations: 0.8214 MB / 0.5282 GB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.5213, allocations: 340.1 kB / 0.5286 GB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.5216, allocations: 139.1 kB / 0.5287 GB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003064/0.5247, allocations: 2.047 MB / 0.5307 GB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00471/0.5294, allocations: 2.75 MB / 0.5334 GB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.5295, allocations: 7.938 kB / 0.5334 GB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002055/0.5297, allocations: 35.31 kB / 0.5334 GB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001877/0.5299, allocations: 115.1 kB / 0.5335 GB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008019/0.5379, allocations: 5.433 MB / 0.5388 GB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/0.5405, allocations: 2.686 MB / 0.5415 GB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002408/0.5429, allocations: 2.554 MB / 0.544 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001925/0.5431, allocations: 113.7 kB / 0.5441 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002151/0.5453, allocations: 1.594 MB / 0.5456 GB, free: 13.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=145): time 2.254e-06/0.5453, allocations: 4 kB / 0.5456 GB, free: 13.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=145): time 0.004796/0.5501, allocations: 2.52 MB / 0.5481 GB, free: 10.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005471/0.5507, allocations: 0.9979 MB / 0.5491 GB, free: 9.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007166/0.5514, allocations: 0.5351 MB / 0.5496 GB, free: 9.156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.5516, allocations: 85.67 kB / 0.5497 GB, free: 9.066 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004074/0.552, allocations: 0.5291 MB / 0.5502 GB, free: 8.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003406/0.5523, allocations: 359.1 kB / 0.5505 GB, free: 8.195 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.334e-05/0.5524, allocations: 16 kB / 0.5505 GB, free: 8.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.5526, allocations: 415.3 kB / 0.5509 GB, free: 7.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.5537, allocations: 0.8046 MB / 0.5517 GB, free: 6.961 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.5552, allocations: 1.508 MB / 0.5532 GB, free: 5.129 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.5565, allocations: 0.8822 MB / 0.5541 GB, free: 4.246 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.5565, allocations: 4 kB / 0.5541 GB, free: 4.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003642/0.5602, allocations: 2.507 MB / 0.5565 GB, free: 1.727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003993/0.5606, allocations: 0.6949 MB / 0.5572 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-05/0.5606, allocations: 31.98 kB / 0.5572 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.5618, allocations: 324.8 kB / 0.5575 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.5625, allocations: 251.4 kB / 0.5578 GB, free: 312 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006765/0.5632, allocations: 0.7356 MB / 0.5585 GB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.5643, allocations: 178.7 kB / 0.5587 GB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002002/0.5645, allocations: 124 kB / 0.5588 GB, free: 15.25 MB / 378.7 MB Warning: Assuming fixed start value for the following 36 variables: 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 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 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.instantaneousSpeed:VARIABLE() "instantaneous speed" type: Real 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: 99 * Number of states: 0 () * Number of discrete variables: 234 ($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],$whenCondition6,P2.disMarksInOut,$PRE.P2.disMarksOut.anytrue,$PRE.P2.disMarksIn.anytrue,P2.disMarksOut.anytrue,P2.disMarksOut.numtrue,$whenCondition5,P1.disMarksInOut,$PRE.P1.disMarksOut.anytrue,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksInOut,P1.outTransition[1].tokenInOut,$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,$whenCondition1,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.inTransition[1].tint,P2.inTransition[1].maxTokensint,T1.outPlaces[2].enabledByInPlaces,T1.outPlaces[2].disTransition,P2.inTransition[1].disPlace,P1.inTransition[1].tint,P1.inTransition[1].maxTokensint,T1.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].disTransition,P1.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,P2.enableIn.enablingPrio[1],P2.reStart,T1.firingCon,P1.enableOut.enablingPrio[1],P1.enableIn.enablingPrio[1],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],$whenCondition2,$whenCondition3,$whenCondition4,$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.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.disPlaceOut[2],T1.activation.maxTokensInt[2],T1.activation.tIntOut[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (244): * Single equations (assignments): 222 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001572/0.5661, allocations: 1.168 MB / 0.5599 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/0.5665, allocations: 147 kB / 0.56 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004481/0.571, allocations: 2.604 MB / 0.5626 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/0.571, allocations: 15.94 kB / 0.5626 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.5711, allocations: 0 / 0.5626 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.5711, allocations: 7.984 kB / 0.5626 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00708/0.5782, allocations: 4.406 MB / 0.5669 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.996e-05/0.5782, allocations: 7.984 kB / 0.5669 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.5785, allocations: 51.91 kB / 0.567 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005625/0.5791, allocations: 220.7 kB / 0.5672 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001995/0.5793, allocations: 83.94 kB / 0.5673 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005902/0.5799, allocations: 0.7162 MB / 0.568 GB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.5799, allocations: 8.016 kB / 0.568 GB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00708/0.587, allocations: 4.486 MB / 0.5724 GB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.5872, allocations: 155.9 kB / 0.5725 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000413/0.5876, allocations: 151.9 kB / 0.5726 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009312/0.5886, allocations: 155.9 kB / 0.5728 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005706/0.5891, allocations: 355.7 kB / 0.5731 GB, free: 332 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/0.5894, allocations: 111.9 kB / 0.5732 GB, free: 220 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003388/0.5897, allocations: 302.9 kB / 0.5735 GB, free: 15.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5897, allocations: 0 / 0.5735 GB, free: 15.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001833/0.5916, allocations: 0.538 MB / 0.5741 GB, free: 15.38 MB / 394.7 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 ($whenCondition1,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],$whenCondition6,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition4,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,P1.outTransition[1].tokenInOut,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) * Number of discrete states: 106 (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.fireIn[1],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[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],$whenCondition4,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],$whenCondition3,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],$whenCondition2,P1.enableIn.TEin[1],P2.disMarkChange,P1.disMarkChange,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,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 37 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009632/0.5925, allocations: 0.5157 MB / 0.5746 GB, free: 14.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004789/0.5973, allocations: 4.34 MB / 0.5788 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5974, allocations: 448 / 0.5788 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004875/0.6023, allocations: 5.551 MB / 0.5842 GB, free: 4.504 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.6029, allocations: 94.06 kB / 0.5843 GB, free: 4.414 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.608, allocations: 2.688 MB / 0.5869 GB, free: 1.695 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009203/0.609, allocations: 1.291 MB / 0.5882 GB, free: 380 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006223/0.6096, allocations: 247.9 kB / 0.5884 GB, free: 128 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.6098, allocations: 71.42 kB / 0.5885 GB, free: 60 kB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6098, allocations: 0 / 0.5885 GB, free: 60 kB / 394.7 MB Notification: Performance of Templates: time 0.03617/0.6459, allocations: 22.41 MB / 0.6104 GB, free: 9.34 MB / 426.7 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