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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001898/0.001898, allocations: 119.9 kB / 17.13 MB, free: 5.758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 191.7 kB / 20.08 MB, free: 2.848 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 225.6 MB / 248.5 MB, free: 3.656 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.08009/0.08009, allocations: 16.96 MB / 320.3 MB, free: 13.14 MB / 254.1 MB " [Timeout remaining time 180] 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.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: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.62 kB / 447.3 MB, free: 44.85 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1064, allocations: 56.42 MB / 0.4919 GB, free: 18.45 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002291/0.1087, allocations: 1.059 MB / 0.4929 GB, free: 17.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006538/0.1094, allocations: 272.1 kB / 0.4932 GB, free: 17.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.1095, allocations: 2.875 kB / 0.4932 GB, free: 17.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.1096, allocations: 42.41 kB / 0.4932 GB, free: 17.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.1099, allocations: 47.03 kB / 0.4933 GB, free: 17.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001403/0.11, allocations: 69.45 kB / 0.4933 GB, free: 17.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.1103, allocations: 236.4 kB / 0.4936 GB, free: 17.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.228e-05/0.1104, allocations: 14.5 kB / 0.4936 GB, free: 17.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1105, allocations: 126.8 kB / 0.4937 GB, free: 17.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.858e-05/0.1106, allocations: 40.17 kB / 0.4937 GB, free: 17.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.1106, allocations: 5.438 kB / 0.4937 GB, free: 17.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.432e-05/0.1107, allocations: 15.77 kB / 0.4937 GB, free: 17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.334e-05/0.1108, allocations: 27.3 kB / 0.4938 GB, free: 16.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.623e-05/0.1108, allocations: 41.42 kB / 0.4938 GB, free: 16.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.111, allocations: 83.84 kB / 0.4939 GB, free: 16.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.111, allocations: 1.25 kB / 0.4939 GB, free: 16.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.111, allocations: 0 / 0.4939 GB, free: 16.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.111, allocations: 0 / 0.4939 GB, free: 16.89 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000563/0.1116, allocations: 439.3 kB / 0.4943 GB, free: 16.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1116, allocations: 13.52 kB / 0.4943 GB, free: 16.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.1117, allocations: 14.84 kB / 0.4943 GB, free: 16.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.1118, allocations: 209.5 kB / 0.4945 GB, free: 16.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.1119, allocations: 8.031 kB / 0.4945 GB, free: 16.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.1119, allocations: 12.91 kB / 0.4946 GB, free: 16.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.1121, allocations: 129.4 kB / 0.4947 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1122, allocations: 0.8438 kB / 0.4947 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.1122, allocations: 2.75 kB / 0.4947 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1122, allocations: 1.625 kB / 0.4947 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.1124, allocations: 70.67 kB / 0.4948 GB, free: 16.03 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006669/0.1131, allocations: 0.9099 MB / 0.4956 GB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.1132, allocations: 83.36 kB / 0.4957 GB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.655e-05/0.1133, allocations: 31.55 kB / 0.4958 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.1133, allocations: 5.375 kB / 0.4958 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.1135, allocations: 87.84 kB / 0.4958 GB, free: 14.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.1135, allocations: 1.406 kB / 0.4958 GB, free: 14.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003597/0.1139, allocations: 156.2 kB / 0.496 GB, free: 14.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9e-05/0.114, allocations: 113.7 kB / 0.4961 GB, free: 14.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.1141, allocations: 165.8 kB / 0.4963 GB, free: 14.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.1141, allocations: 27.14 kB / 0.4963 GB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.1142, allocations: 121.3 kB / 0.4964 GB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.1142, allocations: 24.16 kB / 0.4964 GB, free: 14.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.1143, allocations: 39.08 kB / 0.4965 GB, free: 14.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.631e-05/0.1143, allocations: 325.9 kB / 0.4968 GB, free: 13.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.521e-05/0.1144, allocations: 35.36 kB / 0.4968 GB, free: 13.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.043e-05/0.1145, allocations: 84.28 kB / 0.4969 GB, free: 13.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.1148, allocations: 267 kB / 0.4971 GB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1148, allocations: 1.188 kB / 0.4971 GB, free: 13.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002854/0.1151, allocations: 194 kB / 0.4973 GB, free: 13.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.1151, allocations: 35.11 kB / 0.4974 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1151, allocations: 1.25 kB / 0.4974 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.1152, allocations: 2.938 kB / 0.4974 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.972e-05/0.1153, allocations: 15.7 kB / 0.4974 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1153, allocations: 3.125 kB / 0.4974 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.1153, allocations: 14.3 kB / 0.4974 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1154, allocations: 9.656 kB / 0.4974 GB, free: 13.43 MB / 366.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.0001452/0.1155, allocations: 168 kB / 0.4976 GB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.1155, allocations: 17.53 kB / 0.4976 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/0.1156, allocations: 17.48 kB / 0.4976 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1156, allocations: 1.094 kB / 0.4976 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1156, allocations: 1.438 kB / 0.4976 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1156, allocations: 0 / 0.4976 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.116, allocations: 0.4922 MB / 0.4981 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.116, allocations: 1.031 kB / 0.4981 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.227e-05/0.116, allocations: 11.55 kB / 0.4981 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.1161, allocations: 1.094 kB / 0.4981 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.1161, allocations: 9.094 kB / 0.4981 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1161, allocations: 1.562 kB / 0.4981 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1161, allocations: 0 / 0.4981 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.1163, allocations: 314.2 kB / 0.4984 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.051e-05/0.1163, allocations: 92.41 kB / 0.4985 GB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.1164, allocations: 2.719 kB / 0.4985 GB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.755e-05/0.1165, allocations: 2.938 kB / 0.4985 GB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.1165, allocations: 13.48 kB / 0.4985 GB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/0.1165, allocations: 2.469 kB / 0.4985 GB, free: 12.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.433e-05/0.1166, allocations: 127.9 kB / 0.4986 GB, free: 12.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1166, allocations: 0.8438 kB / 0.4986 GB, free: 12.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000297/0.1169, allocations: 29.09 kB / 0.4987 GB, free: 12.23 MB / 366.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.0001275/0.117, allocations: 101 kB / 0.4988 GB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003413/0.1174, allocations: 146.4 kB / 0.4989 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1174, allocations: 0 / 0.4989 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.1175, allocations: 86.92 kB / 0.499 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.1178, allocations: 9.656 kB / 0.499 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005445/0.1184, allocations: 275.7 kB / 0.4993 GB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.1185, allocations: 0.7024 MB / 0.4999 GB, free: 11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.528e-05/0.1186, allocations: 20.2 kB / 0.5 GB, free: 10.99 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1186, allocations: 0 / 0.5 GB, free: 10.99 MB / 366.1 MB Notification: Performance of Templates: time 0.003393/0.122, allocations: 1.465 MB / 0.5014 GB, free: 10.23 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.612946287961677]