Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SinglePD.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.SinglePD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SinglePD") translateModel(PNlib.Examples.DisTest.SinglePD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SinglePD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 108.5 kB / 16.41 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.001343/0.001343, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07651/0.07651, allocations: 16.73 MB / 307.9 MB, free: 14.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 67.84 kB / 427 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.1004, allocations: 53.47 MB / 480.5 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SinglePD): time 0.002641/0.1031, allocations: 1.409 MB / 481.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.106, allocations: 1.71 MB / 483.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002451/0.1063, allocations: 4 kB / 483.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.1066, allocations: 71.44 kB / 483.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.1068, allocations: 55.52 kB / 483.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.1086, allocations: 0.8303 MB / 484.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001559/0.1102, allocations: 1.139 MB / 485.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.1103, allocations: 41.05 kB / 485.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007218/0.111, allocations: 387.1 kB / 486.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.1113, allocations: 123.1 kB / 486.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.899e-05/0.1114, allocations: 16 kB / 486.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.1117, allocations: 95.91 kB / 486.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.1118, allocations: 39.78 kB / 486.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.112, allocations: 123.3 kB / 486.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004873/0.1125, allocations: 287 kB / 486.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1125, allocations: 0 / 486.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1126, allocations: 0 / 486.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1126, allocations: 0 / 486.8 MB, free: 14.62 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00122/0.1138, allocations: 0.8224 MB / 487.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1139, allocations: 11.89 kB / 487.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.1141, allocations: 40.56 kB / 487.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.1144, allocations: 251.8 kB / 487.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.1145, allocations: 12.38 kB / 487.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.956e-05/0.1146, allocations: 24.38 kB / 487.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005849/0.1152, allocations: 320.7 kB / 488.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1152, allocations: 3.938 kB / 488.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.1152, allocations: 12 kB / 488.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1153, allocations: 8 kB / 488.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.1156, allocations: 127.8 kB / 488.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.117, allocations: 1.42 MB / 489.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004932/0.1175, allocations: 311.8 kB / 490.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.1179, allocations: 230.6 kB / 490.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1179, allocations: 8 kB / 490.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005809/0.1185, allocations: 320.2 kB / 490.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.005e-06/0.1185, allocations: 0 / 490.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.001208/0.1197, allocations: 0.6488 MB / 491.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002582/0.12, allocations: 415.8 kB / 491.7 MB, free: 9.188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.1203, allocations: 236 kB / 492 MB, free: 8.945 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-05/0.1204, allocations: 53.73 kB / 492 MB, free: 8.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1205, allocations: 140.8 kB / 492.2 MB, free: 8.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1207, allocations: 118.6 kB / 492.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.1208, allocations: 114.1 kB / 492.4 MB, free: 8.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.121, allocations: 346.8 kB / 492.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003388/0.1214, allocations: 161.4 kB / 492.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.1218, allocations: 375.1 kB / 493.2 MB, free: 7.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.1229, allocations: 1.126 MB / 494.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.1229, allocations: 0 / 494.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001152/0.1241, allocations: 0.9332 MB / 495.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002091/0.1243, allocations: 275.3 kB / 495.6 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.1243, allocations: 8 kB / 495.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.1244, allocations: 12.77 kB / 495.6 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.1247, allocations: 67.78 kB / 495.7 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.2e-05/0.1247, allocations: 15.94 kB / 495.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003589/0.1251, allocations: 63.38 kB / 495.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/0.1251, allocations: 32 kB / 495.8 MB, free: 4.707 MB / 366.1 MB Warning: Assuming fixed start value for the following 22 variables: 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.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real 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.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 84 ($PRE.P1.reStart,$whenCondition5,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition3,$whenCondition4,P1.pret,P1.t,$PRE.P1.t,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$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,P1.enableIn.arcWeightSum,$PRE.P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,$whenCondition2,$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,P1.reStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 9 * 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.0006716/0.1258, allocations: 0.5158 MB / 496.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1259, allocations: 43.62 kB / 496.3 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.795e-05/0.126, allocations: 25.86 kB / 496.3 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.126, allocations: 0 / 496.3 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1261, allocations: 3.938 kB / 496.4 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.57e-05/0.1262, allocations: 108.7 kB / 496.5 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.1263, allocations: 51.98 kB / 496.5 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.1265, allocations: 16 kB / 496.5 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.1266, allocations: 27.84 kB / 496.6 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001694/0.1283, allocations: 1.368 MB / 497.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001451/0.1298, allocations: 1.048 MB / 499 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009047/0.1307, allocations: 0.7539 MB / 499.7 MB, free: 496 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.1309, allocations: 161.9 kB / 499.9 MB, free: 336 kB / 366.1 MB Notification: Performance of Backend: time 8.21e-07/0.1309, allocations: 3.938 kB / 499.9 MB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002216/0.1331, allocations: 1.036 MB / 0.4892 GB, free: 15.19 MB / 382.1 MB Notification: Performance of SimCode: time 0.001615/0.1348, allocations: 1.32 MB / 0.4905 GB, free: 13.73 MB / 382.1 MB Notification: Performance of Templates: time 0.01362/0.1484, allocations: 5.107 MB / 0.4955 GB, free: 8.652 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.SinglePD.makefile (rm -f PNlib_PNlib.Examples.DisTest.SinglePD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SinglePD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SinglePD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SinglePD.sim & ./PNlib_PNlib.Examples.DisTest.SinglePD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SinglePD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SinglePD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SinglePD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SinglePD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches