Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.HybTest.TDtoPCfunction.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.TDtoPCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TDtoPCfunction") translateModel(PNlib.Examples.HybTest.TDtoPCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TDtoPCfunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 109.8 kB / 16.42 MB, free: 6.453 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: 185.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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07628/0.07628, allocations: 16.73 MB / 307.9 MB, free: 14.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.91 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09082/0.0921, allocations: 53.47 MB / 480.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.HybTest.TDtoPCfunction): time 0.003107/0.09524, allocations: 1.979 MB / 482.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.09826, allocations: 1.56 MB / 484 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003679/0.09865, allocations: 8 kB / 484 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003566/0.09903, allocations: 123 kB / 484.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004503/0.09949, allocations: 115 kB / 484.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.1009, allocations: 0.6496 MB / 484.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.1025, allocations: 1.323 MB / 486.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.1027, allocations: 151.8 kB / 486.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006733/0.1034, allocations: 0.4985 MB / 486.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005192/0.104, allocations: 330.4 kB / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.1041, allocations: 72 kB / 487.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006859/0.1048, allocations: 439.5 kB / 487.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.105, allocations: 159.4 kB / 487.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.1054, allocations: 342.4 kB / 488.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.1066, allocations: 1.032 MB / 489.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1066, allocations: 3.938 kB / 489.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1066, allocations: 0 / 489.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.011e-05/0.1066, allocations: 0 / 489.2 MB, free: 12.2 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.001829/0.1085, allocations: 1.255 MB / 490.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1085, allocations: 15.89 kB / 490.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006698/0.1092, allocations: 136 kB / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/0.1099, allocations: 406.8 kB / 491 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.1101, allocations: 138.4 kB / 491.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.1102, allocations: 75.98 kB / 491.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.112, allocations: 1.106 MB / 492.3 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.112, allocations: 0 / 492.3 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-05/0.1121, allocations: 39.97 kB / 492.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.118e-05/0.1122, allocations: 48.97 kB / 492.4 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.1137, allocations: 0.7652 MB / 493.2 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003968/0.1177, allocations: 2.757 MB / 495.9 MB, free: 5.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.1191, allocations: 1.125 MB / 497.1 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.1202, allocations: 0.968 MB / 498 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002288/0.1225, allocations: 2.884 MB / 0.4892 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/0.1236, allocations: 0.7017 MB / 0.4899 GB, free: 14.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 3.537e-06/0.1236, allocations: 0 / 0.4899 GB, free: 14.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.003133/0.1268, allocations: 2.017 MB / 0.4918 GB, free: 12.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003103/0.1271, allocations: 0.5905 MB / 0.4924 GB, free: 11.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.1275, allocations: 364.1 kB / 0.4928 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.742e-05/0.1275, allocations: 53.7 kB / 0.4928 GB, free: 11.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.1277, allocations: 260.4 kB / 0.4931 GB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.1279, allocations: 181.8 kB / 0.4932 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.1282, allocations: 202.5 kB / 0.4934 GB, free: 10.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1284, allocations: 370.8 kB / 0.4938 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005372/0.1289, allocations: 322.1 kB / 0.4941 GB, free: 10.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007861/0.1297, allocations: 0.6557 MB / 0.4947 GB, free: 9.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003019/0.1327, allocations: 2.121 MB / 0.4968 GB, free: 6.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/0.1328, allocations: 8 kB / 0.4968 GB, free: 6.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.00224/0.135, allocations: 1.512 MB / 0.4983 GB, free: 5.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.1352, allocations: 346.7 kB / 0.4986 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008509/0.1361, allocations: 0.5871 MB / 0.4992 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/0.1361, allocations: 12 kB / 0.4992 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.1365, allocations: 115.7 kB / 0.4993 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.617e-05/0.1365, allocations: 23.92 kB / 0.4993 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004372/0.137, allocations: 107 kB / 0.4994 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.973e-05/0.1371, allocations: 52 kB / 0.4995 GB, free: 4.035 MB / 382.1 MB Warning: Assuming fixed start value for the following 21 variables: 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 P1.enableIn.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.enableOut.Index:DISCRETE(fixed = true protected = true ) 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 P1.enableOut.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: 46 * Number of states: 0 () * Number of discrete variables: 108 ($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.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,P1.enableIn.disTAin[1],$PRE.P1.enableIn.disTAin[1],$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksOut.anytrue,P1.disMarksInOut,$whenCondition5,P1.disMarksOut.numtrue,P1.disMarksOut.anytrue,$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,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,$whenCondition1,P1.emptying.numtrue,P1.emptying.anytrue,T1.firingCon,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,P1.inTransition[1].maxTokensint,P1.inTransition[1].tint,P1.reStart,P1.feeding.vec[1],P1.feeding.numtrue,P1.feeding.anytrue,$PRE.T1.firingTime,$PRE.P1.enableIn.TEin[1],T1.enabledByInPlaces,T1.activation.arcWeightIntOut[1],T1.activation.disPlaceOut[1],T1.activation.maxTokensInt[1],T1.activation.tIntOut[1],T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,P1.disMarksIn.numtrue,P1.disMarksIn.anytrue,P1.disMarksIn.vec[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.vec[1],P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.enableIn.TAein[1],P1.fireIn[1],$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 105 * 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.0008303/0.1379, allocations: 0.7224 MB / 0.5002 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.1381, allocations: 67.44 kB / 0.5002 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.1403, allocations: 1.491 MB / 0.5017 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.1404, allocations: 3.984 kB / 0.5017 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002076/0.1424, allocations: 1.423 MB / 0.5031 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1426, allocations: 120.4 kB / 0.5032 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.2449/0.3875, allocations: 69.36 kB / 0.5033 GB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004523/0.388, allocations: 51.03 kB / 0.5033 GB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.3882, allocations: 92.92 kB / 0.5034 GB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002966/0.3912, allocations: 2.679 MB / 0.506 GB, free: 33.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003444/0.3947, allocations: 2.83 MB / 0.5088 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001257/0.3959, allocations: 1.636 MB / 0.5104 GB, free: 31.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.3961, allocations: 221 kB / 0.5106 GB, free: 31.67 MB / 382.1 MB Notification: Performance of Backend: time 5.01e-07/0.3961, allocations: 0 / 0.5106 GB, free: 31.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.3985, allocations: 1.566 MB / 0.5121 GB, free: 30.66 MB / 382.1 MB Notification: Performance of SimCode: time 0.001684/0.4002, allocations: 1.88 MB / 0.514 GB, free: 29.11 MB / 382.1 MB Notification: Performance of Templates: time 0.01969/0.4199, allocations: 11.6 MB / 0.5253 GB, free: 25.52 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.HybTest.TDtoPCfunction.makefile (rm -f PNlib_PNlib.Examples.HybTest.TDtoPCfunction.pipe ; mkfifo PNlib_PNlib.Examples.HybTest.TDtoPCfunction.pipe ; head -c 1048576 < PNlib_PNlib.Examples.HybTest.TDtoPCfunction.pipe >> ../files/PNlib_PNlib.Examples.HybTest.TDtoPCfunction.sim & ./PNlib_PNlib.Examples.HybTest.TDtoPCfunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.HybTest.TDtoPCfunction.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.HybTest.TDtoPCfunction_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.HybTest.TDtoPCfunction.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.HybTest.TDtoPCfunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches