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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) 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=5000,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=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006384/0.006384, allocations: 98.14 kB / 15.73 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 195.5 kB / 16.67 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07189/0.07189, allocations: 16.72 MB / 307.2 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 59.91 kB / 426.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1217, allocations: 53.48 MB / 479.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002041/0.1238, allocations: 1.06 MB / 480.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007473/0.1246, allocations: 387.1 kB / 481.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.635e-05/0.1247, allocations: 0 / 481.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1248, allocations: 51.64 kB / 481.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.1251, allocations: 51.7 kB / 481.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.1253, allocations: 115.8 kB / 481.4 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003236/0.1257, allocations: 319.3 kB / 481.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.615e-05/0.1257, allocations: 24.39 kB / 481.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1259, allocations: 143.6 kB / 481.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.012e-05/0.126, allocations: 51.53 kB / 482 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.126, allocations: 8 kB / 482 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.1261, allocations: 63.88 kB / 482 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.1262, allocations: 19.92 kB / 482 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.171e-05/0.1262, allocations: 35.73 kB / 482.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.1264, allocations: 119.6 kB / 482.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1264, allocations: 0 / 482.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1265, allocations: 4 kB / 482.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1265, allocations: 3.938 kB / 482.2 MB, free: 2.535 MB / 350.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.0004427/0.1269, allocations: 420.8 kB / 482.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.127, allocations: 11.89 kB / 482.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.127, allocations: 20.75 kB / 482.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.1272, allocations: 198.9 kB / 482.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.1272, allocations: 8.375 kB / 482.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.1272, allocations: 7.938 kB / 482.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.1274, allocations: 105.9 kB / 483 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1274, allocations: 4 kB / 483 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.1274, allocations: 8 kB / 483 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1275, allocations: 0 / 483 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.1276, allocations: 47.91 kB / 483 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007387/0.1283, allocations: 0.8236 MB / 483.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.1285, allocations: 54.61 kB / 483.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.689e-05/0.1285, allocations: 16.97 kB / 483.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.1285, allocations: 4 kB / 483.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.1286, allocations: 34.56 kB / 483.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 3.527e-06/0.1286, allocations: 0 / 483.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002335/0.1288, allocations: 119.2 kB / 484.1 MB, free: 436 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.1289, allocations: 81.11 kB / 484.1 MB, free: 336 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.129, allocations: 170.3 kB / 484.3 MB, free: 156 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.129, allocations: 25.7 kB / 484.3 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.1291, allocations: 115.9 kB / 484.4 MB, free: 4 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.1291, allocations: 11.89 kB / 484.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.157e-05/0.1292, allocations: 37.61 kB / 484.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1293, allocations: 322.8 kB / 484.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.299e-05/0.1294, allocations: 19.98 kB / 484.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.349e-05/0.1294, allocations: 56.39 kB / 484.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.1296, allocations: 131.5 kB / 485 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1296, allocations: 4 kB / 485 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001823/0.1298, allocations: 143.1 kB / 485.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.1298, allocations: 33.69 kB / 485.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1298, allocations: 4 kB / 485.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.1298, allocations: 3.938 kB / 485.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.413e-05/0.1299, allocations: 19.94 kB / 485.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.1299, allocations: 3.984 kB / 485.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.923e-05/0.1299, allocations: 11.84 kB / 485.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.13, allocations: 4.125 kB / 485.2 MB, free: 15.14 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 0.0001106/0.1301, allocations: 160.4 kB / 485.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.1301, allocations: 7.906 kB / 485.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.1303, allocations: 121.5 kB / 485.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.1303, allocations: 0 / 485.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1303, allocations: 256 / 485.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1304, allocations: 3.984 kB / 485.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.1305, allocations: 197.5 kB / 485.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1305, allocations: 0 / 485.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.936e-05/0.1305, allocations: 8 kB / 485.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1305, allocations: 0 / 485.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.687e-06/0.1306, allocations: 3.938 kB / 485.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1306, allocations: 3.984 kB / 485.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1306, allocations: 0 / 485.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.1307, allocations: 130.7 kB / 485.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.022e-05/0.1308, allocations: 88.95 kB / 485.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1308, allocations: 3.938 kB / 486 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.092e-05/0.1308, allocations: 8 kB / 486 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.911e-05/0.1308, allocations: 7.984 kB / 486 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.1309, allocations: 4 kB / 486 MB, free: 14.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.668e-05/0.131, allocations: 123.8 kB / 486.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.131, allocations: 0 / 486.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002162/0.1312, allocations: 20 kB / 486.1 MB, free: 14.14 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.000134/0.1313, allocations: 115.2 kB / 486.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001777/0.1315, allocations: 107.5 kB / 486.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1315, allocations: 12 kB / 486.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.419e-05/0.1316, allocations: 71.41 kB / 486.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.1318, allocations: 11.98 kB / 486.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004684/0.1323, allocations: 241.3 kB / 486.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.1325, allocations: 0.7002 MB / 487.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.234e-05/0.1326, allocations: 44.5 kB / 487.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.444e-05/0.1327, allocations: 23.42 kB / 487.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1327, allocations: 0 / 487.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of Templates: time 0.003111/0.1358, allocations: 0.9021 MB / 488.3 MB, free: 11.84 MB / 366.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile (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) 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) Reference file matches