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.001432/0.001437, allocations: 100.1 kB / 16.4 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.001493/0.001493, allocations: 189.5 kB / 17.34 MB, free: 5.77 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 2.244/2.244, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00225/0.00225, allocations: 59.91 kB / 427 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2084, allocations: 53.48 MB / 480.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.004398/0.2129, allocations: 1.062 MB / 481.5 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.2146, allocations: 387.2 kB / 481.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003218/0.2149, allocations: 7.938 kB / 481.9 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003314/0.2153, allocations: 47.7 kB / 482 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005093/0.2158, allocations: 43.67 kB / 482 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004072/0.2163, allocations: 123.8 kB / 482.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000536/0.2168, allocations: 311.3 kB / 482.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.2169, allocations: 20.39 kB / 482.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002486/0.2172, allocations: 151.6 kB / 482.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.2174, allocations: 55.47 kB / 482.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.2174, allocations: 3.938 kB / 482.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.2176, allocations: 63.95 kB / 482.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.2178, allocations: 27.84 kB / 482.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.957e-05/0.2179, allocations: 27.75 kB / 482.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.2181, allocations: 115.6 kB / 482.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2181, allocations: 0 / 482.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2182, allocations: 0 / 482.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.2182, allocations: 0 / 482.9 MB, free: 2.547 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.000729/0.2189, allocations: 432.8 kB / 483.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.264e-05/0.219, allocations: 15.89 kB / 483.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.2191, allocations: 12.75 kB / 483.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.2195, allocations: 206.7 kB / 483.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.2195, allocations: 4.375 kB / 483.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.2195, allocations: 11.94 kB / 483.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.2199, allocations: 109 kB / 483.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.2199, allocations: 3.938 kB / 483.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.2199, allocations: 4 kB / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2199, allocations: 0 / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.2201, allocations: 43.92 kB / 483.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.2215, allocations: 0.8236 MB / 484.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.2218, allocations: 46.62 kB / 484.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.25e-05/0.2218, allocations: 20.98 kB / 484.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.2219, allocations: 0 / 484.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.2219, allocations: 42.55 kB / 484.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.2219, allocations: 4 kB / 484.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004012/0.2223, allocations: 115.2 kB / 484.8 MB, free: 440 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/0.2224, allocations: 81.11 kB / 484.8 MB, free: 340 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.2227, allocations: 170.3 kB / 485 MB, free: 160 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.2227, allocations: 25.7 kB / 485 MB, free: 128 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.2228, allocations: 119.9 kB / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.2229, allocations: 11.98 kB / 485.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.703e-05/0.223, allocations: 37.61 kB / 485.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.2232, allocations: 326.8 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.987e-05/0.2233, allocations: 19.98 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2234, allocations: 52.28 kB / 485.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.2236, allocations: 127.7 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.768e-06/0.2236, allocations: 3.938 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000305/0.2239, allocations: 139.2 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.678e-05/0.224, allocations: 33.7 kB / 485.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.224, allocations: 3.984 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.224, allocations: 7.938 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.702e-05/0.2241, allocations: 19.86 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.2242, allocations: 8.125 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.511e-05/0.2243, allocations: 11.84 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.2243, allocations: 4 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.0001828/0.2245, allocations: 152.4 kB / 486.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.844e-05/0.2246, allocations: 11.91 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002905/0.2249, allocations: 125.5 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2249, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2249, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.2249, allocations: 0 / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002352/0.2251, allocations: 197.5 kB / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2252, allocations: 0 / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.667e-05/0.2252, allocations: 4 kB / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2252, allocations: 0 / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.2252, allocations: 11.94 kB / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2252, allocations: 0 / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2253, allocations: 0 / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.2255, allocations: 127 kB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.612e-05/0.2256, allocations: 92.94 kB / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.2256, allocations: 11.94 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.152e-05/0.2257, allocations: 3.938 kB / 486.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.2257, allocations: 4 kB / 486.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.2258, allocations: 0 / 486.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001559/0.2259, allocations: 131.8 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2259, allocations: 0 / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.2263, allocations: 24 kB / 486.8 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.0002313/0.2266, allocations: 115.3 kB / 486.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002836/0.2269, allocations: 111.3 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.2269, allocations: 0 / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.334e-05/0.227, allocations: 75.33 kB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003736/0.2274, allocations: 8 kB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000895/0.2283, allocations: 271.1 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.2288, allocations: 0.7043 MB / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2289, allocations: 23.41 kB / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.229, allocations: 0 / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of Templates: time 0.005222/0.2342, allocations: 1.377 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