Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.HybTest.PCtoTD.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.HybTest.PCtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.PCtoTD") translateModel(PNlib.Examples.HybTest.PCtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.PCtoTD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001861/0.001861, allocations: 189.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.351/1.351, allocations: 222.9 MB / 241.1 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.1083/0.1083, allocations: 16.74 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 60.03 kB / 427 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09432/0.09553, allocations: 53.48 MB / 480.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.HybTest.PCtoTD): time 0.002991/0.09855, allocations: 1.984 MB / 482.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.1012, allocations: 1.548 MB / 484 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.1015, allocations: 11.94 kB / 484 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.1018, allocations: 123 kB / 484.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003662/0.1022, allocations: 119 kB / 484.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.1034, allocations: 0.6485 MB / 484.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.1047, allocations: 1.342 MB / 486.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.1049, allocations: 152.6 kB / 486.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004702/0.1054, allocations: 0.5064 MB / 486.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/0.1058, allocations: 358.2 kB / 487.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.106, allocations: 84 kB / 487.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005993/0.1066, allocations: 455.5 kB / 487.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.1067, allocations: 163.4 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003538/0.1071, allocations: 378.3 kB / 488.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.1082, allocations: 1.122 MB / 489.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1082, allocations: 0 / 489.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1082, allocations: 0 / 489.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1083, allocations: 4 kB / 489.4 MB, free: 11.98 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.001618/0.1099, allocations: 1.31 MB / 490.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1099, allocations: 11.89 kB / 490.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006444/0.1106, allocations: 140 kB / 490.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.1112, allocations: 434.5 kB / 491.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.1113, allocations: 146.4 kB / 491.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.1115, allocations: 83.97 kB / 491.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001896/0.1134, allocations: 1.265 MB / 492.8 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.1134, allocations: 7.938 kB / 492.8 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.044e-05/0.1135, allocations: 35.98 kB / 492.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.731e-05/0.1136, allocations: 61.25 kB / 492.9 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.1152, allocations: 0.8872 MB / 493.8 MB, free: 7.387 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003614/0.1188, allocations: 2.992 MB / 496.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.1203, allocations: 1.185 MB / 498 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.1213, allocations: 0.9682 MB / 498.9 MB, free: 2.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001975/0.1233, allocations: 2.9 MB / 0.4901 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.1244, allocations: 0.7547 MB / 0.4908 GB, free: 13.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.865e-06/0.1244, allocations: 0 / 0.4908 GB, free: 13.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=71): time 0.003472/0.1279, allocations: 2.174 MB / 0.4929 GB, free: 11.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003471/0.1283, allocations: 0.5947 MB / 0.4935 GB, free: 10.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.1288, allocations: 421.2 kB / 0.4939 GB, free: 10.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.027e-05/0.1288, allocations: 61.69 kB / 0.494 GB, free: 10.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.1291, allocations: 284 kB / 0.4942 GB, free: 10 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.1292, allocations: 189.7 kB / 0.4944 GB, free: 9.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002784/0.1295, allocations: 226.5 kB / 0.4946 GB, free: 9.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1297, allocations: 370.8 kB / 0.495 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006691/0.1304, allocations: 430 kB / 0.4954 GB, free: 8.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009873/0.1314, allocations: 0.8046 MB / 0.4962 GB, free: 7.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/0.1342, allocations: 2.459 MB / 0.4986 GB, free: 5.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.1342, allocations: 11.88 kB / 0.4986 GB, free: 5.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002837/0.137, allocations: 1.8 MB / 0.5004 GB, free: 3.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002522/0.1373, allocations: 362.7 kB / 0.5007 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001208/0.1385, allocations: 0.7847 MB / 0.5015 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.559e-05/0.1386, allocations: 27.98 kB / 0.5015 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003934/0.139, allocations: 131.7 kB / 0.5016 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.033e-05/0.139, allocations: 27.86 kB / 0.5017 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.1396, allocations: 126.9 kB / 0.5018 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.046e-05/0.1397, allocations: 56 kB / 0.5018 GB, free: 1.543 MB / 382.1 MB Warning: Assuming fixed start value for the following 21 variables: 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 ) type: Integer P1.enableOut.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real 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.disMarksIn.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P1.disMarksOut.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean 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 P1.enableIn.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real 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: 55 * Number of states: 0 () * Number of discrete variables: 115 ($PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,P1.enableOut.randNum,$PRE.P1.enableOut.randNum,P1.enableOut.state128[4],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[1],P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],$PRE.P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.enableOut.disTAout[1],$PRE.P1.enableOut.disTAout[1],T1.inPlaces[1].tokenInOut,$PRE.P1.disMarksInOut,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksOut.anytrue,P1.disMarksInOut,$whenCondition5,P1.disMarksIn.numtrue,P1.disMarksIn.anytrue,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,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],$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,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,$whenCondition1,P1.feeding.numtrue,P1.feeding.anytrue,T1.firingCon,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.outTransition[1].minTokensint,P1.outTransition[1].tint,P1.reStart,P1.emptying.vec[1],P1.emptying.numtrue,P1.emptying.anytrue,$PRE.T1.firingTime,$PRE.P1.enableOut.TEout[1],T1.activation.arcWeightIntIn[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.minTokensInt[1],T1.activation.tIntIn[1],T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,P1.disMarksOut.numtrue,P1.disMarksOut.anytrue,P1.disMarksOut.vec[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.delayPassedOut.vec[1],P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.fireOut[1],$whenCondition2,$whenCondition3,$whenCondition4,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 11 * Record equations: 1 * 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.0009665/0.1407, allocations: 0.7677 MB / 0.5026 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.1409, allocations: 67.44 kB / 0.5026 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2131/0.354, allocations: 1.6 MB / 0.5042 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.354, allocations: 6 kB / 0.5042 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002638/0.3567, allocations: 1.529 MB / 0.5057 GB, free: 34.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.3568, allocations: 129.9 kB / 0.5058 GB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/0.357, allocations: 67.78 kB / 0.5059 GB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/0.3575, allocations: 62.86 kB / 0.506 GB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005027/0.358, allocations: 313 kB / 0.5063 GB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003256/0.3612, allocations: 2.81 MB / 0.509 GB, free: 33.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003807/0.3651, allocations: 3.004 MB / 0.5119 GB, free: 31.5 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001506/0.3666, allocations: 1.671 MB / 0.5136 GB, free: 30.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003343/0.3669, allocations: 251.2 kB / 0.5138 GB, free: 30.3 MB / 382.1 MB Notification: Performance of Backend: time 4.71e-07/0.3669, allocations: 0 / 0.5138 GB, free: 30.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002861/0.3698, allocations: 1.738 MB / 0.5155 GB, free: 29.21 MB / 382.1 MB Notification: Performance of SimCode: time 0.00191/0.3717, allocations: 1.977 MB / 0.5174 GB, free: 27.63 MB / 382.1 MB Notification: Performance of Templates: time 0.02161/0.3933, allocations: 13.11 MB / 0.5302 GB, free: 22.26 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.HybTest.PCtoTD.makefile (rm -f PNlib_PNlib.Examples.HybTest.PCtoTD.pipe ; mkfifo PNlib_PNlib.Examples.HybTest.PCtoTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.HybTest.PCtoTD.pipe >> ../files/PNlib_PNlib.Examples.HybTest.PCtoTD.sim & ./PNlib_PNlib.Examples.HybTest.PCtoTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.HybTest.PCtoTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.HybTest.PCtoTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.HybTest.PCtoTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.HybTest.PCtoTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches