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.001502/0.001502, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001686/0.001686, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07845/0.07845, allocations: 16.74 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.91 kB / 427 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07855/0.07982, allocations: 53.48 MB / 480.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.TTtoPD): time 0.002666/0.0825, allocations: 1.85 MB / 482.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003234/0.08575, allocations: 1.96 MB / 484.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.08601, allocations: 8 kB / 484.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.08634, allocations: 111 kB / 484.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003598/0.08671, allocations: 135.1 kB / 484.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.08848, allocations: 0.9044 MB / 485.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00139/0.08988, allocations: 1.42 MB / 486.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.09012, allocations: 135.8 kB / 487 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005533/0.09068, allocations: 0.526 MB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004483/0.09114, allocations: 310.4 kB / 487.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.09127, allocations: 75.94 kB / 487.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00067/0.09195, allocations: 499.4 kB / 488.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.09212, allocations: 131.5 kB / 488.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.09248, allocations: 338.4 kB / 488.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.09361, allocations: 1.051 MB / 489.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.09362, allocations: 3.984 kB / 489.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.09363, allocations: 0 / 489.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.09365, allocations: 0 / 489.9 MB, free: 11.51 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.00153/0.09518, allocations: 1.218 MB / 491.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.09523, allocations: 19.89 kB / 491.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002932/0.09553, allocations: 84.55 kB / 491.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005132/0.09605, allocations: 400.3 kB / 491.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.734e-05/0.09615, allocations: 74.69 kB / 491.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.09626, allocations: 71.92 kB / 491.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.09789, allocations: 1.097 MB / 492.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.09792, allocations: 0 / 492.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-05/0.09801, allocations: 35.98 kB / 492.9 MB, free: 8.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.533e-05/0.09809, allocations: 48.89 kB / 493 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.09931, allocations: 0.718 MB / 493.7 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003168/0.1025, allocations: 2.983 MB / 496.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.1039, allocations: 1.252 MB / 497.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.105, allocations: 1.162 MB / 499.1 MB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.95e-05/0.1051, allocations: 85.09 kB / 499.2 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001116/0.1062, allocations: 0.7612 MB / 499.9 MB, free: 1.066 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.505e-06/0.1063, allocations: 4 kB / 499.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.003145/0.1094, allocations: 2.106 MB / 0.4903 GB, free: 14.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002757/0.1097, allocations: 0.5364 MB / 0.4908 GB, free: 14.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.1101, allocations: 380.2 kB / 0.4911 GB, free: 13.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.219e-05/0.1102, allocations: 61.7 kB / 0.4912 GB, free: 13.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.1103, allocations: 245.2 kB / 0.4914 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.1105, allocations: 186.7 kB / 0.4916 GB, free: 13.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.1108, allocations: 202.6 kB / 0.4918 GB, free: 13.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1109, allocations: 366.8 kB / 0.4922 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.1114, allocations: 298.1 kB / 0.4924 GB, free: 12.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006891/0.1121, allocations: 0.6197 MB / 0.493 GB, free: 11.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.1143, allocations: 1.998 MB / 0.495 GB, free: 9.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.1143, allocations: 8 kB / 0.495 GB, free: 9.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001936/0.1163, allocations: 1.423 MB / 0.4964 GB, free: 7.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.1164, allocations: 313.9 kB / 0.4967 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.1165, allocations: 16 kB / 0.4967 GB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/0.1165, allocations: 19.98 kB / 0.4967 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.1169, allocations: 111.7 kB / 0.4968 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.151e-05/0.1169, allocations: 23.88 kB / 0.4969 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.1173, allocations: 107.3 kB / 0.497 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.881e-05/0.1174, allocations: 52.12 kB / 0.497 GB, free: 7.27 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.0006882/0.1181, allocations: 0.6894 MB / 0.4977 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.1182, allocations: 67.72 kB / 0.4977 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.1205, allocations: 1.589 MB / 0.4993 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1206, allocations: 7.922 kB / 0.4993 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1206, allocations: 11.88 kB / 0.4993 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.418e-05/0.1207, allocations: 132.6 kB / 0.4994 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/0.1208, allocations: 67.97 kB / 0.4995 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00034/0.1212, allocations: 51.97 kB / 0.4996 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.1214, allocations: 83.91 kB / 0.4996 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003008/0.1244, allocations: 2.541 MB / 0.5021 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1722/0.2966, allocations: 2.144 MB / 0.5042 GB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001676/0.2983, allocations: 2.148 MB / 0.5063 GB, free: 34.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.2986, allocations: 230.9 kB / 0.5065 GB, free: 33.96 MB / 382.1 MB Notification: Performance of Backend: time 4.51e-07/0.2986, allocations: 0 / 0.5065 GB, free: 33.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.3008, allocations: 1.461 MB / 0.508 GB, free: 33.06 MB / 382.1 MB Notification: Performance of SimCode: time 0.001566/0.3023, allocations: 1.798 MB / 0.5097 GB, free: 31.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01894/0.3213, allocations: 11.74 MB / 0.5212 GB, free: 28.44 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