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.00153/0.00153, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001655/0.001655, allocations: 222.3 kB / 23 MB, free: 4.91 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.404/1.404, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.07856/0.07856, allocations: 16.95 MB / 330.1 MB, free: 2.094 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.001997/0.001997, allocations: 67.91 kB / 461 MB, free: 1.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.104, allocations: 57.63 MB / 0.5064 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002376/0.1064, allocations: 0.9946 MB / 0.5074 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000599/0.107, allocations: 259.8 kB / 0.5076 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.376e-05/0.1071, allocations: 15.81 kB / 0.5077 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.1072, allocations: 39.7 kB / 0.5077 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.1074, allocations: 47.67 kB / 0.5077 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001529/0.1076, allocations: 79.88 kB / 0.5078 GB, free: 6.488 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.1079, allocations: 231.5 kB / 0.508 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.393e-05/0.1079, allocations: 12.59 kB / 0.5081 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1081, allocations: 111.7 kB / 0.5082 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.932e-05/0.1081, allocations: 55.47 kB / 0.5082 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.918e-05/0.1082, allocations: 4 kB / 0.5082 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.307e-05/0.1082, allocations: 19.98 kB / 0.5082 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/0.1083, allocations: 19.86 kB / 0.5083 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.204e-05/0.1084, allocations: 31.8 kB / 0.5083 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.1085, allocations: 87.53 kB / 0.5084 GB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1085, allocations: 0 / 0.5084 GB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1085, allocations: 0 / 0.5084 GB, free: 5.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1085, allocations: 0 / 0.5084 GB, free: 5.926 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.000548/0.1091, allocations: 363.5 kB / 0.5087 GB, free: 5.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/0.1091, allocations: 16.03 kB / 0.5087 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.932e-05/0.1091, allocations: 8.891 kB / 0.5087 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.1094, allocations: 157.4 kB / 0.5089 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.1094, allocations: 7.906 kB / 0.5089 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.1094, allocations: 12 kB / 0.5089 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.1098, allocations: 160.4 kB / 0.5091 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.1098, allocations: 0 / 0.5091 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.1098, allocations: 8 kB / 0.5091 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1098, allocations: 0 / 0.5091 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.11, allocations: 93.59 kB / 0.5092 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007679/0.1108, allocations: 0.6887 MB / 0.5098 GB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.111, allocations: 106.9 kB / 0.5099 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.273e-05/0.1111, allocations: 67.39 kB / 0.51 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-06/0.1111, allocations: 0 / 0.51 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.1113, allocations: 122.7 kB / 0.5101 GB, free: 3.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.042e-06/0.1113, allocations: 0 / 0.5101 GB, free: 3.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003616/0.1116, allocations: 210.6 kB / 0.5103 GB, free: 3.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.1117, allocations: 114.8 kB / 0.5104 GB, free: 3.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.1119, allocations: 171.2 kB / 0.5106 GB, free: 3.383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1119, allocations: 29.64 kB / 0.5106 GB, free: 3.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.112, allocations: 119.9 kB / 0.5107 GB, free: 3.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.112, allocations: 27.81 kB / 0.5108 GB, free: 3.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.81e-05/0.1121, allocations: 41.66 kB / 0.5108 GB, free: 3.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1123, allocations: 322.8 kB / 0.5111 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.722e-05/0.1124, allocations: 53.69 kB / 0.5112 GB, free: 2.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.1125, allocations: 108.5 kB / 0.5113 GB, free: 2.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004138/0.1129, allocations: 269.5 kB / 0.5115 GB, free: 2.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1129, allocations: 0 / 0.5115 GB, free: 2.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003138/0.1132, allocations: 217 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.512e-05/0.1133, allocations: 33.89 kB / 0.5118 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1133, allocations: 8.062 kB / 0.5118 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1133, allocations: 4 kB / 0.5118 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.607e-05/0.1134, allocations: 19.92 kB / 0.5118 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.1134, allocations: 0 / 0.5118 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.775e-05/0.1135, allocations: 19.89 kB / 0.5118 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1135, allocations: 4 kB / 0.5118 GB, free: 1.996 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.0001776/0.1137, allocations: 172.1 kB / 0.512 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.1137, allocations: 19.83 kB / 0.512 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.1137, allocations: 21.08 kB / 0.512 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1137, allocations: 0 / 0.512 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1137, allocations: 0 / 0.512 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1137, allocations: 4 kB / 0.512 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000493/0.1142, allocations: 468.7 kB / 0.5125 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1142, allocations: 0 / 0.5125 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.883e-05/0.1143, allocations: 4 kB / 0.5125 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1143, allocations: 0 / 0.5125 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.1143, allocations: 0 / 0.5125 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.1143, allocations: 8 kB / 0.5125 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1143, allocations: 0 / 0.5125 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.1146, allocations: 346.2 kB / 0.5128 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.508e-05/0.1146, allocations: 7.953 kB / 0.5128 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.1146, allocations: 3.984 kB / 0.5128 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.86e-05/0.1147, allocations: 7.984 kB / 0.5128 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.1148, allocations: 11.98 kB / 0.5128 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.1148, allocations: 4.094 kB / 0.5128 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.762e-05/0.1149, allocations: 123.8 kB / 0.513 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1149, allocations: 4 kB / 0.513 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.1151, allocations: 27.94 kB / 0.513 GB, free: 0.6914 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.0001123/0.1153, allocations: 99.23 kB / 0.5131 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000296/0.1156, allocations: 202.7 kB / 0.5133 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1156, allocations: 0 / 0.5133 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.1157, allocations: 109.1 kB / 0.5134 GB, free: 244 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.116, allocations: 11.94 kB / 0.5134 GB, free: 232 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1685/0.2845, allocations: 290.8 kB / 0.5137 GB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.099e-05/0.2846, allocations: 92.27 kB / 0.5138 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.166e-05/0.2847, allocations: 18.59 kB / 0.5138 GB, free: 15.47 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2847, allocations: 0 / 0.5138 GB, free: 15.47 MB / 382.1 MB Notification: Performance of Templates: time 0.002932/0.2876, allocations: 1.461 MB / 0.5152 GB, free: 15.43 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/jenkins1/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: 6.852106584701687]