Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001612/0.001612, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002083/0.002083, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.827/2.827, allocations: 227.4 MB / 247.1 MB, free: 10.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002327, allocations: 57.94 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1881, allocations: 50.53 MB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.006244/0.1944, allocations: 2.267 MB / 359.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1969, allocations: 0.7284 MB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.1972, allocations: 7.938 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.1975, allocations: 39.66 kB / 360.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003295/0.1979, allocations: 35.77 kB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005949/0.1985, allocations: 87.86 kB / 360.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004952/0.1991, allocations: 235.6 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003889/0.1995, allocations: 119.6 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003369/0.1998, allocations: 103.6 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.2001, allocations: 107.5 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.2002, allocations: 16 kB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.2004, allocations: 35.98 kB / 361.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.2005, allocations: 51.83 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.2007, allocations: 111.3 kB / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004305/0.2011, allocations: 168 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2012, allocations: 0 / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.613e-06/0.2012, allocations: 0 / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.2012, allocations: 3.938 kB / 361.7 MB, free: 10.3 MB / 302.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.001432/0.2027, allocations: 0.5521 MB / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.53e-05/0.2028, allocations: 12.03 kB / 362.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.203, allocations: 36.5 kB / 362.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.2035, allocations: 259.5 kB / 362.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.093e-05/0.2036, allocations: 12.81 kB / 362.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-05/0.2037, allocations: 20.38 kB / 362.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000866/0.2045, allocations: 266.9 kB / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.2046, allocations: 0 / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.2047, allocations: 12 kB / 362.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.663e-05/0.2047, allocations: 8.438 kB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008429/0.2056, allocations: 189.6 kB / 363.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.2078, allocations: 0.8262 MB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000688/0.2085, allocations: 179.2 kB / 364.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003917/0.2089, allocations: 108.8 kB / 364.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001755/0.2091, allocations: 89.09 kB / 364.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.2092, allocations: 42.81 kB / 364.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.226e-06/0.2092, allocations: 0 / 364.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.002821/0.212, allocations: 0.7223 MB / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.2121, allocations: 55.39 kB / 365.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000363/0.2125, allocations: 213 kB / 365.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.2126, allocations: 29.7 kB / 365.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.2127, allocations: 152.3 kB / 365.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.2129, allocations: 86.8 kB / 365.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.213, allocations: 45.7 kB / 365.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.2132, allocations: 330.8 kB / 365.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.2136, allocations: 91.94 kB / 366 MB, free: 5.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.2141, allocations: 119.4 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008316/0.215, allocations: 226 kB / 366.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.215, allocations: 0 / 366.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001012/0.216, allocations: 269.2 kB / 366.6 MB, free: 5.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.2161, allocations: 7.125 kB / 366.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.2161, allocations: 7.938 kB / 366.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.754e-05/0.2162, allocations: 0 / 366.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.2167, allocations: 59.95 kB / 366.7 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.2167, allocations: 8.062 kB / 366.7 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.217, allocations: 23.91 kB / 366.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.2171, allocations: 4 kB / 366.7 MB, free: 4.973 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.0002524/0.2173, allocations: 149.7 kB / 366.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.348e-05/0.2174, allocations: 19.72 kB / 366.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.2186, allocations: 303.1 kB / 367.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2186, allocations: 0 / 367.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.2186, allocations: 0 / 367.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.2186, allocations: 4 kB / 367.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.2206, allocations: 0.6843 MB / 367.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.2207, allocations: 7.969 kB / 367.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005976/0.2213, allocations: 51.91 kB / 367.9 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.2213, allocations: 4 kB / 367.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/0.2214, allocations: 8 kB / 367.9 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-05/0.2214, allocations: 7.922 kB / 367.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2214, allocations: 0 / 367.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.223, allocations: 493.5 kB / 368.4 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.2232, allocations: 112.9 kB / 368.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.2233, allocations: 7.984 kB / 368.5 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003125/0.2236, allocations: 15.94 kB / 368.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.2237, allocations: 15.97 kB / 368.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/0.2238, allocations: 11.94 kB / 368.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.224, allocations: 156.5 kB / 368.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2241, allocations: 4 kB / 368.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006027/0.2247, allocations: 48 kB / 368.8 MB, free: 2.789 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.0002572/0.225, allocations: 107.2 kB / 368.9 MB, free: 2.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.2261, allocations: 255.7 kB / 369.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.2261, allocations: 0 / 369.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000472/0.2266, allocations: 120 kB / 369.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006071/0.2272, allocations: 24.56 kB / 369.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.2294, allocations: 0.812 MB / 370.1 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.23, allocations: 0.7639 MB / 370.9 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.2301, allocations: 23.44 kB / 370.9 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2302, allocations: 4 kB / 370.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of Templates: time 0.2752/0.5054, allocations: 2.815 MB / 373.7 MB, free: 19.47 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches