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.0009857/0.0009857, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009897/0.0009898, allocations: 194 kB / 16.53 MB, free: 6.699 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.165/1.165, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1646/0.1646, allocations: 16.75 MB / 307.1 MB, free: 14.86 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.91 kB / 371.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2155, allocations: 53.45 MB / 425.1 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001854/0.2174, allocations: 1.054 MB / 426.1 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005901/0.218, allocations: 402.5 kB / 426.5 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.974e-05/0.218, allocations: 2.656 kB / 426.5 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.2182, allocations: 49.77 kB / 426.6 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.2184, allocations: 39.81 kB / 426.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.2186, allocations: 128.2 kB / 426.7 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.2188, allocations: 309.1 kB / 427 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.284e-05/0.2188, allocations: 33.39 kB / 427.1 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.765e-05/0.2189, allocations: 143.3 kB / 427.2 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.764e-05/0.219, allocations: 50.5 kB / 427.3 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.219, allocations: 9.812 kB / 427.3 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.401e-05/0.2191, allocations: 55.47 kB / 427.3 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.412e-05/0.2192, allocations: 23.2 kB / 427.4 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.319e-05/0.2192, allocations: 36.34 kB / 427.4 MB, free: 38.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.2194, allocations: 114.8 kB / 427.5 MB, free: 38.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.2194, allocations: 0 / 427.5 MB, free: 38.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2194, allocations: 0 / 427.5 MB, free: 38.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2194, allocations: 0 / 427.5 MB, free: 38.64 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.0003003/0.2197, allocations: 435.3 kB / 427.9 MB, free: 38.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.598e-05/0.2197, allocations: 12.64 kB / 427.9 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.127e-05/0.2198, allocations: 15.41 kB / 428 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.2199, allocations: 203.5 kB / 428.2 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.2199, allocations: 6.938 kB / 428.2 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.2199, allocations: 13.69 kB / 428.2 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.2201, allocations: 104.3 kB / 428.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.2201, allocations: 0 / 428.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2201, allocations: 4.188 kB / 428.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2201, allocations: 0 / 428.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.17e-05/0.2202, allocations: 48.69 kB / 428.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.2206, allocations: 0.8136 MB / 429.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.2208, allocations: 52.38 kB / 429.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.829e-05/0.2208, allocations: 25.09 kB / 429.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.2208, allocations: 3.938 kB / 429.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.116e-05/0.2209, allocations: 33.38 kB / 429.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2209, allocations: 0 / 429.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001794/0.221, allocations: 123.7 kB / 429.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.088e-05/0.2211, allocations: 80.34 kB / 429.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.909e-05/0.2212, allocations: 166.8 kB / 429.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.434e-06/0.2212, allocations: 29.7 kB / 429.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.2212, allocations: 112.5 kB / 429.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.057e-05/0.2212, allocations: 21.39 kB / 429.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.476e-05/0.2213, allocations: 34.72 kB / 429.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.693e-05/0.2213, allocations: 323.2 kB / 430.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.494e-05/0.2214, allocations: 18.16 kB / 430.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.948e-05/0.2214, allocations: 63.33 kB / 430.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.762e-05/0.2215, allocations: 128.5 kB / 430.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2215, allocations: 0 / 430.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001403/0.2216, allocations: 142.5 kB / 430.5 MB, free: 36.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2217, allocations: 37.27 kB / 430.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.2217, allocations: 0 / 430.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.2217, allocations: 6.531 kB / 430.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.547e-05/0.2217, allocations: 17.47 kB / 430.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.2217, allocations: 2.5 kB / 430.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.588e-05/0.2218, allocations: 9 kB / 430.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.2218, allocations: 8.219 kB / 430.5 MB, free: 36.02 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 6.111e-05/0.2219, allocations: 154.7 kB / 430.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.2219, allocations: 13.41 kB / 430.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.222, allocations: 122.4 kB / 430.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2221, allocations: 3.438 kB / 430.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2221, allocations: 4.406 kB / 430.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2221, allocations: 0 / 430.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.437e-05/0.2221, allocations: 184 kB / 431 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.2222, allocations: 0 / 431 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.795e-05/0.2222, allocations: 8.062 kB / 431 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.2222, allocations: 0 / 431 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-06/0.2222, allocations: 3.938 kB / 431 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2222, allocations: 7.359 kB / 431 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2222, allocations: 7.484 kB / 431 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.806e-05/0.2223, allocations: 128.6 kB / 431.2 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.2223, allocations: 87.86 kB / 431.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.2224, allocations: 13.53 kB / 431.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.829e-05/0.2224, allocations: 0 / 431.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.2224, allocations: 2.906 kB / 431.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.2224, allocations: 96 / 431.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.731e-05/0.2225, allocations: 131.9 kB / 431.4 MB, free: 35.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2225, allocations: 0 / 431.4 MB, free: 35.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001972/0.2227, allocations: 24.12 kB / 431.4 MB, free: 35.29 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 9.595e-05/0.2228, allocations: 124 kB / 431.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.2229, allocations: 110.4 kB / 431.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.2229, allocations: 0 / 431.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.35e-05/0.223, allocations: 74.83 kB / 431.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001812/0.2231, allocations: 15.42 kB / 431.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003245/0.2235, allocations: 231.8 kB / 432 MB, free: 34.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.59e-05/0.2236, allocations: 0.7066 MB / 432.7 MB, free: 34.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.909e-05/0.2237, allocations: 46.69 kB / 432.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.2237, allocations: 16.73 kB / 432.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2237, allocations: 0 / 432.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of Templates: time 0.002512/0.2262, allocations: 0.8735 MB / 433.6 MB, free: 34.1 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