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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009646/0.0009647, allocations: 105.5 kB / 296.7 MB, free: 6.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009198/0.0009201, allocations: 51.92 kB / 356.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2747, allocations: 50.46 MB / 407 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003315/0.2781, allocations: 2.257 MB / 409.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.2794, allocations: 0.733 MB / 410 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.2795, allocations: 7.938 kB / 410 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.2797, allocations: 39.59 kB / 410.1 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.2799, allocations: 31.78 kB / 410.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.2801, allocations: 85.23 kB / 410.2 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.2803, allocations: 227.6 kB / 410.4 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.2805, allocations: 111.6 kB / 410.5 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.2807, allocations: 95.56 kB / 410.6 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.2808, allocations: 103.5 kB / 410.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.2809, allocations: 12 kB / 410.7 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.121e-05/0.281, allocations: 24 kB / 410.8 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.338e-05/0.281, allocations: 51.77 kB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.67e-05/0.2811, allocations: 107.3 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.2813, allocations: 224.7 kB / 411.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2813, allocations: 0 / 411.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2814, allocations: 4 kB / 411.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.627e-06/0.2814, allocations: 0 / 411.1 MB, free: 23.74 MB / 298.7 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.0008752/0.2823, allocations: 0.5457 MB / 411.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.2823, allocations: 8.875 kB / 411.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.2824, allocations: 32.56 kB / 411.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.2827, allocations: 248.5 kB / 412 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.2828, allocations: 16.81 kB / 412 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.2828, allocations: 28.31 kB / 412 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.2832, allocations: 255 kB / 412.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.2832, allocations: 0 / 412.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.2833, allocations: 8 kB / 412.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.2833, allocations: 12.42 kB / 412.3 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003942/0.2837, allocations: 201.5 kB / 412.5 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009657/0.2847, allocations: 0.83 MB / 413.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.285, allocations: 187 kB / 413.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.2852, allocations: 104.8 kB / 413.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.761e-05/0.2853, allocations: 89.08 kB / 413.7 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.2853, allocations: 42.88 kB / 413.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.2853, allocations: 0 / 413.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001347/0.2867, allocations: 0.7242 MB / 414.4 MB, free: 20.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.2867, allocations: 55.41 kB / 414.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.2869, allocations: 213 kB / 414.7 MB, free: 19.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2869, allocations: 29.7 kB / 414.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.287, allocations: 148.4 kB / 414.9 MB, free: 19.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.2871, allocations: 82.75 kB / 415 MB, free: 19.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/0.2871, allocations: 45.7 kB / 415 MB, free: 19.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.2872, allocations: 342.8 kB / 415.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.2874, allocations: 83.94 kB / 415.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.2876, allocations: 119.3 kB / 415.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003478/0.2879, allocations: 229.8 kB / 415.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2879, allocations: 0 / 415.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004471/0.2884, allocations: 269.2 kB / 416 MB, free: 18.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.2884, allocations: 10.81 kB / 416 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2884, allocations: 0 / 416 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.2885, allocations: 4 kB / 416 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.2887, allocations: 63.95 kB / 416.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.2887, allocations: 0 / 416.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.2889, allocations: 19.97 kB / 416.1 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2889, allocations: 12 kB / 416.1 MB, free: 18.41 MB / 298.7 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.0001105/0.289, allocations: 143.2 kB / 416.3 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/0.2891, allocations: 19.72 kB / 416.3 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005536/0.2896, allocations: 307.1 kB / 416.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2896, allocations: 4 kB / 416.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2897, allocations: 0 / 416.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2897, allocations: 0 / 416.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000902/0.2906, allocations: 0.6941 MB / 417.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2906, allocations: 0 / 417.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.2908, allocations: 55.97 kB / 417.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.2909, allocations: 0 / 417.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.2909, allocations: 8 kB / 417.4 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.2909, allocations: 8 kB / 417.4 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2909, allocations: 3.938 kB / 417.4 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003498/0.2944, allocations: 2.522 MB / 419.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.2946, allocations: 116.8 kB / 420 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.2946, allocations: 11.98 kB / 420 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.2948, allocations: 8 kB / 420 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/0.2949, allocations: 19.97 kB / 420 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.2949, allocations: 8 kB / 420 MB, free: 14.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001259/0.295, allocations: 156.5 kB / 420.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.295, allocations: 0 / 420.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004358/0.2955, allocations: 72 kB / 420.3 MB, free: 14.04 MB / 298.7 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.0002553/0.2957, allocations: 103.2 kB / 420.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004638/0.2962, allocations: 222.8 kB / 420.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2962, allocations: 0 / 420.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.2964, allocations: 123.8 kB / 420.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.2968, allocations: 32.55 kB / 420.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.2982, allocations: 1.006 MB / 421.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.2984, allocations: 0.7719 MB / 422.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.2986, allocations: 58.89 kB / 422.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.551e-05/0.2987, allocations: 31.42 kB / 422.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2987, allocations: 0 / 422.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of Templates: time 0.006159/0.3049, allocations: 2.513 MB / 425.1 MB, free: 9.113 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches