Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.TTtoPD.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.TTtoPD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TTtoPD") translateModel(PNlib.Examples.DisTest.TTtoPD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TTtoPD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 111 kB / 16.42 MB, free: 6.516 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.001026/0.001026, allocations: 186.7 kB / 17.35 MB, free: 5.738 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.27/1.27, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07579/0.07579, allocations: 16.72 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.91 kB / 427 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08765/0.08887, allocations: 53.47 MB / 480.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.TTtoPD): time 0.003308/0.09222, allocations: 1.866 MB / 482.4 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003924/0.09616, allocations: 1.952 MB / 484.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.09669, allocations: 11.94 kB / 484.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004728/0.09718, allocations: 111.1 kB / 484.4 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000529/0.09776, allocations: 103.1 kB / 484.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001983/0.09976, allocations: 0.9146 MB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.1015, allocations: 1.416 MB / 486.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1018, allocations: 139.8 kB / 487 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006679/0.1024, allocations: 0.5221 MB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004899/0.1029, allocations: 310.4 kB / 487.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.1031, allocations: 76 kB / 487.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007233/0.1038, allocations: 0.4993 MB / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.104, allocations: 123.5 kB / 488.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003684/0.1044, allocations: 334.5 kB / 488.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.1056, allocations: 1.04 MB / 489.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1056, allocations: 0 / 489.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1056, allocations: 3.938 kB / 489.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.1056, allocations: 0 / 489.9 MB, free: 11.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001695/0.1073, allocations: 1.215 MB / 491.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1074, allocations: 11.89 kB / 491.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003173/0.1077, allocations: 88.17 kB / 491.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005757/0.1083, allocations: 404 kB / 491.6 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.891e-05/0.1084, allocations: 74.7 kB / 491.7 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.1085, allocations: 67.98 kB / 491.7 MB, free: 9.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.1101, allocations: 1.097 MB / 492.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.1102, allocations: 4 kB / 492.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.169e-05/0.1103, allocations: 35.92 kB / 492.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.806e-05/0.1104, allocations: 48.95 kB / 492.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.1116, allocations: 0.7064 MB / 493.6 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003326/0.1149, allocations: 2.982 MB / 496.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.1163, allocations: 1.255 MB / 497.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.1174, allocations: 1.158 MB / 499 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.693e-05/0.1175, allocations: 85.09 kB / 499.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.1187, allocations: 0.7533 MB / 499.9 MB, free: 1.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 6.252e-06/0.1187, allocations: 0 / 499.9 MB, free: 1.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.003127/0.1218, allocations: 2.114 MB / 0.4902 GB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002935/0.1221, allocations: 0.5363 MB / 0.4907 GB, free: 14.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.1225, allocations: 384 kB / 0.4911 GB, free: 13.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.699e-05/0.1226, allocations: 61.7 kB / 0.4912 GB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1228, allocations: 236.7 kB / 0.4914 GB, free: 13.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.123, allocations: 182 kB / 0.4915 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/0.1232, allocations: 194.5 kB / 0.4917 GB, free: 13.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1234, allocations: 370.8 kB / 0.4921 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005028/0.1239, allocations: 298.1 kB / 0.4924 GB, free: 12.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007046/0.1246, allocations: 0.6158 MB / 0.493 GB, free: 11.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002286/0.1269, allocations: 2.006 MB / 0.4949 GB, free: 9.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/0.1269, allocations: 4 kB / 0.4949 GB, free: 9.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001924/0.1288, allocations: 1.427 MB / 0.4963 GB, free: 8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/0.129, allocations: 317 kB / 0.4966 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.129, allocations: 16.08 kB / 0.4966 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.1291, allocations: 16 kB / 0.4967 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.1294, allocations: 103.8 kB / 0.4968 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.649e-05/0.1295, allocations: 31.8 kB / 0.4968 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003978/0.1299, allocations: 95.11 kB / 0.4969 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-05/0.1299, allocations: 48 kB / 0.4969 GB, free: 7.324 MB / 382.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 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 P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority 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.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.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 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: 45 * Number of states: 0 () * Number of discrete variables: 115 ($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.reStart,$whenCondition7,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition5,$whenCondition6,P1.firingSumOut.firingSum,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,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],$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,P1.enableOut.arcWeightSum,$PRE.P1.enableOut.arcWeightSum,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,$whenCondition1,T1.firingCon,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,P1.reStart,P1.enableIn.disTransition[1],$PRE.T1.firingTime,$PRE.P1.enableIn.arcWeightSum,$PRE.P1.enableIn.TEin[1],T1.enabledByInPlaces,P1.enableIn.arcWeight[1],T1.activation.disPlaceOut[1],T1.activation.active,T1.activation.maxTokensInt[1],T1.activation.arcWeightIntOut[1],T1.activation.tIntOut[1],T1.firingTime,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.enableIn.TAein[1],P1.firingSumIn.firingSum,P1.firingSumIn.arcWeight[1],P1.firingSumIn.fire[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.vec[1],P1.t,$PRE.P1.t,$whenCondition2,$whenCondition3,$whenCondition4,P1.inTransition[1].emptied) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 108 * Array equations: 0 * 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.0007139/0.1307, allocations: 0.7007 MB / 0.4976 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.1308, allocations: 67.44 kB / 0.4977 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002274/0.1331, allocations: 1.589 MB / 0.4992 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.1331, allocations: 7.984 kB / 0.4992 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.1331, allocations: 12.06 kB / 0.4992 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.353e-05/0.1332, allocations: 124.4 kB / 0.4994 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.1334, allocations: 67.97 kB / 0.4994 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/0.1338, allocations: 47.97 kB / 0.4995 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.1339, allocations: 83.91 kB / 0.4996 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002946/0.1369, allocations: 2.545 MB / 0.502 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1988/0.3357, allocations: 2.138 MB / 0.5041 GB, free: 35.22 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00166/0.3374, allocations: 2.152 MB / 0.5062 GB, free: 34.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002456/0.3377, allocations: 231 kB / 0.5065 GB, free: 34.23 MB / 382.1 MB Notification: Performance of Backend: time 3.1e-07/0.3377, allocations: 0.5312 kB / 0.5065 GB, free: 34.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.3398, allocations: 1.46 MB / 0.5079 GB, free: 33.32 MB / 382.1 MB Notification: Performance of SimCode: time 0.0015/0.3413, allocations: 1.778 MB / 0.5096 GB, free: 31.91 MB / 382.1 MB Notification: Performance of Templates: time 0.01822/0.3596, allocations: 11.74 MB / 0.5211 GB, free: 28.69 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.TTtoPD.makefile (rm -f PNlib_PNlib.Examples.DisTest.TTtoPD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.TTtoPD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.TTtoPD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.TTtoPD.sim & ./PNlib_PNlib.Examples.DisTest.TTtoPD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.TTtoPD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.TTtoPD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.TTtoPD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.TTtoPD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches