Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.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) 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(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002056/0.002056, allocations: 108.4 kB / 17.16 MB, free: 6.082 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.002091/0.002091, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.378/2.378, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001637, allocations: 51.84 kB / 300.6 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1798, allocations: 49.44 MB / 350 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.007423/0.1873, allocations: 2.256 MB / 352.3 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.1896, allocations: 0.6816 MB / 353 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002213/0.1898, allocations: 7.938 kB / 353 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.1901, allocations: 35.66 kB / 353 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.1905, allocations: 35.77 kB / 353.1 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.1909, allocations: 83.86 kB / 353.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.1913, allocations: 223.7 kB / 353.4 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.1917, allocations: 111.6 kB / 353.5 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002338/0.192, allocations: 87.56 kB / 353.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.1922, allocations: 103.5 kB / 353.7 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.1923, allocations: 15.98 kB / 353.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.1924, allocations: 19.98 kB / 353.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.1926, allocations: 43.84 kB / 353.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.1928, allocations: 107.3 kB / 353.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004777/0.1933, allocations: 163.9 kB / 354 MB, free: 0.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1934, allocations: 3.938 kB / 354 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1934, allocations: 0 / 354 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.1934, allocations: 0 / 354 MB, free: 0.6641 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001379/0.1948, allocations: 0.5457 MB / 354.5 MB, free: 72 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.1948, allocations: 12.02 kB / 354.6 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.195, allocations: 32.56 kB / 354.6 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.1955, allocations: 244.4 kB / 354.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.1955, allocations: 16.81 kB / 354.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.106e-05/0.1956, allocations: 28.12 kB / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007933/0.1964, allocations: 262.6 kB / 355.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.1965, allocations: 0 / 355.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.1965, allocations: 11.94 kB / 355.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-05/0.1966, allocations: 12.44 kB / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009123/0.1975, allocations: 193.5 kB / 355.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.1997, allocations: 0.8263 MB / 356.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006857/0.2004, allocations: 182.5 kB / 356.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.2007, allocations: 109.2 kB / 356.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/0.2009, allocations: 92.98 kB / 356.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.201, allocations: 34.56 kB / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.935e-06/0.201, allocations: 0 / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00245/0.2035, allocations: 0.7233 MB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.2035, allocations: 55.41 kB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003892/0.2039, allocations: 213 kB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.204, allocations: 25.7 kB / 357.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.2042, allocations: 152.4 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.2043, allocations: 86.8 kB / 357.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.2045, allocations: 49.69 kB / 357.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.2047, allocations: 338.8 kB / 358.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.2051, allocations: 83.95 kB / 358.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.2054, allocations: 119.4 kB / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006835/0.2061, allocations: 213 kB / 358.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2061, allocations: 3.938 kB / 358.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009296/0.2071, allocations: 279 kB / 358.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/0.2071, allocations: 10.5 kB / 358.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.2072, allocations: 4.047 kB / 358.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.953e-05/0.2072, allocations: 8 kB / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.2077, allocations: 63.89 kB / 359 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.2077, allocations: 4.062 kB / 359 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.2079, allocations: 15.98 kB / 359 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.208, allocations: 11.94 kB / 359 MB, free: 11.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.0002253/0.2082, allocations: 145.7 kB / 359.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.2083, allocations: 19.72 kB / 359.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.2095, allocations: 295.2 kB / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.2095, allocations: 4 kB / 359.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.2095, allocations: 0 / 359.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2095, allocations: 3.984 kB / 359.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.2115, allocations: 0.6747 MB / 360.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2115, allocations: 4.031 kB / 360.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004795/0.212, allocations: 59.89 kB / 360.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.212, allocations: 0 / 360.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.521e-05/0.212, allocations: 11.94 kB / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.2121, allocations: 0 / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.2121, allocations: 0 / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.2134, allocations: 493.2 kB / 360.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.2136, allocations: 116.9 kB / 360.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.863e-05/0.2137, allocations: 11.94 kB / 360.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.2139, allocations: 11.98 kB / 360.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.714e-05/0.2141, allocations: 15.97 kB / 360.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.2141, allocations: 12 kB / 360.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.2144, allocations: 152.5 kB / 361 MB, free: 9.223 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.2144, allocations: 4 kB / 361 MB, free: 9.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005701/0.215, allocations: 48 kB / 361.1 MB, free: 9.172 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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.0002593/0.2152, allocations: 119 kB / 361.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008265/0.2161, allocations: 216.5 kB / 361.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2161, allocations: 3.938 kB / 361.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003949/0.2165, allocations: 128 kB / 361.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.2171, allocations: 24.38 kB / 361.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.2193, allocations: 0.8144 MB / 362.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007114/0.22, allocations: 0.7642 MB / 363.1 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.2202, allocations: 27.44 kB / 363.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2202, allocations: 0 / 363.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of Templates: time 0.008359/0.2286, allocations: 2.837 MB / 366 MB, free: 4.18 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches