Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SinglePC.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.ConTest.SinglePC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SinglePC") translateModel(PNlib.Examples.ConTest.SinglePC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SinglePC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 115.2 kB / 16.42 MB, free: 6.457 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.001678/0.001678, allocations: 183.9 kB / 17.35 MB, free: 5.734 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.411/1.411, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1007/0.1007, allocations: 16.74 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 59.91 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07857/0.0798, allocations: 53.47 MB / 480.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SinglePC): time 0.002393/0.08222, allocations: 1.52 MB / 482 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.08435, allocations: 1.353 MB / 483.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.08448, allocations: 8 kB / 483.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.0847, allocations: 83.38 kB / 483.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.0849, allocations: 71.39 kB / 483.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.08597, allocations: 0.5757 MB / 484.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008449/0.08682, allocations: 1.003 MB / 485.1 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.141e-05/0.08692, allocations: 45.05 kB / 485.1 MB, free: 300 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.08722, allocations: 355.1 kB / 485.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.08744, allocations: 143.1 kB / 485.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.08749, allocations: 16 kB / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000373/0.08787, allocations: 283.6 kB / 485.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.864e-05/0.08797, allocations: 59.69 kB / 486 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.08809, allocations: 115.3 kB / 486.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.08859, allocations: 446.4 kB / 486.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.0886, allocations: 0 / 486.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08861, allocations: 4 kB / 486.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.08862, allocations: 0 / 486.5 MB, free: 14.9 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.000959/0.08959, allocations: 0.8932 MB / 487.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.08964, allocations: 15.89 kB / 487.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.08979, allocations: 44.67 kB / 487.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.09004, allocations: 251.9 kB / 487.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.09008, allocations: 16.38 kB / 487.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.291e-05/0.09013, allocations: 24.38 kB / 487.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.09063, allocations: 337.4 kB / 488.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.09066, allocations: 4 kB / 488.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.09069, allocations: 12 kB / 488.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.0907, allocations: 4 kB / 488.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003702/0.09108, allocations: 171.7 kB / 488.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.09239, allocations: 1.577 MB / 489.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/0.09287, allocations: 309 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.09313, allocations: 195.3 kB / 490.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001791/0.09493, allocations: 2.643 MB / 493 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.09533, allocations: 317.9 kB / 493.3 MB, free: 7.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 3.346e-06/0.09535, allocations: 3.984 kB / 493.3 MB, free: 7.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.0009934/0.09635, allocations: 0.6863 MB / 494 MB, free: 6.414 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002027/0.09656, allocations: 488.9 kB / 494.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.09679, allocations: 248.9 kB / 494.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.632e-05/0.09685, allocations: 53.7 kB / 494.8 MB, free: 5.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.68e-05/0.09694, allocations: 140.9 kB / 494.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.09705, allocations: 123.4 kB / 495 MB, free: 5.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.0972, allocations: 122 kB / 495.1 MB, free: 5.133 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.09734, allocations: 354.7 kB / 495.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.09762, allocations: 161.4 kB / 495.6 MB, free: 4.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004305/0.09806, allocations: 410.4 kB / 496 MB, free: 4.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.0992, allocations: 1.168 MB / 497.2 MB, free: 2.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.09922, allocations: 4 kB / 497.2 MB, free: 2.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00119/0.1004, allocations: 0.9748 MB / 498.2 MB, free: 1.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.1006, allocations: 305 kB / 498.5 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.1006, allocations: 8 kB / 498.5 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.1006, allocations: 16 kB / 498.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.1009, allocations: 71.83 kB / 498.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.1009, allocations: 15.94 kB / 498.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.1011, allocations: 67.95 kB / 498.7 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.1012, allocations: 36 kB / 498.7 MB, free: 1.105 MB / 366.1 MB Warning: Assuming fixed start value for the following 18 variables: 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 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 71 ($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,$whenCondition3,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksOut.anytrue,P1.disMarksInOut,$whenCondition2,P1.disMarksIn.numtrue,P1.disMarksIn.anytrue,P1.disMarksOut.numtrue,P1.disMarksOut.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.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,P1.reStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 10 * 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.0004346/0.1016, allocations: 0.5297 MB / 499.2 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.659e-05/0.1017, allocations: 39.81 kB / 499.3 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004686/0.1022, allocations: 267 kB / 499.5 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1022, allocations: 4 kB / 499.5 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.1022, allocations: 4 kB / 499.5 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.1023, allocations: 112.8 kB / 499.6 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.1024, allocations: 51.92 kB / 499.7 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.1025, allocations: 20.05 kB / 499.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.1026, allocations: 23.86 kB / 499.7 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001305/0.1039, allocations: 1.6 MB / 0.4896 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001349/0.1053, allocations: 1.392 MB / 0.4909 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004794/0.1058, allocations: 0.5078 MB / 0.4914 GB, free: 12.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00013/0.1059, allocations: 160.5 kB / 0.4916 GB, free: 12.09 MB / 382.1 MB Notification: Performance of Backend: time 2.5e-07/0.1059, allocations: 0 / 0.4916 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.1077, allocations: 1.151 MB / 0.4927 GB, free: 10.83 MB / 382.1 MB Notification: Performance of SimCode: time 0.001116/0.1088, allocations: 1.378 MB / 0.4941 GB, free: 9.305 MB / 382.1 MB Notification: Performance of Templates: time 0.009352/0.1182, allocations: 5.628 MB / 0.4996 GB, free: 3.688 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SinglePC.makefile (rm -f PNlib_PNlib.Examples.ConTest.SinglePC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SinglePC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SinglePC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SinglePC.sim & ./PNlib_PNlib.Examples.ConTest.SinglePC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SinglePC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SinglePC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SinglePC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SinglePC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches