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.0008044/0.0008044, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007884/0.0007884, allocations: 174.3 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.9111/0.9111, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.0453/0.0453, allocations: 12.65 MB / 272.6 MB, free: 0.7383 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 403.5 MB, free: 10.2 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.957e-05/2.086e-05, allocations: 9.312 kB / 403.5 MB, free: 10.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001339/0.00136, allocations: 1.004 MB / 404.5 MB, free: 9.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005808/0.001941, allocations: 371.1 kB / 404.8 MB, free: 8.816 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.046e-05/0.002011, allocations: 4 kB / 404.9 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.002183, allocations: 59.56 kB / 404.9 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002434/0.002426, allocations: 51.66 kB / 405 MB, free: 8.703 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.002586, allocations: 123.8 kB / 405.1 MB, free: 8.582 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.002813, allocations: 315.3 kB / 405.4 MB, free: 8.273 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.451e-05/0.002858, allocations: 12.58 kB / 405.4 MB, free: 8.262 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.003005, allocations: 211.6 kB / 405.6 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.003082, allocations: 23.84 kB / 405.6 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.499e-05/0.003096, allocations: 4 kB / 405.6 MB, free: 8.027 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.003197, allocations: 71.86 kB / 405.7 MB, free: 7.957 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.558e-05/0.003263, allocations: 27.78 kB / 405.7 MB, free: 7.93 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.786e-05/0.003291, allocations: 11.94 kB / 405.7 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.003451, allocations: 127.6 kB / 405.9 MB, free: 7.793 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.003453, allocations: 4 kB / 405.9 MB, free: 7.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.003454, allocations: 0 / 405.9 MB, free: 7.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.003457, allocations: 0 / 405.9 MB, free: 7.789 MB / 378.7 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.0003505/0.003808, allocations: 359.5 kB / 406.2 MB, free: 7.402 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.003838, allocations: 12.03 kB / 406.2 MB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.003876, allocations: 12.84 kB / 406.2 MB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.004005, allocations: 141.2 kB / 406.4 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.004028, allocations: 4.375 kB / 406.4 MB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.004044, allocations: 8.375 kB / 406.4 MB, free: 7.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.004201, allocations: 139.9 kB / 406.5 MB, free: 7.043 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.004208, allocations: 0 / 406.5 MB, free: 7.043 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.004219, allocations: 11.94 kB / 406.5 MB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.004223, allocations: 4 kB / 406.6 MB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.616e-05/0.004299, allocations: 73.61 kB / 406.6 MB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000458/0.004757, allocations: 0.5986 MB / 407.2 MB, free: 6.305 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.004895, allocations: 84.25 kB / 407.3 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.283e-05/0.004927, allocations: 46.69 kB / 407.3 MB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.00494, allocations: 0 / 407.3 MB, free: 6.152 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.004958, allocations: 38.55 kB / 407.4 MB, free: 6.105 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.00496, allocations: 112 / 407.4 MB, free: 6.105 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001931/0.005153, allocations: 178.6 kB / 407.6 MB, free: 5.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.005186, allocations: 77.11 kB / 407.6 MB, free: 5.812 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.005287, allocations: 179.1 kB / 407.8 MB, free: 5.625 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.005298, allocations: 29.7 kB / 407.8 MB, free: 5.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.005353, allocations: 119.9 kB / 408 MB, free: 5.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/0.005366, allocations: 19.84 kB / 408 MB, free: 5.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.0054, allocations: 33.7 kB / 408 MB, free: 5.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.241e-05/0.005472, allocations: 322.8 kB / 408.3 MB, free: 5.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.503e-05/0.005507, allocations: 45.69 kB / 408.4 MB, free: 5.035 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.782e-05/0.005555, allocations: 81.98 kB / 408.5 MB, free: 4.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.221e-05/0.005647, allocations: 131.6 kB / 408.6 MB, free: 4.777 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.005649, allocations: 0 / 408.6 MB, free: 4.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000141/0.00579, allocations: 176.8 kB / 408.8 MB, free: 4.586 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.005815, allocations: 29.7 kB / 408.8 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.00582, allocations: 4.25 kB / 408.8 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.005833, allocations: 0 / 408.8 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.964e-05/0.005872, allocations: 24.11 kB / 408.8 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.005877, allocations: 0 / 408.8 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.813e-05/0.005905, allocations: 11.94 kB / 408.8 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.005915, allocations: 4 kB / 408.8 MB, free: 4.508 MB / 378.7 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.689e-05/0.006002, allocations: 155.5 kB / 409 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.006026, allocations: 11.91 kB / 409 MB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.006162, allocations: 151.3 kB / 409.1 MB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.006164, allocations: 0 / 409.1 MB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.006168, allocations: 0 / 409.1 MB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.006172, allocations: 7.938 kB / 409.1 MB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.55e-05/0.006247, allocations: 137.3 kB / 409.3 MB, free: 3.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.006248, allocations: 0 / 409.3 MB, free: 3.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.013e-05/0.006258, allocations: 7.938 kB / 409.3 MB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.006259, allocations: 3.938 kB / 409.3 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.006266, allocations: 3.938 kB / 409.3 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-07/0.006267, allocations: 0 / 409.3 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.006268, allocations: 3.984 kB / 409.3 MB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.855e-05/0.006367, allocations: 160.4 kB / 409.5 MB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-06/0.006374, allocations: 7.953 kB / 409.5 MB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.006388, allocations: 8 kB / 409.5 MB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.014e-05/0.006398, allocations: 0 / 409.5 MB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.193e-05/0.00642, allocations: 11.98 kB / 409.5 MB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.006422, allocations: 0 / 409.5 MB, free: 3.754 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.715e-05/0.006479, allocations: 123.2 kB / 409.6 MB, free: 3.633 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006479, allocations: 0 / 409.6 MB, free: 3.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001555/0.006635, allocations: 27.88 kB / 409.6 MB, free: 3.605 MB / 378.7 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.0001385/0.006773, allocations: 111.9 kB / 409.7 MB, free: 3.484 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001685/0.006942, allocations: 166.7 kB / 409.9 MB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.006943, allocations: 0 / 409.9 MB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.99e-05/0.006983, allocations: 105.3 kB / 410 MB, free: 3.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.007118, allocations: 16 kB / 410 MB, free: 3.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.007469, allocations: 288.6 kB / 410.3 MB, free: 2.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.927e-05/0.007519, allocations: 84.31 kB / 410.4 MB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.007565, allocations: 32.59 kB / 410.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.007565, allocations: 0 / 410.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of Templates: time 0.001869/0.009435, allocations: 1.366 MB / 411.8 MB, free: 1.332 MB / 378.7 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: 4.420512901619077]