Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.TDtoPD.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.TDtoPD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TDtoPD") translateModel(PNlib.Examples.DisTest.TDtoPD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TDtoPD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.001028/0.001028, allocations: 185.5 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.31/1.31, allocations: 222.9 MB / 241 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.07194/0.07194, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 427 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09713, allocations: 53.47 MB / 480.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.TDtoPD): time 0.003062/0.1002, allocations: 1.858 MB / 482.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003169/0.1034, allocations: 1.913 MB / 484.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.1036, allocations: 4 kB / 484.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.1039, allocations: 119.1 kB / 484.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003146/0.1042, allocations: 111.1 kB / 484.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.1058, allocations: 0.8965 MB / 485.4 MB, free: 140 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.1071, allocations: 1.424 MB / 486.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.1073, allocations: 143.8 kB / 487 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005159/0.1078, allocations: 0.522 MB / 487.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.1083, allocations: 314.4 kB / 487.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.1084, allocations: 72 kB / 487.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006537/0.109, allocations: 0.4916 MB / 488.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.1092, allocations: 131.5 kB / 488.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.1095, allocations: 334.5 kB / 488.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.1106, allocations: 1.04 MB / 489.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.1106, allocations: 0 / 489.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1106, allocations: 4 kB / 489.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.1106, allocations: 0 / 489.8 MB, free: 11.67 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001512/0.1121, allocations: 1.208 MB / 491.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1122, allocations: 15.89 kB / 491.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.1125, allocations: 80.19 kB / 491.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.113, allocations: 410.9 kB / 491.5 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.903e-05/0.1131, allocations: 74.69 kB / 491.6 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.1132, allocations: 64 kB / 491.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/0.1149, allocations: 1.109 MB / 492.8 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.1149, allocations: 3.938 kB / 492.8 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/0.115, allocations: 35.98 kB / 492.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.291e-05/0.1151, allocations: 44.95 kB / 492.9 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.1163, allocations: 0.7181 MB / 493.6 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003272/0.1196, allocations: 2.99 MB / 496.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.121, allocations: 1.272 MB / 497.9 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.1221, allocations: 1.163 MB / 499 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.648e-05/0.1222, allocations: 85.33 kB / 499.1 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.1233, allocations: 0.7477 MB / 499.8 MB, free: 1.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.535e-06/0.1233, allocations: 0 / 499.8 MB, free: 1.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.003093/0.1264, allocations: 2.11 MB / 0.4902 GB, free: 15.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002855/0.1267, allocations: 0.5441 MB / 0.4907 GB, free: 14.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003753/0.1271, allocations: 380 kB / 0.4911 GB, free: 14.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.049e-05/0.1272, allocations: 65.69 kB / 0.4911 GB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1273, allocations: 248.6 kB / 0.4914 GB, free: 13.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1275, allocations: 177.8 kB / 0.4916 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.1278, allocations: 210.5 kB / 0.4918 GB, free: 13.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1279, allocations: 362.8 kB / 0.4921 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004853/0.1284, allocations: 306.1 kB / 0.4924 GB, free: 12.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006971/0.1291, allocations: 0.6448 MB / 0.493 GB, free: 11.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/0.1314, allocations: 2.024 MB / 0.495 GB, free: 9.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.1314, allocations: 7.938 kB / 0.495 GB, free: 9.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002117/0.1335, allocations: 1.452 MB / 0.4964 GB, free: 8.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.1337, allocations: 317 kB / 0.4967 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.1337, allocations: 8.25 kB / 0.4967 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.894e-05/0.1338, allocations: 19.98 kB / 0.4968 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.1341, allocations: 123.7 kB / 0.4969 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.518e-05/0.1342, allocations: 24.41 kB / 0.4969 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.1346, allocations: 107 kB / 0.497 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.432e-05/0.1346, allocations: 51.98 kB / 0.497 GB, free: 7.305 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: 47 * Number of states: 0 () * Number of discrete variables: 118 ($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.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.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 (123): * Single equations (assignments): 113 * 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.0007713/0.1354, allocations: 0.6997 MB / 0.4977 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.1356, allocations: 67.44 kB / 0.4978 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/0.1379, allocations: 1.598 MB / 0.4994 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.138, allocations: 3.984 kB / 0.4994 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.138, allocations: 3.938 kB / 0.4994 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.754e-05/0.1381, allocations: 124.4 kB / 0.4995 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.1382, allocations: 71.97 kB / 0.4996 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.1387, allocations: 55.91 kB / 0.4996 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.139, allocations: 83.91 kB / 0.4997 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003033/0.142, allocations: 2.549 MB / 0.5022 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.2066/0.3487, allocations: 2.144 MB / 0.5043 GB, free: 34.72 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001663/0.3503, allocations: 2.159 MB / 0.5064 GB, free: 34.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.3506, allocations: 227.8 kB / 0.5066 GB, free: 33.96 MB / 382.1 MB Notification: Performance of Backend: time 3.1e-07/0.3506, allocations: 0 / 0.5066 GB, free: 33.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002221/0.3528, allocations: 1.47 MB / 0.508 GB, free: 33.05 MB / 382.1 MB Notification: Performance of SimCode: time 0.001681/0.3545, allocations: 1.793 MB / 0.5098 GB, free: 31.63 MB / 382.1 MB Notification: Performance of Templates: time 0.01847/0.373, allocations: 11.81 MB / 0.5213 GB, free: 28.37 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.TDtoPD.makefile (rm -f PNlib_PNlib.Examples.DisTest.TDtoPD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.TDtoPD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.TDtoPD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.TDtoPD.sim & ./PNlib_PNlib.Examples.DisTest.TDtoPD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.TDtoPD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.TDtoPD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.TDtoPD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.TDtoPD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches