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.008034/0.008041, allocations: 99.44 kB / 15.73 MB, free: 6.035 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.001323/0.001322, allocations: 193.4 kB / 16.67 MB, free: 5.961 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.31/0.31, allocations: 16.75 MB / 307.3 MB, free: 14.87 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 63.27 kB / 426.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1209, allocations: 53.47 MB / 479.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002514/0.1235, allocations: 1.06 MB / 480.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009737/0.1245, allocations: 392.7 kB / 481.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.1246, allocations: 6.312 kB / 481.3 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.1248, allocations: 48.27 kB / 481.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.1251, allocations: 46.2 kB / 481.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.1253, allocations: 118.5 kB / 481.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000401/0.1257, allocations: 317 kB / 481.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.469e-05/0.1258, allocations: 24.05 kB / 481.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.1259, allocations: 152.4 kB / 482 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.1261, allocations: 54.25 kB / 482 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.1261, allocations: 3.344 kB / 482 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.1262, allocations: 60.06 kB / 482.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.812e-05/0.1263, allocations: 20.14 kB / 482.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.109e-05/0.1264, allocations: 38.3 kB / 482.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.1266, allocations: 115 kB / 482.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1266, allocations: 0 / 482.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1266, allocations: 4 kB / 482.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.1267, allocations: 0 / 482.2 MB, free: 8.754 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.0005517/0.1272, allocations: 433.4 kB / 482.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.1273, allocations: 13.95 kB / 482.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.1273, allocations: 13.56 kB / 482.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.1276, allocations: 201 kB / 482.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.1276, allocations: 5.156 kB / 482.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.1277, allocations: 14.97 kB / 482.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.1279, allocations: 108 kB / 483 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1279, allocations: 0 / 483 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.128, allocations: 5.781 kB / 483 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.128, allocations: 1.969 kB / 483 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.1281, allocations: 46.5 kB / 483.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/0.129, allocations: 0.8166 MB / 483.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.1293, allocations: 50.88 kB / 483.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.226e-05/0.1293, allocations: 24.53 kB / 484 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1294, allocations: 5.312 kB / 484 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.1294, allocations: 31.41 kB / 484 MB, free: 6.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.1294, allocations: 0 / 484 MB, free: 6.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000298/0.1297, allocations: 122.1 kB / 484.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.1298, allocations: 79.05 kB / 484.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.1299, allocations: 170 kB / 484.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.1299, allocations: 25.7 kB / 484.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/0.13, allocations: 117.4 kB / 484.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.13, allocations: 19.44 kB / 484.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.745e-05/0.13, allocations: 32.67 kB / 484.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.99e-05/0.1301, allocations: 321.5 kB / 484.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.663e-05/0.1302, allocations: 23.42 kB / 484.9 MB, free: 6.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.249e-05/0.1302, allocations: 51 kB / 484.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.1303, allocations: 127.9 kB / 485.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1304, allocations: 0 / 485.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000179/0.1305, allocations: 148.5 kB / 485.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.1306, allocations: 36.56 kB / 485.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1306, allocations: 5.422 kB / 485.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.1306, allocations: 13.38 kB / 485.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.759e-05/0.1307, allocations: 11 kB / 485.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.1307, allocations: 5.312 kB / 485.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.084e-05/0.1307, allocations: 12.02 kB / 485.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.1308, allocations: 8.109 kB / 485.3 MB, free: 5.758 MB / 350.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 9.858e-05/0.1309, allocations: 149.2 kB / 485.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.045e-05/0.1309, allocations: 9.453 kB / 485.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001818/0.1311, allocations: 133.2 kB / 485.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1311, allocations: 5.375 kB / 485.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1311, allocations: 4 kB / 485.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1311, allocations: 1.375 kB / 485.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.1312, allocations: 186.1 kB / 485.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1313, allocations: 0 / 485.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.77e-05/0.1313, allocations: 4.125 kB / 485.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1313, allocations: 0 / 485.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.1313, allocations: 9.312 kB / 485.8 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1313, allocations: 80 / 485.8 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1313, allocations: 5.359 kB / 485.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.1315, allocations: 129 kB / 485.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.316e-05/0.1315, allocations: 87.77 kB / 486 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.1315, allocations: 10.69 kB / 486 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.931e-05/0.1316, allocations: 1.375 kB / 486 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.422e-05/0.1316, allocations: 5.312 kB / 486 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1316, allocations: 1.375 kB / 486 MB, free: 5.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.464e-05/0.1317, allocations: 129.9 kB / 486.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1317, allocations: 0 / 486.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1319, allocations: 32.56 kB / 486.2 MB, free: 4.902 MB / 350.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.0001486/0.1321, allocations: 106.6 kB / 486.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.1323, allocations: 113.7 kB / 486.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1323, allocations: 0 / 486.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.639e-05/0.1324, allocations: 67.78 kB / 486.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1327, allocations: 9.5 kB / 486.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005879/0.1333, allocations: 249.3 kB / 486.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.1335, allocations: 0.7103 MB / 487.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.1336, allocations: 45.02 kB / 487.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.1336, allocations: 22.83 kB / 487.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1337, allocations: 0 / 487.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of Templates: time 0.003562/0.1372, allocations: 0.8808 MB / 488.4 MB, free: 3.238 MB / 350.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