Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TDSdiscrete.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.ExtTest.TDSdiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSdiscrete") translateModel(PNlib.Examples.ExtTest.TDSdiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSdiscrete") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009361/0.0009362, allocations: 178.4 kB / 15.43 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 225.7 MB / 241.9 MB, free: 14.68 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008024/0.0008025, allocations: 93.41 kB / 293 MB, free: 4.809 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07221/0.07221, allocations: 17.12 MB / 361.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002999/0.0003, allocations: 8.312 kB / 426.5 MB, free: 94.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08681/0.08712, allocations: 54.54 MB / 481.1 MB, free: 51.51 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ExtTest.TDSdiscrete): time 0.00212/0.0893, allocations: 2.127 MB / 483.2 MB, free: 49.38 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006349/0.09567, allocations: 8.576 MB / 491.8 MB, free: 39.88 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005344/0.09623, allocations: 7.938 kB / 491.8 MB, free: 39.87 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003828/0.09663, allocations: 135 kB / 491.9 MB, free: 39.74 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004863/0.09713, allocations: 151.1 kB / 492.1 MB, free: 39.59 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002175/0.09932, allocations: 1.35 MB / 493.4 MB, free: 38.24 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.1005, allocations: 2.099 MB / 495.5 MB, free: 36.13 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.1008, allocations: 279.8 kB / 495.8 MB, free: 35.85 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005168/0.1013, allocations: 0.7553 MB / 496.5 MB, free: 35.09 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.1017, allocations: 0.548 MB / 497.1 MB, free: 34.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.1019, allocations: 60 kB / 497.2 MB, free: 34.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007118/0.1026, allocations: 0.6865 MB / 497.8 MB, free: 33.79 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.1028, allocations: 223 kB / 498.1 MB, free: 33.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000427/0.1032, allocations: 0.6236 MB / 498.7 MB, free: 32.94 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.1044, allocations: 1.889 MB / 0.4888 GB, free: 31.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1044, allocations: 0 / 0.4888 GB, free: 31.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1044, allocations: 0 / 0.4888 GB, free: 31.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.1045, allocations: 0 / 0.4888 GB, free: 31.05 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.001504/0.106, allocations: 1.916 MB / 0.4907 GB, free: 28.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.106, allocations: 8.031 kB / 0.4907 GB, free: 28.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005358/0.1065, allocations: 191.1 kB / 0.4909 GB, free: 28.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006953/0.1072, allocations: 0.656 MB / 0.4915 GB, free: 28.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.1074, allocations: 153.4 kB / 0.4917 GB, free: 27.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.1075, allocations: 136 kB / 0.4918 GB, free: 27.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.1102, allocations: 2.372 MB / 0.4941 GB, free: 25.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1102, allocations: 4 kB / 0.4941 GB, free: 25.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.1104, allocations: 67.92 kB / 0.4942 GB, free: 25.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.1105, allocations: 101.9 kB / 0.4943 GB, free: 25.08 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002015/0.1125, allocations: 1.592 MB / 0.4959 GB, free: 23.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.1167, allocations: 5.33 MB / 0.5011 GB, free: 17.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002082/0.1188, allocations: 2.73 MB / 0.5037 GB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/0.1206, allocations: 2.567 MB / 0.5062 GB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-05/0.1207, allocations: 89.53 kB / 0.5063 GB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001733/0.1224, allocations: 1.68 MB / 0.508 GB, free: 10.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=150): time 2.435e-06/0.1224, allocations: 0 / 0.508 GB, free: 10.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=150): time 0.005226/0.1277, allocations: 4.702 MB / 0.5126 GB, free: 5.992 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003605/0.1281, allocations: 1.158 MB / 0.5137 GB, free: 4.609 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.1286, allocations: 0.662 MB / 0.5143 GB, free: 3.938 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/0.1288, allocations: 105.7 kB / 0.5144 GB, free: 3.828 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.129, allocations: 412.7 kB / 0.5148 GB, free: 3.418 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.1292, allocations: 379.5 kB / 0.5152 GB, free: 3.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.1292, allocations: 40 kB / 0.5152 GB, free: 3.004 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1294, allocations: 431.2 kB / 0.5156 GB, free: 2.574 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009198/0.1303, allocations: 0.7615 MB / 0.5164 GB, free: 1.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.1315, allocations: 1.438 MB / 0.5178 GB, free: 72 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004818/0.1363, allocations: 4.769 MB / 0.5224 GB, free: 10.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.908e-05/0.1363, allocations: 4 kB / 0.5224 GB, free: 10.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004308/0.1406, allocations: 3.361 MB / 0.5257 GB, free: 7.148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003622/0.141, allocations: 0.6975 MB / 0.5264 GB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.486e-05/0.141, allocations: 23.94 kB / 0.5264 GB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.329e-05/0.1411, allocations: 36 kB / 0.5265 GB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000623/0.1417, allocations: 215.5 kB / 0.5267 GB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.681e-05/0.1418, allocations: 47.84 kB / 0.5267 GB, free: 6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008446/0.1426, allocations: 234 kB / 0.5269 GB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.1428, allocations: 108 kB / 0.527 GB, free: 5.664 MB / 362.7 MB Warning: Assuming fixed start value for the following 47 variables: 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 P2.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P2.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" 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 P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean P2.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P2.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P2.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority Index" 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 P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority 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.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.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 T1.fire:DISCRETE(fixed = true ) "Does the transition fire?" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 249 ($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,$PRE.P2.enableIn.valid,P2.enableIn.valid,$PRE.P2.enableIn.benefitLimit,P2.enableIn.benefitLimit,$PRE.P2.enableIn.benefitMax,P2.enableIn.benefitMax,$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,$whenCondition8,$PRE.P2.reStart,$whenCondition5,$PRE.P1.reStart,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,$whenCondition4,$whenCondition3,P1.tokeninout,$PRE.P2.firingSumIn.firingSum,$PRE.P2.firingSumOut.firingSum,$whenCondition7,$whenCondition6,P2.tokeninout,$PRE.T1.fireTime,$PRE.T1.ani,T1.fireTime,T1.ani,$PRE.P1.tokeninout,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue,$PRE.P2.enableOut.benefitLimit,P2.enableOut.benefitLimit,$PRE.P2.enableOut.valid,P2.enableOut.valid,$PRE.P2.enableOut.benefitMax,P2.enableOut.benefitMax,$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,$whenCondition2,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$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.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,T1.outPlaces[1].disTransition,P2.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,T1.firingCon,P2.reStart,P1.reStart,P2.enableIn.disTransition[1],$PRE.P1.enableOut.TEout[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P2.enableIn.TEin[1],$PRE.P2.enableIn.arcWeightSum,$PRE.T1.putFireTime,$PRE.T1.putDelay,$PRE.T1.state128[1],$PRE.T1.state128[2],$PRE.T1.state128[3],$PRE.T1.state128[4],$PRE.T1.r128,$PRE.T1.fire,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$PRE.P1.t,P1.t,$PRE.P1.activeOut[1],P1.activeOut[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],P1.enableOut.TEout[1],P1.enableOut.arcWeightSum,$PRE.P2.t,P2.t,P2.enabledByInPlaces[1],P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.enableIn.TAein[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],P2.enableIn.TEin[1],P2.enableIn.arcWeightSum,T1.putFireTime,T1.putDelay,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,$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.active,T1.fire,T1.activation.disPlaceIn[1],T1.activation.arcType[1],T1.activation.testValueInt[1],T1.activation.normalArc[1],P1.enableOut.disTransition[1],T1.activation.disPlaceOut[1],P2.enableIn.arcWeight[1],P1.enableOut.arcWeight[1],P2.inTransition[1].emptied,P1.outTransition[1].fed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (249): * Single equations (assignments): 226 * Array equations: 1 * Algorithm blocks: 22 * 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.001546/0.1444, allocations: 1.391 MB / 0.5284 GB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.1446, allocations: 138.9 kB / 0.5285 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/0.1496, allocations: 3.627 MB / 0.5321 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/0.1496, allocations: 12 kB / 0.5321 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.1496, allocations: 0 / 0.5321 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.1497, allocations: 3.984 kB / 0.5321 GB, free: 284 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007345/0.157, allocations: 4.968 MB / 0.5369 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.157, allocations: 4 kB / 0.5369 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.1572, allocations: 43.91 kB / 0.537 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.1572, allocations: 4 kB / 0.537 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001559/0.1574, allocations: 83.94 kB / 0.5371 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.1574, allocations: 4 kB / 0.5371 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1574, allocations: 0 / 0.5371 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005512/0.1629, allocations: 4.326 MB / 0.5413 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.1631, allocations: 171.7 kB / 0.5415 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003465/0.1634, allocations: 163.9 kB / 0.5416 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007447/0.1642, allocations: 119.9 kB / 0.5417 GB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006257/0.1648, allocations: 412.1 kB / 0.5421 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/0.165, allocations: 87.95 kB / 0.5422 GB, free: 5.641 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003998/0.1654, allocations: 382.8 kB / 0.5426 GB, free: 5.262 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1654, allocations: 0 / 0.5426 GB, free: 5.262 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001538/0.167, allocations: 0.6048 MB / 0.5432 GB, free: 4.656 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 137 ($whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition2,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,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.enableOut.benefitMax,P2.enableOut.valid,P2.enableOut.benefitLimit,$whenCondition9,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition4,$whenCondition3,$whenCondition5,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,P1.t,P1.tokeninout,P1.activeOut[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,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,P2.t,P2.tokeninout,P2.enabledByInPlaces[1],P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.enableIn.TAein[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.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.enableIn.benefitMax,P2.enableIn.valid,P2.enableIn.benefitLimit,T1.putFireTime,T1.putDelay,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,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,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue,T1.active,T1.fire) * Number of discrete states: 110 (P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.activeOut[1],P1.activeConOut.anychange,i,P1.activeConOut.vec[i],P1.t,P2.t,P1.tokeninout,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.activation.active,T1.delayPassed,T1.putFireTime,$whenCondition11,T1.putDelay,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.r128,$whenCondition10,T1.fire,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,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,$whenCondition13,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P2.enableIn.TEin_[1],P2.enableIn.valid,P2.enableIn.benefitLimit,P2.enableIn.benefitMax,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,$whenCondition12,P2.enableIn.arcWeightSum,P2.enableIn.TEin[1],P2.enableOut.benefitLimit,P2.enableOut.valid,P2.enableOut.benefitMax,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,$whenCondition2,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,P1.enableIn.benefitLimit,P1.enableIn.valid,P1.enableIn.benefitMax,P1.enableIn.Index,P1.enableIn.endWhile,P1.enableIn.sumEnablingProbTAin,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.nTAin,P1.enableIn.nremTAin,$whenCondition1,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 43 * Array equations: 1 * Algorithm blocks: 17 * 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.0009719/0.1679, allocations: 0.5974 MB / 0.5437 GB, free: 4.055 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1587/0.3267, allocations: 3.991 MB / 0.5476 GB, free: 74.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.3267, allocations: 1.656 kB / 0.5476 GB, free: 74.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004283/0.331, allocations: 5.952 MB / 0.5535 GB, free: 73.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.3321, allocations: 204.9 kB / 0.5537 GB, free: 73.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.3369, allocations: 3.247 MB / 0.5568 GB, free: 72.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007135/0.3376, allocations: 1.136 MB / 0.5579 GB, free: 71.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007806/0.3384, allocations: 264.2 kB / 0.5582 GB, free: 71.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.3386, allocations: 72.97 kB / 0.5583 GB, free: 71.8 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.3386, allocations: 3.438 kB / 0.5583 GB, free: 71.8 MB / 378.7 MB Notification: Performance of Templates: time 0.03129/0.3699, allocations: 22.47 MB / 0.5802 GB, free: 57.1 MB / 378.7 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TDSdiscrete.makefile (rm -f PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe ; mkfifo PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe >> ../files/PNlib_PNlib.Examples.ExtTest.TDSdiscrete.sim & ./PNlib_PNlib.Examples.ExtTest.TDSdiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ExtTest.TDSdiscrete_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ExtTest.TDSdiscrete.mat","../files/PNlib_PNlib.Examples.ExtTest.TDSdiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches