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.001604/0.001604, allocations: 113 kB / 17.6 MB, free: 4.684 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.001659/0.001659, allocations: 186.8 kB / 20.78 MB, free: 1.52 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.452/1.452, allocations: 225.6 MB / 249.4 MB, free: 3.32 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.07726/0.07726, allocations: 16.96 MB / 321.5 MB, free: 12.63 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.001907/0.001907, allocations: 65.88 kB / 449.4 MB, free: 44.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 56.42 MB / 0.494 GB, free: 17.27 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002388/0.1085, allocations: 1.075 MB / 0.495 GB, free: 16.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006376/0.1091, allocations: 272 kB / 0.4953 GB, free: 16.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.622e-05/0.1092, allocations: 2.156 kB / 0.4953 GB, free: 16.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1094, allocations: 42.64 kB / 0.4953 GB, free: 16.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.1096, allocations: 50.34 kB / 0.4954 GB, free: 16.15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000141/0.1098, allocations: 67.06 kB / 0.4954 GB, free: 16.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000271/0.11, allocations: 231.9 kB / 0.4956 GB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.775e-05/0.1101, allocations: 14.92 kB / 0.4957 GB, free: 15.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1102, allocations: 123.1 kB / 0.4958 GB, free: 15.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.349e-05/0.1103, allocations: 39.52 kB / 0.4958 GB, free: 15.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.1103, allocations: 5.438 kB / 0.4958 GB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.65e-05/0.1104, allocations: 19.08 kB / 0.4958 GB, free: 15.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.264e-05/0.1104, allocations: 27.84 kB / 0.4959 GB, free: 15.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.095e-05/0.1105, allocations: 41.95 kB / 0.4959 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.1107, allocations: 76.22 kB / 0.496 GB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1107, allocations: 0 / 0.496 GB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1107, allocations: 1.094 kB / 0.496 GB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.1107, allocations: 0 / 0.496 GB, free: 15.71 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.0005806/0.1113, allocations: 442.4 kB / 0.4964 GB, free: 15.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1113, allocations: 13.77 kB / 0.4964 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.83e-05/0.1113, allocations: 19.28 kB / 0.4964 GB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.1115, allocations: 203.7 kB / 0.4966 GB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.1115, allocations: 10.5 kB / 0.4966 GB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.1116, allocations: 7.844 kB / 0.4966 GB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.1118, allocations: 128.7 kB / 0.4968 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1118, allocations: 4 kB / 0.4968 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1118, allocations: 2.344 kB / 0.4968 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1118, allocations: 6.609 kB / 0.4968 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.112, allocations: 69.27 kB / 0.4968 GB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006282/0.1126, allocations: 0.9029 MB / 0.4977 GB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.1128, allocations: 82.72 kB / 0.4978 GB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.967e-05/0.1129, allocations: 32.48 kB / 0.4978 GB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.1129, allocations: 9.25 kB / 0.4978 GB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/0.1131, allocations: 91.88 kB / 0.4979 GB, free: 13.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.1131, allocations: 0 / 0.4979 GB, free: 13.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003246/0.1134, allocations: 153.5 kB / 0.4981 GB, free: 13.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.1134, allocations: 109.1 kB / 0.4982 GB, free: 13.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.1135, allocations: 169.4 kB / 0.4983 GB, free: 13.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.1135, allocations: 27.17 kB / 0.4984 GB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.1136, allocations: 126.2 kB / 0.4985 GB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.1136, allocations: 27.97 kB / 0.4985 GB, free: 13.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.1137, allocations: 35.89 kB / 0.4985 GB, free: 13.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.089e-05/0.1137, allocations: 325.6 kB / 0.4989 GB, free: 12.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.893e-05/0.1138, allocations: 27.48 kB / 0.4989 GB, free: 12.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.822e-05/0.1139, allocations: 85.75 kB / 0.499 GB, free: 12.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.1141, allocations: 259.6 kB / 0.4992 GB, free: 12.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1141, allocations: 0 / 0.4992 GB, free: 12.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002538/0.1144, allocations: 195.8 kB / 0.4994 GB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.1144, allocations: 31.05 kB / 0.4994 GB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1144, allocations: 6.156 kB / 0.4994 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1145, allocations: 3.594 kB / 0.4994 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.192e-05/0.1145, allocations: 18.73 kB / 0.4995 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1145, allocations: 3.625 kB / 0.4995 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.177e-05/0.1146, allocations: 17.2 kB / 0.4995 GB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.1146, allocations: 7.156 kB / 0.4995 GB, free: 12.25 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.0001623/0.1148, allocations: 166.9 kB / 0.4996 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.012e-05/0.1148, allocations: 18.22 kB / 0.4997 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.182e-05/0.1148, allocations: 13.72 kB / 0.4997 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1148, allocations: 5.328 kB / 0.4997 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1148, allocations: 320 / 0.4997 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1148, allocations: 1.531 kB / 0.4997 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.1152, allocations: 499.4 kB / 0.5002 GB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1152, allocations: 2.906 kB / 0.5002 GB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.698e-05/0.1152, allocations: 11.81 kB / 0.5002 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1152, allocations: 0 / 0.5002 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.1153, allocations: 7.984 kB / 0.5002 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1153, allocations: 2.594 kB / 0.5002 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1153, allocations: 0 / 0.5002 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.1155, allocations: 309.9 kB / 0.5005 GB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/0.1155, allocations: 91.75 kB / 0.5006 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.1155, allocations: 6.75 kB / 0.5006 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.583e-05/0.1156, allocations: 2.75 kB / 0.5006 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.1157, allocations: 17.42 kB / 0.5006 GB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1157, allocations: 2.75 kB / 0.5006 GB, free: 11.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.062e-05/0.1157, allocations: 129 kB / 0.5007 GB, free: 11.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1157, allocations: 3.938 kB / 0.5007 GB, free: 11.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002936/0.116, allocations: 25.81 kB / 0.5007 GB, free: 11.05 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.0001277/0.1162, allocations: 102.9 kB / 0.5008 GB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002483/0.1164, allocations: 144.7 kB / 0.501 GB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1164, allocations: 0 / 0.501 GB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.295e-05/0.1165, allocations: 84.02 kB / 0.5011 GB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.1168, allocations: 13.8 kB / 0.5011 GB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004816/0.1173, allocations: 249 kB / 0.5013 GB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.1174, allocations: 0.7113 MB / 0.502 GB, free: 9.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.08e-05/0.1175, allocations: 19.41 kB / 0.502 GB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.1175, allocations: 14.72 kB / 0.502 GB, free: 9.84 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1175, allocations: 0 / 0.502 GB, free: 9.84 MB / 366.1 MB Notification: Performance of Templates: time 0.004199/0.1217, allocations: 1.061 MB / 0.5031 GB, free: 9.305 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/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.601551675237715]