Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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.001755/0.001755, allocations: 117.2 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.002077/0.002077, allocations: 194.1 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.505/1.505, allocations: 225.6 MB / 248.5 MB, free: 3.641 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.07907/0.07907, allocations: 16.96 MB / 320.3 MB, free: 13.16 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.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 68.38 kB / 447.2 MB, free: 46.38 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1134, allocations: 56.43 MB / 0.4919 GB, free: 18.97 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002092/0.1154, allocations: 1.063 MB / 0.4929 GB, free: 18.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007678/0.1162, allocations: 395.6 kB / 0.4933 GB, free: 17.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.1163, allocations: 6.25 kB / 0.4933 GB, free: 17.83 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.1165, allocations: 53.52 kB / 0.4933 GB, free: 17.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.1167, allocations: 47.95 kB / 0.4934 GB, free: 17.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.117, allocations: 115 kB / 0.4935 GB, free: 17.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002812/0.1172, allocations: 303.6 kB / 0.4938 GB, free: 17.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.092e-05/0.1173, allocations: 15.77 kB / 0.4938 GB, free: 17.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.1174, allocations: 151.7 kB / 0.4939 GB, free: 17.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.1175, allocations: 50.81 kB / 0.494 GB, free: 17.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.1175, allocations: 7.656 kB / 0.494 GB, free: 17.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.1176, allocations: 65.44 kB / 0.4941 GB, free: 17.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.018e-05/0.1177, allocations: 31.47 kB / 0.4941 GB, free: 17.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.569e-05/0.1177, allocations: 29.75 kB / 0.4941 GB, free: 17.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.1179, allocations: 118.2 kB / 0.4942 GB, free: 17.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.81e-06/0.1179, allocations: 1.469 kB / 0.4942 GB, free: 17.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1179, allocations: 0 / 0.4942 GB, free: 17.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1179, allocations: 0 / 0.4942 GB, free: 17.17 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004207/0.1184, allocations: 432.9 kB / 0.4946 GB, free: 16.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1184, allocations: 13.05 kB / 0.4947 GB, free: 16.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.915e-05/0.1185, allocations: 15.31 kB / 0.4947 GB, free: 16.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.1186, allocations: 201.7 kB / 0.4949 GB, free: 16.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.1186, allocations: 10.89 kB / 0.4949 GB, free: 16.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.1186, allocations: 12.28 kB / 0.4949 GB, free: 16.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.1188, allocations: 112.9 kB / 0.495 GB, free: 16.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1188, allocations: 0 / 0.495 GB, free: 16.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.1189, allocations: 1.219 kB / 0.495 GB, free: 16.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1189, allocations: 2.469 kB / 0.495 GB, free: 16.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.119, allocations: 47.42 kB / 0.495 GB, free: 16.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006415/0.1196, allocations: 0.8249 MB / 0.4958 GB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.1198, allocations: 48.41 kB / 0.4959 GB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.049e-05/0.1198, allocations: 19.23 kB / 0.4959 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.1198, allocations: 5.172 kB / 0.4959 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.1199, allocations: 31.91 kB / 0.4959 GB, free: 15.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.1199, allocations: 0 / 0.4959 GB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.000263/0.1201, allocations: 121.4 kB / 0.4961 GB, free: 15.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.1202, allocations: 79.3 kB / 0.4961 GB, free: 15.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.1203, allocations: 164.5 kB / 0.4963 GB, free: 15.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.846e-06/0.1203, allocations: 30.98 kB / 0.4963 GB, free: 15.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.982e-05/0.1204, allocations: 117.4 kB / 0.4964 GB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.1204, allocations: 15.5 kB / 0.4964 GB, free: 14.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.1204, allocations: 32.52 kB / 0.4965 GB, free: 14.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.39e-05/0.1205, allocations: 322.1 kB / 0.4968 GB, free: 14.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.476e-05/0.1205, allocations: 22.45 kB / 0.4968 GB, free: 14.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.975e-05/0.1206, allocations: 54.5 kB / 0.4969 GB, free: 14.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.1207, allocations: 129 kB / 0.497 GB, free: 14.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1207, allocations: 0 / 0.497 GB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001812/0.1209, allocations: 143.9 kB / 0.4971 GB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.1209, allocations: 31.95 kB / 0.4971 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1209, allocations: 5.422 kB / 0.4972 GB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1209, allocations: 6.812 kB / 0.4972 GB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.649e-05/0.121, allocations: 17.94 kB / 0.4972 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.121, allocations: 2.156 kB / 0.4972 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.161e-05/0.121, allocations: 11.55 kB / 0.4972 GB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.121, allocations: 4.625 kB / 0.4972 GB, free: 14.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 8.408e-05/0.1211, allocations: 152.1 kB / 0.4973 GB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.1211, allocations: 14.72 kB / 0.4974 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001683/0.1213, allocations: 129.2 kB / 0.4975 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1213, allocations: 256 / 0.4975 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1213, allocations: 1.375 kB / 0.4975 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1213, allocations: 4 kB / 0.4975 GB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.1214, allocations: 194.8 kB / 0.4977 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1214, allocations: 0 / 0.4977 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.859e-05/0.1214, allocations: 2.875 kB / 0.4977 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1214, allocations: 1.031 kB / 0.4977 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.1215, allocations: 4.812 kB / 0.4977 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1215, allocations: 5.156 kB / 0.4977 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1215, allocations: 0 / 0.4977 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.1216, allocations: 134.4 kB / 0.4978 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/0.1216, allocations: 87.42 kB / 0.4979 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.1216, allocations: 6.531 kB / 0.4979 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.06e-05/0.1217, allocations: 5.281 kB / 0.4979 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.105e-05/0.1217, allocations: 1.469 kB / 0.4979 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.1217, allocations: 5.203 kB / 0.4979 GB, free: 13.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.307e-05/0.1218, allocations: 134.7 kB / 0.498 GB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1218, allocations: 0 / 0.498 GB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.122, allocations: 27.22 kB / 0.4981 GB, free: 13.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001283/0.1221, allocations: 111.8 kB / 0.4982 GB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.1223, allocations: 101.7 kB / 0.4983 GB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1223, allocations: 1.062 kB / 0.4983 GB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.217e-05/0.1224, allocations: 69.7 kB / 0.4983 GB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.1226, allocations: 13.53 kB / 0.4983 GB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000466/0.1231, allocations: 268.1 kB / 0.4986 GB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.1232, allocations: 0.6994 MB / 0.4993 GB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.2e-05/0.1232, allocations: 30.12 kB / 0.4993 GB, free: 12.11 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1232, allocations: 0 / 0.4993 GB, free: 12.11 MB / 366.1 MB Notification: Performance of Templates: time 0.003165/0.1264, allocations: 1.369 MB / 0.5007 GB, free: 11.4 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile [Timeout 660] (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & ./PNlib_PNlib.Examples.ConTest.SingleTC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 480] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.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.554447403177619]