Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 205.2 kB / 18.78 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.462/1.462, allocations: 230.4 MB / 250 MB, free: 9.086 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 71.83 kB / 367.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2955, allocations: 53.31 MB / 420.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004161/0.2997, allocations: 2.216 MB / 422.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.3013, allocations: 0.7518 MB / 423.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.3014, allocations: 7.938 kB / 423.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.3017, allocations: 43.53 kB / 423.7 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.3019, allocations: 47.58 kB / 423.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.3022, allocations: 99.77 kB / 423.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.3026, allocations: 239.6 kB / 424.1 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.3028, allocations: 87.59 kB / 424.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.303, allocations: 95.56 kB / 424.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.3032, allocations: 115.5 kB / 424.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.3033, allocations: 20 kB / 424.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.3034, allocations: 39.98 kB / 424.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.949e-05/0.3035, allocations: 51.83 kB / 424.5 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.3036, allocations: 103.3 kB / 424.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004012/0.304, allocations: 250.8 kB / 424.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.304, allocations: 0 / 424.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.304, allocations: 0 / 424.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.304, allocations: 0 / 424.8 MB, free: 4.191 MB / 334.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.001103/0.3051, allocations: 0.5648 MB / 425.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.3052, allocations: 8.031 kB / 425.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.3053, allocations: 32.73 kB / 425.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.3057, allocations: 259.9 kB / 425.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.3057, allocations: 12.81 kB / 425.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.398e-05/0.3058, allocations: 20.38 kB / 425.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/0.3063, allocations: 266.9 kB / 426 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3064, allocations: 0 / 426 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3064, allocations: 12 kB / 426 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.693e-05/0.3064, allocations: 8.438 kB / 426 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004508/0.3069, allocations: 193.6 kB / 426.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.3081, allocations: 0.8226 MB / 427 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003775/0.3085, allocations: 168.8 kB / 427.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.3087, allocations: 104.8 kB / 427.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001199/0.3088, allocations: 81.11 kB / 427.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.3089, allocations: 42.81 kB / 427.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 3.337e-06/0.3089, allocations: 3.984 kB / 427.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.00162/0.3105, allocations: 0.7396 MB / 428.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.3105, allocations: 55.41 kB / 428.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.3108, allocations: 213 kB / 428.4 MB, free: 356 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.3108, allocations: 29.7 kB / 428.4 MB, free: 320 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3109, allocations: 144.6 kB / 428.5 MB, free: 172 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.192e-05/0.311, allocations: 91.2 kB / 428.6 MB, free: 80 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-05/0.3111, allocations: 53.69 kB / 428.7 MB, free: 20 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3113, allocations: 338.8 kB / 429 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.3115, allocations: 79.95 kB / 429.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.3117, allocations: 127.3 kB / 429.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/0.3121, allocations: 219.2 kB / 429.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3121, allocations: 0 / 429.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000534/0.3127, allocations: 288 kB / 429.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3127, allocations: 4 kB / 429.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3127, allocations: 0 / 429.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.3127, allocations: 8.062 kB / 429.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.313, allocations: 55.95 kB / 429.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.313, allocations: 3.938 kB / 429.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.3132, allocations: 15.98 kB / 429.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.3132, allocations: 12 kB / 429.8 MB, free: 14.86 MB / 350.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.0001605/0.3133, allocations: 137.8 kB / 429.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/0.3134, allocations: 23.86 kB / 430 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006409/0.314, allocations: 299.1 kB / 430.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.314, allocations: 4 kB / 430.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.314, allocations: 0 / 430.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.3141, allocations: 3.984 kB / 430.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.3151, allocations: 0.6829 MB / 431 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3152, allocations: 11.97 kB / 431 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.3154, allocations: 59.89 kB / 431 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3154, allocations: 0 / 431 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.3155, allocations: 8 kB / 431 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3155, allocations: 3.938 kB / 431 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3155, allocations: 4.062 kB / 431 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/0.3163, allocations: 489.9 kB / 431.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.3164, allocations: 117 kB / 431.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.3164, allocations: 8 kB / 431.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.3166, allocations: 15.92 kB / 431.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.659e-05/0.3166, allocations: 15.98 kB / 431.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3166, allocations: 11.98 kB / 431.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001494/0.3168, allocations: 156.5 kB / 431.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3168, allocations: 4 kB / 431.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.3171, allocations: 40 kB / 431.9 MB, free: 12.68 MB / 350.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.0001946/0.3173, allocations: 115.1 kB / 432 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005228/0.3178, allocations: 212 kB / 432.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3178, allocations: 0 / 432.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.318, allocations: 119.9 kB / 432.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.3184, allocations: 20.44 kB / 432.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3196, allocations: 0.6847 MB / 433 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.32, allocations: 0.7678 MB / 433.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.3201, allocations: 45.91 kB / 433.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/0.3202, allocations: 27.42 kB / 433.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3202, allocations: 0 / 433.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of Templates: time 0.006137/0.3263, allocations: 2.061 MB / 435.9 MB, free: 8.574 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches