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.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.001451/0.001451, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001645/0.001645, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.579/1.579, allocations: 230.6 MB / 256 MB, free: 8.031 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.08755/0.08755, allocations: 16.94 MB / 329.4 MB, free: 2.293 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.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: 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.002423/0.002423, allocations: 63.91 kB / 460.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1316, allocations: 57.64 MB / 0.5057 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.003175/0.1347, allocations: 1.069 MB / 0.5068 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.136, allocations: 387.1 kB / 0.5071 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.1361, allocations: 11.94 kB / 0.5072 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.1364, allocations: 51.69 kB / 0.5072 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003594/0.1367, allocations: 51.66 kB / 0.5073 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.1371, allocations: 127.7 kB / 0.5074 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004806/0.1376, allocations: 315.3 kB / 0.5077 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.739e-05/0.1377, allocations: 8.594 kB / 0.5077 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.1379, allocations: 151.6 kB / 0.5078 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001532/0.1381, allocations: 55.53 kB / 0.5079 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.1381, allocations: 4 kB / 0.5079 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.1383, allocations: 63.94 kB / 0.5079 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1384, allocations: 31.73 kB / 0.508 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.016e-05/0.1385, allocations: 39.72 kB / 0.508 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.1388, allocations: 111.6 kB / 0.5081 GB, free: 5.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1388, allocations: 0 / 0.5081 GB, free: 5.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1388, allocations: 0 / 0.5081 GB, free: 5.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1388, allocations: 0 / 0.5081 GB, free: 5.645 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007527/0.1395, allocations: 355.4 kB / 0.5085 GB, free: 5.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.1396, allocations: 16.02 kB / 0.5085 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.303e-05/0.1397, allocations: 12.84 kB / 0.5085 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.1399, allocations: 152.5 kB / 0.5086 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.1399, allocations: 4.375 kB / 0.5086 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.14, allocations: 11.94 kB / 0.5086 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.1402, allocations: 106 kB / 0.5087 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1402, allocations: 3.938 kB / 0.5088 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.1403, allocations: 4 kB / 0.5088 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1403, allocations: 4 kB / 0.5088 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.1404, allocations: 47.91 kB / 0.5088 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009217/0.1413, allocations: 0.6331 MB / 0.5094 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.1415, allocations: 54.62 kB / 0.5095 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.091e-05/0.1416, allocations: 16.97 kB / 0.5095 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1416, allocations: 7.984 kB / 0.5095 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.1416, allocations: 30.56 kB / 0.5095 GB, free: 4.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.1416, allocations: 0 / 0.5095 GB, free: 4.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003144/0.1419, allocations: 119.3 kB / 0.5096 GB, free: 3.914 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.142, allocations: 81.05 kB / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.1422, allocations: 178.2 kB / 0.5099 GB, free: 3.633 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1422, allocations: 29.7 kB / 0.5099 GB, free: 3.598 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/0.1423, allocations: 120 kB / 0.51 GB, free: 3.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.1423, allocations: 11.86 kB / 0.51 GB, free: 3.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.584e-05/0.1424, allocations: 33.7 kB / 0.5101 GB, free: 3.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.1426, allocations: 322.8 kB / 0.5104 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.636e-05/0.1426, allocations: 19.98 kB / 0.5104 GB, free: 3.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.242e-05/0.1427, allocations: 56.28 kB / 0.5105 GB, free: 3.012 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.1429, allocations: 123.6 kB / 0.5106 GB, free: 2.863 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1429, allocations: 3.938 kB / 0.5106 GB, free: 2.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002244/0.1431, allocations: 151.2 kB / 0.5107 GB, free: 2.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.395e-05/0.1431, allocations: 29.7 kB / 0.5107 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1431, allocations: 4 kB / 0.5108 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.1432, allocations: 3.938 kB / 0.5108 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.247e-05/0.1432, allocations: 15.94 kB / 0.5108 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.1432, allocations: 3.984 kB / 0.5108 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.483e-05/0.1433, allocations: 11.89 kB / 0.5108 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.1433, allocations: 8 kB / 0.5108 GB, free: 2.617 MB / 382.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 0.0001293/0.1434, allocations: 151.7 kB / 0.5109 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.1435, allocations: 11.91 kB / 0.511 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002177/0.1437, allocations: 125.5 kB / 0.5111 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1437, allocations: 0 / 0.5111 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1437, allocations: 0 / 0.5111 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1437, allocations: 3.984 kB / 0.5111 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.1439, allocations: 164.7 kB / 0.5112 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1439, allocations: 0 / 0.5112 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.081e-05/0.1439, allocations: 4.25 kB / 0.5112 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.1439, allocations: 0 / 0.5112 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1439, allocations: 15.88 kB / 0.5113 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1439, allocations: 3.984 kB / 0.5113 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1439, allocations: 0 / 0.5113 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.1441, allocations: 126.7 kB / 0.5114 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.05e-05/0.1441, allocations: 15.89 kB / 0.5114 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.1441, allocations: 7.938 kB / 0.5114 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.89e-05/0.1441, allocations: 0 / 0.5114 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.647e-05/0.1442, allocations: 3.984 kB / 0.5114 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.1442, allocations: 8 kB / 0.5114 GB, free: 1.883 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1443, allocations: 127.8 kB / 0.5115 GB, free: 1.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1443, allocations: 0 / 0.5115 GB, free: 1.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.1445, allocations: 23.94 kB / 0.5116 GB, free: 1.734 MB / 382.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.0001626/0.1447, allocations: 111.8 kB / 0.5117 GB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002115/0.1449, allocations: 111.3 kB / 0.5118 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1449, allocations: 256 / 0.5118 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.253e-05/0.145, allocations: 67.41 kB / 0.5118 GB, free: 1.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.1452, allocations: 20.19 kB / 0.5119 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005609/0.1458, allocations: 237.3 kB / 0.5121 GB, free: 1.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.1461, allocations: 0.6963 MB / 0.5128 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.1462, allocations: 44.33 kB / 0.5128 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.1463, allocations: 19.42 kB / 0.5128 GB, free: 360 kB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1463, allocations: 4 kB / 0.5128 GB, free: 356 kB / 382.1 MB Notification: Performance of Templates: time 0.2514/0.3977, allocations: 0.9266 MB / 0.5137 GB, free: 15.2 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.2524699359200895]