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.0007913/0.0007913, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.005825/0.005825, allocations: 171.4 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.164/1.164, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1634/0.1634, allocations: 16.73 MB / 308.2 MB, free: 15.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.0002521, allocations: 8 kB / 373.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2123, allocations: 54.47 MB / 427.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.001292/0.2136, allocations: 1.612 MB / 429.5 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.2161, allocations: 2.218 MB / 431.7 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2163, allocations: 2.219 kB / 431.7 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.2165, allocations: 88.53 kB / 431.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.2167, allocations: 111.8 kB / 431.9 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008641/0.2176, allocations: 0.7401 MB / 432.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006701/0.2183, allocations: 1.189 MB / 433.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.2185, allocations: 243.3 kB / 434.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.2188, allocations: 450.3 kB / 434.5 MB, free: 37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002591/0.219, allocations: 418.8 kB / 434.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.2191, allocations: 50.31 kB / 435 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005487/0.2197, allocations: 0.707 MB / 435.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.2198, allocations: 171.3 kB / 435.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.2201, allocations: 0.5022 MB / 436.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008682/0.221, allocations: 1.622 MB / 438 MB, free: 35.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.221, allocations: 0 / 438 MB, free: 35.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.221, allocations: 0 / 438 MB, free: 35.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.221, allocations: 2.625 kB / 438 MB, free: 35.77 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.001041/0.222, allocations: 1.332 MB / 439.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.5e-05/0.2221, allocations: 10.75 kB / 439.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.2224, allocations: 132.9 kB / 439.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004892/0.2229, allocations: 0.5507 MB / 440 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.983e-05/0.223, allocations: 135.6 kB / 440.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.2231, allocations: 117.5 kB / 440.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002064/0.2252, allocations: 2.032 MB / 442.3 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.2252, allocations: 3.938 kB / 442.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.2254, allocations: 59.95 kB / 442.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.2255, allocations: 89.73 kB / 442.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.2271, allocations: 1.43 MB / 443.9 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003316/0.2304, allocations: 4.228 MB / 448.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.2321, allocations: 2.413 MB / 450.5 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001494/0.2336, allocations: 2.307 MB / 452.8 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.263e-05/0.2336, allocations: 87.31 kB / 452.9 MB, free: 26.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001307/0.235, allocations: 1.315 MB / 454.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 1.693e-06/0.235, allocations: 0 / 454.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.004095/0.2391, allocations: 3.967 MB / 458.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002198/0.2393, allocations: 0.6558 MB / 458.8 MB, free: 24.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.2397, allocations: 0.514 MB / 459.3 MB, free: 23.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.678e-05/0.2398, allocations: 76.31 kB / 459.4 MB, free: 23.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.2399, allocations: 353.9 kB / 459.8 MB, free: 23.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.2401, allocations: 234.2 kB / 460 MB, free: 23.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.2402, allocations: 175.1 kB / 460.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.391e-05/0.2403, allocations: 325.8 kB / 460.5 MB, free: 23.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000733/0.241, allocations: 0.5544 MB / 461 MB, free: 22.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.2419, allocations: 1.029 MB / 462.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.2446, allocations: 3.197 MB / 465.3 MB, free: 19.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.2447, allocations: 3.25 kB / 465.3 MB, free: 19.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.002483/0.2471, allocations: 2.221 MB / 467.5 MB, free: 18.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.2473, allocations: 354.4 kB / 467.8 MB, free: 18.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.2473, allocations: 15.16 kB / 467.8 MB, free: 18.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.2473, allocations: 20.84 kB / 467.9 MB, free: 18.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.2478, allocations: 160.8 kB / 468 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.546e-05/0.2478, allocations: 27.92 kB / 468 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/0.2483, allocations: 175.8 kB / 468.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/0.2484, allocations: 74.25 kB / 468.3 MB, free: 18.22 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.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumIn.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,P1.enableIn.randNum,$PRE.P1.enableIn.randNum,P1.enableIn.state128[4],$PRE.P1.enableIn.state128[4],P1.enableIn.state128[3],$PRE.P1.enableIn.state128[3],P1.enableIn.state128[2],$PRE.P1.enableIn.state128[2],P1.enableIn.state128[1],$PRE.P1.enableIn.state128[1],P1.enableIn.cumEnablingProb[1],$PRE.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,P1.enableIn.remTAin[1],$PRE.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,P1.enableOut.randNum,$PRE.P1.enableOut.randNum,P1.enableOut.state128[4],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[1],P1.enableOut.cumEnablingProb[1],$PRE.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,P1.enableOut.remTAout[1],$PRE.P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.reStart,$whenCondition7,$PRE.P1.tokeninout,P1.outTransition[1].tokenInOut,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition5,$whenCondition6,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],$PRE.T1.firingTime,$PRE.P1.enableIn.arcWeightSum,$PRE.P1.enableIn.TEin[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P1.enableIn.arcWeight[1],T1.activation.disPlaceOut[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.active,T1.activation.maxTokensInt[1],T1.activation.minTokensInt[1],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntOut[1],T1.activation.tIntIn[1],T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.enableIn.TAein[1],P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.firingSumOut.firingSum,P1.firingSumOut.arcWeight[1],P1.firingSumOut.fire[1],P1.firingSumIn.firingSum,P1.firingSumIn.arcWeight[1],P1.firingSumIn.fire[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.vec[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.delayPassedOut.vec[1],P1.activeConOut.anychange,P1.activeConOut.vec[1],P1.enabledByInPlaces[1],P1.activeOut[1],$PRE.P1.activeOut[1],P1.t,$PRE.P1.t,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007617/0.2492, allocations: 0.893 MB / 469.2 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.2493, allocations: 100.5 kB / 469.3 MB, free: 17.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00383/0.2532, allocations: 3.347 MB / 472.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.2532, allocations: 6.719 kB / 472.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2532, allocations: 4.609 kB / 472.6 MB, free: 16.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.2532, allocations: 3.375 kB / 472.6 MB, free: 16.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005293/0.2585, allocations: 4.751 MB / 477.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2585, allocations: 4.75 kB / 477.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.2586, allocations: 40.23 kB / 477.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2587, allocations: 6.188 kB / 477.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.2588, allocations: 58.09 kB / 477.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2588, allocations: 1.562 kB / 477.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2588, allocations: 4.906 kB / 477.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003941/0.2627, allocations: 3.471 MB / 481 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.322e-05/0.2628, allocations: 149.1 kB / 481.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/0.263, allocations: 89.22 kB / 481.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.2636, allocations: 103.6 kB / 481.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004928/0.2641, allocations: 377.6 kB / 481.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.2642, allocations: 62.28 kB / 481.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000256/0.2645, allocations: 305.8 kB / 482 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2645, allocations: 0 / 482 MB, free: 12.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001109/0.2656, allocations: 483.3 kB / 482.5 MB, free: 12 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007342/0.2663, allocations: 475 kB / 483 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002356/0.2687, allocations: 2.672 MB / 485.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2687, allocations: 0 / 485.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/0.2711, allocations: 4.488 MB / 490.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.2717, allocations: 136.1 kB / 490.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.2742, allocations: 2.494 MB / 492.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.2746, allocations: 1.022 MB / 493.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003548/0.2749, allocations: 213.7 kB / 494 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.194e-05/0.275, allocations: 55.42 kB / 494 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.275, allocations: 0 / 494 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of Templates: time 0.02235/0.2974, allocations: 17.49 MB / 0.4995 GB, free: 15.25 MB / 382.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