Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.HybTest.TDtoPC.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.TDtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TDtoPC") translateModel(PNlib.Examples.HybTest.TDtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.HybTest.TDtoPC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 119 kB / 16.42 MB, free: 6.473 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.001209/0.001209, allocations: 183.9 kB / 17.35 MB, free: 5.75 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.378/1.378, 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.07856/0.07856, allocations: 16.73 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001195, allocations: 71.89 kB / 427 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.1003, allocations: 53.47 MB / 480.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.HybTest.TDtoPC): time 0.003135/0.1035, allocations: 1.98 MB / 482.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00314/0.1066, allocations: 1.552 MB / 484 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003278/0.107, allocations: 11.94 kB / 484 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003937/0.1074, allocations: 123 kB / 484.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004425/0.1079, allocations: 115.1 kB / 484.2 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001456/0.1093, allocations: 0.6541 MB / 484.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001513/0.1109, allocations: 1.323 MB / 486.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.1111, allocations: 143.8 kB / 486.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006842/0.1118, allocations: 0.5024 MB / 486.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005428/0.1124, allocations: 326.4 kB / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.1126, allocations: 75.94 kB / 487.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006834/0.1133, allocations: 439.5 kB / 487.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.1135, allocations: 151.5 kB / 487.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004098/0.1139, allocations: 350.3 kB / 488.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.1152, allocations: 1.021 MB / 489.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1152, allocations: 3.984 kB / 489.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1152, allocations: 4 kB / 489.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.9e-05/0.1152, allocations: 0 / 489.2 MB, free: 12.21 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.001957/0.1172, allocations: 1.255 MB / 490.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1172, allocations: 11.89 kB / 490.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006529/0.1179, allocations: 144 kB / 490.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005825/0.1185, allocations: 410.8 kB / 491 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.1187, allocations: 138.4 kB / 491.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.1188, allocations: 72 kB / 491.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.1206, allocations: 1.098 MB / 492.3 MB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.1207, allocations: 11.94 kB / 492.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.857e-05/0.1208, allocations: 35.98 kB / 492.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.1209, allocations: 52.95 kB / 492.4 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.1224, allocations: 0.7497 MB / 493.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003471/0.1259, allocations: 2.749 MB / 495.9 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.1272, allocations: 1.028 MB / 496.9 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009683/0.1281, allocations: 0.8979 MB / 497.8 MB, free: 3.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001947/0.1301, allocations: 2.896 MB / 0.489 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009713/0.1311, allocations: 0.6805 MB / 0.4897 GB, free: 14.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.926e-06/0.1311, allocations: 4 kB / 0.4897 GB, free: 14.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=71): time 0.002955/0.1341, allocations: 1.938 MB / 0.4916 GB, free: 12.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002946/0.1344, allocations: 0.5827 MB / 0.4921 GB, free: 12.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.1348, allocations: 376 kB / 0.4925 GB, free: 11.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.824e-05/0.1348, allocations: 65.97 kB / 0.4926 GB, free: 11.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.135, allocations: 256.3 kB / 0.4928 GB, free: 11.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.1352, allocations: 185.8 kB / 0.493 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.1355, allocations: 206.5 kB / 0.4932 GB, free: 11.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1356, allocations: 370.7 kB / 0.4935 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.1362, allocations: 322.1 kB / 0.4938 GB, free: 10.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007495/0.1369, allocations: 0.6613 MB / 0.4945 GB, free: 9.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/0.1393, allocations: 2.103 MB / 0.4965 GB, free: 7.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.1394, allocations: 4 kB / 0.4965 GB, free: 7.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002051/0.1414, allocations: 1.508 MB / 0.498 GB, free: 5.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.1416, allocations: 350.6 kB / 0.4983 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008557/0.1425, allocations: 0.5772 MB / 0.4989 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.1425, allocations: 16 kB / 0.4989 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.1429, allocations: 127.6 kB / 0.499 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/0.1429, allocations: 19.94 kB / 0.4991 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004079/0.1433, allocations: 111 kB / 0.4992 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.103e-05/0.1434, allocations: 55.98 kB / 0.4992 GB, free: 4.289 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: 48 * 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 (119): * Single equations (assignments): 107 * 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.0007427/0.1442, allocations: 0.7069 MB / 0.4999 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.1444, allocations: 67.44 kB / 0.5 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/0.1466, allocations: 1.44 MB / 0.5014 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.1466, allocations: 7.984 kB / 0.5014 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.001995/0.1486, allocations: 1.357 MB / 0.5027 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.1487, allocations: 120.4 kB / 0.5028 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.1489, allocations: 71.97 kB / 0.5029 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003567/0.1493, allocations: 55.84 kB / 0.503 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.1495, allocations: 95.84 kB / 0.503 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1996/0.3491, allocations: 2.613 MB / 0.5056 GB, free: 34.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003668/0.3528, allocations: 2.741 MB / 0.5083 GB, free: 33.11 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001313/0.3542, allocations: 1.569 MB / 0.5098 GB, free: 32.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002602/0.3544, allocations: 233.8 kB / 0.51 GB, free: 31.96 MB / 382.1 MB Notification: Performance of Backend: time 1.002e-06/0.3545, allocations: 0 / 0.51 GB, free: 31.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.3573, allocations: 1.553 MB / 0.5115 GB, free: 30.96 MB / 382.1 MB Notification: Performance of SimCode: time 0.00218/0.3595, allocations: 1.897 MB / 0.5134 GB, free: 29.42 MB / 382.1 MB Notification: Performance of Templates: time 0.02056/0.38, allocations: 11.52 MB / 0.5246 GB, free: 25.93 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.HybTest.TDtoPC.makefile (rm -f PNlib_PNlib.Examples.HybTest.TDtoPC.pipe ; mkfifo PNlib_PNlib.Examples.HybTest.TDtoPC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.HybTest.TDtoPC.pipe >> ../files/PNlib_PNlib.Examples.HybTest.TDtoPC.sim & ./PNlib_PNlib.Examples.HybTest.TDtoPC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.HybTest.TDtoPC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.HybTest.TDtoPC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.HybTest.TDtoPC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.HybTest.TDtoPC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches