Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.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 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.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.DisTest.DisLoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") translateModel(PNlib.Examples.DisTest.DisLoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008969/0.0008968, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0009094/0.0009095, allocations: 168.7 kB / 15.95 MB, free: 204 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.173/1.173, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1606/0.1606, allocations: 16.73 MB / 307.8 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002797, allocations: 8 kB / 372.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2279, allocations: 54.48 MB / 427.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.001308/0.2292, allocations: 1.518 MB / 428.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.2314, allocations: 1.85 MB / 430.7 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.2316, allocations: 7.906 kB / 430.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.2318, allocations: 89.69 kB / 430.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002499/0.232, allocations: 98.83 kB / 430.8 MB, free: 37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009093/0.233, allocations: 0.6395 MB / 431.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007526/0.2337, allocations: 1.137 MB / 432.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.234, allocations: 212.5 kB / 432.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.2342, allocations: 447.5 kB / 433.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002894/0.2345, allocations: 404 kB / 433.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.532e-05/0.2346, allocations: 51.53 kB / 433.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005685/0.2352, allocations: 0.6452 MB / 434.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.2353, allocations: 168.5 kB / 434.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.2355, allocations: 243 kB / 434.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007644/0.2363, allocations: 1.257 MB / 436 MB, free: 35.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2363, allocations: 0 / 436 MB, free: 35.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2363, allocations: 0 / 436 MB, free: 35.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2363, allocations: 0 / 436 MB, free: 35.68 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: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.001083/0.2374, allocations: 1.335 MB / 437.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.2375, allocations: 9.906 kB / 437.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003111/0.2378, allocations: 129.1 kB / 437.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005326/0.2383, allocations: 0.5411 MB / 438 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.531e-05/0.2384, allocations: 137.6 kB / 438.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.2386, allocations: 121 kB / 438.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.2407, allocations: 2.069 MB / 440.3 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2408, allocations: 7.094 kB / 440.4 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.2409, allocations: 61.84 kB / 440.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.241, allocations: 92.83 kB / 440.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.2427, allocations: 1.454 MB / 442 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003441/0.2461, allocations: 4.248 MB / 446.2 MB, free: 29.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.2479, allocations: 2.44 MB / 448.6 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.2495, allocations: 2.345 MB / 451 MB, free: 26.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-05/0.2496, allocations: 83.27 kB / 451.1 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/0.2511, allocations: 1.338 MB / 452.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.424e-06/0.2512, allocations: 0 / 452.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.004487/0.2556, allocations: 4.06 MB / 456.5 MB, free: 24.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002223/0.2559, allocations: 0.6566 MB / 457.1 MB, free: 24.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004083/0.2563, allocations: 0.5108 MB / 457.6 MB, free: 23.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.966e-05/0.2564, allocations: 74.06 kB / 457.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.2565, allocations: 348.8 kB / 458.1 MB, free: 23.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.2567, allocations: 233.5 kB / 458.3 MB, free: 23.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.2567, allocations: 27 kB / 458.3 MB, free: 23.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.78e-05/0.2568, allocations: 388 kB / 458.7 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007001/0.2575, allocations: 0.5477 MB / 459.2 MB, free: 22.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/0.2584, allocations: 1.024 MB / 460.3 MB, free: 22.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/0.2593, allocations: 0.9031 MB / 461.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.2593, allocations: 4.062 kB / 461.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.002509/0.2618, allocations: 2.219 MB / 463.4 MB, free: 20.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.2619, allocations: 342.5 kB / 463.7 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.262, allocations: 14.8 kB / 463.7 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.948e-05/0.262, allocations: 22.34 kB / 463.8 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.2624, allocations: 165.1 kB / 463.9 MB, free: 20.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.001e-05/0.2625, allocations: 28.39 kB / 463.9 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/0.263, allocations: 179 kB / 464.1 MB, free: 19.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.915e-05/0.2631, allocations: 69.64 kB / 464.2 MB, free: 19.92 MB / 350.1 MB Warning: Assuming fixed start value for the following 25 variables: P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" 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.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" 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 ) "priority Index" type: Integer T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 149 ($PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$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.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$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,$whenCondition7,$PRE.P1.reStart,P1.outTransition[1].tokenInOut,$PRE.P1.tokeninout,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,$whenCondition6,$whenCondition5,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,T1.firingCon,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.reStart,P1.enableIn.disTransition[1],$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,$PRE.P1.t,P1.t,$PRE.P1.activeOut[1],P1.activeOut[1],P1.enabledByInPlaces[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],$PRE.P1.enableOut.TEout[1],P1.enableOut.TEout[1],$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.enableIn.TAein[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin[1],$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,T1.active,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active,T1.activation.disPlaceIn[1],T1.activation.arcType[1],T1.activation.testValueInt[1],T1.activation.normalArc[1],P1.enableOut.disTransition[1],T1.activation.disPlaceOut[1],P1.enableIn.arcWeight[1],P1.enableOut.arcWeight[1],P1.outTransition[1].fed,P1.inTransition[1].emptied) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 154 * Array equations: 1 * Algorithm blocks: 10 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009375/0.264, allocations: 0.8937 MB / 465.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.2642, allocations: 96.86 kB / 465.2 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004148/0.2683, allocations: 3.405 MB / 468.6 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.2684, allocations: 7.781 kB / 468.6 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2684, allocations: 7.891 kB / 468.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.2684, allocations: 6.188 kB / 468.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005682/0.2741, allocations: 4.824 MB / 473.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2741, allocations: 0 / 473.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.2742, allocations: 32.97 kB / 473.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.2743, allocations: 5.156 kB / 473.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.2744, allocations: 67.09 kB / 473.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.2744, allocations: 6.219 kB / 473.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2744, allocations: 0.5625 kB / 473.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004318/0.2787, allocations: 3.524 MB / 477.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.2788, allocations: 140.9 kB / 477.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.279, allocations: 94.41 kB / 477.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005353/0.2796, allocations: 108 kB / 477.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005819/0.2802, allocations: 391.2 kB / 477.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.2803, allocations: 64 kB / 477.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.2806, allocations: 296.3 kB / 478.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2806, allocations: 0 / 478.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001354/0.282, allocations: 488.9 kB / 478.6 MB, free: 13.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 81 (T1.active,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,P1.t,P1.outTransition[1].tokenInOut,P1.tokeninout,P1.activeOut[1],P1.enabledByInPlaces[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,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.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.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit,P1.enableIn.TAein[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.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.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active) * Number of discrete states: 56 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,T1.delayPassed,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,i,P1.activeConOut.vec[i],P1.enableOut.TEout_[1],P1.enableOut.valid,P1.enableOut.benefitLimit,P1.enableOut.benefitMax,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,$whenCondition1,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableIn.TEin_[1],P1.enableIn.valid,P1.enableIn.benefitLimit,P1.enableIn.benefitMax,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,$whenCondition2,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 36 * Array equations: 1 * Algorithm blocks: 8 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009181/0.2829, allocations: 485.1 kB / 479.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003073/0.286, allocations: 2.685 MB / 481.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.286, allocations: 0 / 481.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002608/0.2886, allocations: 4.529 MB / 486.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005757/0.2892, allocations: 125.7 kB / 486.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003017/0.2922, allocations: 2.439 MB / 488.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.2927, allocations: 1.029 MB / 489.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004525/0.2931, allocations: 220.8 kB / 490.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.435e-05/0.2932, allocations: 55.42 kB / 490.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2932, allocations: 0 / 490.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of Templates: time 0.02139/0.3146, allocations: 17.19 MB / 0.4954 GB, free: 2.988 MB / 366.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile (rm -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe >> ../files/PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.sim & ./PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.DisLoopAndArcweight.mat","../files/PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches