Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002391/0.002391, allocations: 211.1 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 256 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.0847/0.0847, allocations: 16.94 MB / 329.4 MB, free: 2.254 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") [Timeout 660] "Notification: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 71.91 kB / 460.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.09736, allocations: 57.62 MB / 0.5057 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002173/0.09953, allocations: 1.011 MB / 0.5067 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006331/0.1002, allocations: 259.8 kB / 0.5069 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.651e-05/0.1002, allocations: 0 / 0.5069 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.1004, allocations: 47.64 kB / 0.507 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.1006, allocations: 47.67 kB / 0.507 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001491/0.1008, allocations: 71.89 kB / 0.5071 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002976/0.1011, allocations: 247.3 kB / 0.5073 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.149e-05/0.1011, allocations: 12.59 kB / 0.5073 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.1013, allocations: 115.7 kB / 0.5074 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.903e-05/0.1013, allocations: 47.58 kB / 0.5075 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.1013, allocations: 7.938 kB / 0.5075 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.48e-05/0.1014, allocations: 12 kB / 0.5075 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.439e-05/0.1015, allocations: 23.86 kB / 0.5075 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.409e-05/0.1015, allocations: 35.73 kB / 0.5075 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.1017, allocations: 83.53 kB / 0.5076 GB, free: 5.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1017, allocations: 0 / 0.5076 GB, free: 5.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1017, allocations: 0 / 0.5076 GB, free: 5.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1017, allocations: 0 / 0.5076 GB, free: 5.973 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005602/0.1022, allocations: 371.5 kB / 0.508 GB, free: 5.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1023, allocations: 8.031 kB / 0.508 GB, free: 5.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.1023, allocations: 12.89 kB / 0.508 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.1025, allocations: 152.5 kB / 0.5081 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.1025, allocations: 4 kB / 0.5082 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.1026, allocations: 11.94 kB / 0.5082 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.1029, allocations: 160.4 kB / 0.5083 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1029, allocations: 3.938 kB / 0.5083 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1029, allocations: 4 kB / 0.5083 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1029, allocations: 4 kB / 0.5083 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002313/0.1031, allocations: 93.53 kB / 0.5084 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007698/0.1039, allocations: 0.6926 MB / 0.5091 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.1041, allocations: 103 kB / 0.5092 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.287e-05/0.1042, allocations: 67.34 kB / 0.5093 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-06/0.1042, allocations: 0 / 0.5093 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.1045, allocations: 122.7 kB / 0.5094 GB, free: 3.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.1045, allocations: 0 / 0.5094 GB, free: 3.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003952/0.1048, allocations: 214.6 kB / 0.5096 GB, free: 3.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.1049, allocations: 110.8 kB / 0.5097 GB, free: 3.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.1051, allocations: 167.2 kB / 0.5098 GB, free: 3.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1051, allocations: 29.7 kB / 0.5099 GB, free: 3.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.1052, allocations: 115.9 kB / 0.51 GB, free: 3.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.1052, allocations: 31.7 kB / 0.51 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.453e-05/0.1053, allocations: 45.66 kB / 0.5101 GB, free: 3.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1055, allocations: 322.8 kB / 0.5104 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.1056, allocations: 53.69 kB / 0.5104 GB, free: 2.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.1057, allocations: 104.5 kB / 0.5105 GB, free: 2.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.1061, allocations: 273.8 kB / 0.5108 GB, free: 2.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1061, allocations: 0 / 0.5108 GB, free: 2.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003373/0.1064, allocations: 220.8 kB / 0.511 GB, free: 2.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.1065, allocations: 37.69 kB / 0.511 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1065, allocations: 0 / 0.511 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.1065, allocations: 4 kB / 0.511 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.342e-05/0.1066, allocations: 12 kB / 0.511 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1066, allocations: 4 kB / 0.511 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.186e-05/0.1066, allocations: 23.81 kB / 0.5111 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1067, allocations: 8 kB / 0.5111 GB, free: 2.039 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) \"next putative firing time\" 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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.0001726/0.1068, allocations: 161 kB / 0.5112 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.1069, allocations: 15.88 kB / 0.5112 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.1069, allocations: 17.09 kB / 0.5113 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1069, allocations: 4 kB / 0.5113 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1069, allocations: 0 / 0.5113 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1069, allocations: 3.938 kB / 0.5113 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005239/0.1074, allocations: 468.7 kB / 0.5117 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1074, allocations: 0 / 0.5117 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.981e-05/0.1075, allocations: 7.938 kB / 0.5117 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1075, allocations: 4.234 kB / 0.5117 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.1075, allocations: 4 kB / 0.5117 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1075, allocations: 3.984 kB / 0.5117 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1075, allocations: 0 / 0.5117 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.1078, allocations: 346.1 kB / 0.5121 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.004e-05/0.1078, allocations: 11.95 kB / 0.5121 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.1079, allocations: 7.984 kB / 0.5121 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.108, allocations: 4 kB / 0.5121 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.108, allocations: 11.98 kB / 0.5121 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.108, allocations: 4 kB / 0.5121 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.1081, allocations: 123.9 kB / 0.5122 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1081, allocations: 96 / 0.5122 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1084, allocations: 27.88 kB / 0.5122 GB, free: 0.7383 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001181/0.1086, allocations: 95.25 kB / 0.5123 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.1089, allocations: 198.6 kB / 0.5125 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1089, allocations: 0 / 0.5125 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.109, allocations: 117.4 kB / 0.5126 GB, free: 292 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.1094, allocations: 19.92 kB / 0.5127 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1764/0.2857, allocations: 255.1 kB / 0.5129 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.2858, allocations: 89.73 kB / 0.513 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.2859, allocations: 22.48 kB / 0.513 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/0.286, allocations: 15.56 kB / 0.513 GB, free: 15.7 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.286, allocations: 2.5 kB / 0.513 GB, free: 15.7 MB / 382.1 MB Notification: Performance of Templates: time 0.003834/0.2898, allocations: 1.064 MB / 0.5141 GB, free: 15.68 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile [Timeout 660] (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 480] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.620037324726582]