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.001287/0.001287, allocations: 110.1 kB / 16.42 MB, free: 6.516 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.001323/0.001323, allocations: 190.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.309/1.309, allocations: 222.9 MB / 241 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.1193/0.1193, allocations: 16.73 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.88 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.09053, allocations: 53.47 MB / 480.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SinglePC): time 0.002672/0.09323, allocations: 1.522 MB / 482 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.09568, allocations: 1.349 MB / 483.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.09595, allocations: 7.938 kB / 483.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000257/0.09624, allocations: 75.38 kB / 483.4 MB, free: 2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.0965, allocations: 63.47 kB / 483.5 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.09787, allocations: 0.5718 MB / 484.1 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.099, allocations: 1.018 MB / 485.1 MB, free: 356 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.09911, allocations: 41.08 kB / 485.1 MB, free: 308 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004609/0.09958, allocations: 347.1 kB / 485.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.09988, allocations: 139.1 kB / 485.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.83e-05/0.09994, allocations: 20 kB / 485.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004407/0.1004, allocations: 295.5 kB / 485.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.1005, allocations: 47.78 kB / 485.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.1006, allocations: 123.2 kB / 486.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005748/0.1012, allocations: 438.8 kB / 486.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1012, allocations: 0 / 486.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1012, allocations: 0 / 486.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.974e-06/0.1013, allocations: 0 / 486.5 MB, free: 14.92 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.001035/0.1023, allocations: 0.886 MB / 487.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1023, allocations: 11.89 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1025, allocations: 44.55 kB / 487.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.1028, allocations: 259.7 kB / 487.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.1028, allocations: 16.38 kB / 487.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.1029, allocations: 20.38 kB / 487.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.1034, allocations: 337.4 kB / 488 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1034, allocations: 0 / 488 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.1034, allocations: 15.98 kB / 488.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1034, allocations: 11.98 kB / 488.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003762/0.1038, allocations: 171.7 kB / 488.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.1052, allocations: 1.58 MB / 489.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004483/0.1057, allocations: 300.9 kB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.1059, allocations: 184.3 kB / 490.3 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001865/0.1078, allocations: 2.646 MB / 492.9 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004001/0.1082, allocations: 314 kB / 493.2 MB, free: 7.191 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 1.854e-06/0.1083, allocations: 0 / 493.2 MB, free: 7.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.0009999/0.1093, allocations: 0.6895 MB / 493.9 MB, free: 6.449 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002231/0.1095, allocations: 492.9 kB / 494.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1097, allocations: 244.8 kB / 494.7 MB, free: 5.613 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/0.1098, allocations: 49.7 kB / 494.7 MB, free: 5.559 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1099, allocations: 152.7 kB / 494.9 MB, free: 5.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.11, allocations: 122.5 kB / 495 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.1102, allocations: 110.1 kB / 495.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1103, allocations: 350.7 kB / 495.4 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.1106, allocations: 165.3 kB / 495.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/0.1111, allocations: 406.5 kB / 496 MB, free: 4.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.1122, allocations: 1.183 MB / 497.2 MB, free: 2.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.1122, allocations: 3.938 kB / 497.2 MB, free: 2.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00121/0.1134, allocations: 0.9709 MB / 498.1 MB, free: 1.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001758/0.1136, allocations: 305 kB / 498.4 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.1136, allocations: 8.047 kB / 498.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.1137, allocations: 12.17 kB / 498.5 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.1139, allocations: 79.83 kB / 498.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/0.1139, allocations: 15.94 kB / 498.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.1142, allocations: 59.52 kB / 498.6 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.834e-05/0.1142, allocations: 32 kB / 498.6 MB, free: 1.145 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.0004953/0.1147, allocations: 0.5333 MB / 499.2 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.355e-05/0.1148, allocations: 47.59 kB / 499.2 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004499/0.1153, allocations: 263 kB / 499.5 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1153, allocations: 0 / 499.5 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.1153, allocations: 4 kB / 499.5 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.818e-05/0.1154, allocations: 116.6 kB / 499.6 MB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.796e-05/0.1155, allocations: 55.92 kB / 499.7 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.1156, allocations: 23.94 kB / 499.7 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.345e-05/0.1157, allocations: 19.97 kB / 499.7 MB, free: 0 / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001309/0.117, allocations: 1.599 MB / 0.4895 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001357/0.1184, allocations: 1.389 MB / 0.4909 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004779/0.1189, allocations: 0.496 MB / 0.4914 GB, free: 12.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.119, allocations: 164.5 kB / 0.4915 GB, free: 12.13 MB / 382.1 MB Notification: Performance of Backend: time 5.51e-07/0.119, allocations: 0 / 0.4915 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.121, allocations: 1.141 MB / 0.4927 GB, free: 10.88 MB / 382.1 MB Notification: Performance of SimCode: time 0.001248/0.1222, allocations: 1.372 MB / 0.494 GB, free: 9.363 MB / 382.1 MB Notification: Performance of Templates: time 0.01036/0.1326, allocations: 5.628 MB / 0.4995 GB, free: 3.746 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