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.001382/0.001387, allocations: 110.8 kB / 16.41 MB, free: 6.496 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.001487/0.001487, allocations: 183 kB / 17.34 MB, free: 5.766 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.377/1.377, allocations: 222.9 MB / 241 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.07732/0.07732, allocations: 16.73 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.89 kB / 427 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1198, allocations: 53.49 MB / 480.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002845/0.1227, allocations: 1.058 MB / 481.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1238, allocations: 395.1 kB / 481.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.124, allocations: 0 / 481.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.1243, allocations: 51.64 kB / 482 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.1246, allocations: 43.73 kB / 482 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003602/0.125, allocations: 119.8 kB / 482.1 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.1254, allocations: 319.3 kB / 482.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.745e-05/0.1255, allocations: 20.39 kB / 482.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.1257, allocations: 151.5 kB / 482.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.1258, allocations: 51.53 kB / 482.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.1258, allocations: 8 kB / 482.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.126, allocations: 59.89 kB / 482.7 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.841e-05/0.126, allocations: 19.92 kB / 482.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.797e-05/0.1261, allocations: 35.73 kB / 482.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1263, allocations: 115.6 kB / 482.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1263, allocations: 0 / 482.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1264, allocations: 0 / 482.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1264, allocations: 7.938 kB / 482.9 MB, free: 2.523 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.0005454/0.1269, allocations: 424.8 kB / 483.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.127, allocations: 15.89 kB / 483.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.127, allocations: 12.75 kB / 483.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.1272, allocations: 206.9 kB / 483.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.1273, allocations: 8.375 kB / 483.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.1273, allocations: 7.938 kB / 483.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.1275, allocations: 105 kB / 483.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1275, allocations: 7.984 kB / 483.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1276, allocations: 8 kB / 483.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1276, allocations: 0 / 483.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.753e-05/0.1277, allocations: 43.92 kB / 483.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007883/0.1285, allocations: 0.8236 MB / 484.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.1286, allocations: 46.56 kB / 484.6 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.82e-05/0.1287, allocations: 17.05 kB / 484.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.1287, allocations: 4 kB / 484.6 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1287, allocations: 38.55 kB / 484.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.1287, allocations: 0 / 484.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002558/0.129, allocations: 119.2 kB / 484.8 MB, free: 424 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1291, allocations: 81.11 kB / 484.8 MB, free: 324 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.1292, allocations: 170.3 kB / 485 MB, free: 144 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.1293, allocations: 25.7 kB / 485 MB, free: 112 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.637e-05/0.1294, allocations: 116 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.1294, allocations: 15.64 kB / 485.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.171e-05/0.1294, allocations: 37.61 kB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1296, allocations: 322.8 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.187e-05/0.1296, allocations: 15.98 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.639e-05/0.1297, allocations: 60.28 kB / 485.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.1298, allocations: 127.9 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1298, allocations: 7.938 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001906/0.13, allocations: 139.2 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.1301, allocations: 33.7 kB / 485.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1301, allocations: 4 kB / 485.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1301, allocations: 3.938 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.873e-05/0.1302, allocations: 19.92 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1302, allocations: 0 / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.072e-05/0.1302, allocations: 11.84 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.1303, allocations: 4.125 kB / 485.9 MB, free: 15.13 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.0001439/0.1304, allocations: 164.3 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.1304, allocations: 7.906 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002059/0.1307, allocations: 121.5 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1307, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1307, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1307, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.1309, allocations: 197.5 kB / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1309, allocations: 0 / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.914e-05/0.1309, allocations: 8.047 kB / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1309, allocations: 3.984 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.1309, allocations: 3.938 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1309, allocations: 0 / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1309, allocations: 0 / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.1311, allocations: 130.7 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/0.1312, allocations: 89 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.1312, allocations: 7.875 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.224e-05/0.1312, allocations: 8 kB / 486.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.1312, allocations: 4 kB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.1313, allocations: 0 / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.1314, allocations: 131.8 kB / 486.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1314, allocations: 0 / 486.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.1316, allocations: 24 kB / 486.8 MB, free: 14.13 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.0001641/0.1318, allocations: 119.2 kB / 486.9 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002133/0.132, allocations: 103.5 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.132, allocations: 4.062 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.386e-05/0.1321, allocations: 83.33 kB / 487.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.1323, allocations: 11.91 kB / 487.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005158/0.1329, allocations: 259.2 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.1332, allocations: 0.7002 MB / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.957e-05/0.1333, allocations: 27.41 kB / 488.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1333, allocations: 4 kB / 488.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of Templates: time 0.003233/0.1365, allocations: 1.365 MB / 489.5 MB, free: 11.37 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches