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.001309/0.001309, allocations: 110.2 kB / 16.41 MB, free: 5.965 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.001321/0.001321, allocations: 186.8 kB / 17.35 MB, free: 5.578 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.308/1.308, 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.07763/0.07763, allocations: 16.74 MB / 307.9 MB, free: 14.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.89 kB / 427 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.08219, allocations: 53.47 MB / 480.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.HybTest.TDtoPCfunction): time 0.002921/0.08514, allocations: 1.976 MB / 482.5 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.08793, allocations: 1.544 MB / 484 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.08824, allocations: 11.94 kB / 484 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.08857, allocations: 123 kB / 484.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004348/0.08903, allocations: 143 kB / 484.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.09043, allocations: 0.6415 MB / 484.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.09185, allocations: 1.338 MB / 486.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.0921, allocations: 147.8 kB / 486.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005715/0.09268, allocations: 0.5025 MB / 486.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004706/0.09316, allocations: 322.3 kB / 487.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.09332, allocations: 72 kB / 487.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006196/0.09395, allocations: 439.5 kB / 487.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.09414, allocations: 159.4 kB / 487.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003557/0.09451, allocations: 342.4 kB / 488.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.09566, allocations: 1.036 MB / 489.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.09567, allocations: 3.938 kB / 489.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09568, allocations: 0 / 489.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.0957, allocations: 0 / 489.2 MB, free: 12.15 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.001656/0.09736, allocations: 1.273 MB / 490.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.09741, allocations: 11.89 kB / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006295/0.09804, allocations: 140.4 kB / 490.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005078/0.09856, allocations: 402.9 kB / 491.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.0987, allocations: 142.4 kB / 491.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.09884, allocations: 71.98 kB / 491.3 MB, free: 9.949 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.1006, allocations: 1.106 MB / 492.4 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.1006, allocations: 3.938 kB / 492.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.633e-05/0.1007, allocations: 32 kB / 492.4 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.728e-05/0.1008, allocations: 48.95 kB / 492.5 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.1022, allocations: 0.7575 MB / 493.2 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003357/0.1056, allocations: 2.789 MB / 496 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.107, allocations: 1.121 MB / 497.1 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.108, allocations: 0.9718 MB / 498.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001819/0.1098, allocations: 2.88 MB / 0.4892 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.1109, allocations: 0.7057 MB / 0.4899 GB, free: 14.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.355e-06/0.1109, allocations: 0 / 0.4899 GB, free: 14.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.003081/0.114, allocations: 2.014 MB / 0.4919 GB, free: 12.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002811/0.1143, allocations: 0.5752 MB / 0.4925 GB, free: 11.87 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.1146, allocations: 368.4 kB / 0.4928 GB, free: 11.51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.834e-05/0.1147, allocations: 61.69 kB / 0.4929 GB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1149, allocations: 265 kB / 0.4931 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.1151, allocations: 194.6 kB / 0.4933 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002715/0.1153, allocations: 202.6 kB / 0.4935 GB, free: 10.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1155, allocations: 362.8 kB / 0.4938 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.116, allocations: 338 kB / 0.4942 GB, free: 10.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007317/0.1168, allocations: 0.6479 MB / 0.4948 GB, free: 9.293 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002481/0.1193, allocations: 2.132 MB / 0.4969 GB, free: 6.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.1193, allocations: 0 / 0.4969 GB, free: 6.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002183/0.1215, allocations: 1.519 MB / 0.4984 GB, free: 5.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.1217, allocations: 355.5 kB / 0.4987 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009066/0.1226, allocations: 0.5754 MB / 0.4993 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.385e-05/0.1227, allocations: 16 kB / 0.4993 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.1231, allocations: 119.7 kB / 0.4994 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.593e-05/0.1231, allocations: 15.94 kB / 0.4994 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.1235, allocations: 115.3 kB / 0.4995 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.362e-05/0.1236, allocations: 48 kB / 0.4996 GB, free: 3.934 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.0007486/0.1244, allocations: 0.7203 MB / 0.5003 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.1246, allocations: 71.7 kB / 0.5003 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.1269, allocations: 1.498 MB / 0.5018 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1269, allocations: 0 / 0.5018 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002081/0.129, allocations: 1.423 MB / 0.5032 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1756/0.3046, allocations: 122.8 kB / 0.5033 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003477/0.305, allocations: 63.14 kB / 0.5034 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004977/0.3055, allocations: 53.95 kB / 0.5034 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.3058, allocations: 92.34 kB / 0.5035 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003161/0.309, allocations: 2.682 MB / 0.5061 GB, free: 34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003572/0.3125, allocations: 2.829 MB / 0.5089 GB, free: 32.9 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001268/0.3138, allocations: 1.631 MB / 0.5105 GB, free: 31.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00022/0.3141, allocations: 220.9 kB / 0.5107 GB, free: 31.7 MB / 382.1 MB Notification: Performance of Backend: time 8.72e-07/0.3141, allocations: 0 / 0.5107 GB, free: 31.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.3164, allocations: 1.563 MB / 0.5122 GB, free: 30.69 MB / 382.1 MB Notification: Performance of SimCode: time 0.001665/0.3181, allocations: 1.912 MB / 0.5141 GB, free: 29.13 MB / 382.1 MB Notification: Performance of Templates: time 0.01958/0.3377, allocations: 11.61 MB / 0.5254 GB, free: 25.53 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