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.0014/0.0014, allocations: 116.2 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.268, allocations: 50.55 MB / 409.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003344/0.2714, allocations: 2.198 MB / 412.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2727, allocations: 0.7516 MB / 412.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2728, allocations: 3.938 kB / 412.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.273, allocations: 47.52 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.2732, allocations: 43.59 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003008/0.2735, allocations: 107.8 kB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.2738, allocations: 235.7 kB / 413.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.2741, allocations: 119.6 kB / 413.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.2743, allocations: 99.56 kB / 413.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2745, allocations: 103.5 kB / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.2745, allocations: 23.94 kB / 413.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.2746, allocations: 35.98 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.7e-05/0.2747, allocations: 59.83 kB / 413.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.152e-05/0.2748, allocations: 103.3 kB / 413.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.2751, allocations: 246.7 kB / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2752, allocations: 4 kB / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2752, allocations: 0 / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2752, allocations: 0 / 414.1 MB, free: 13.36 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.0008751/0.2761, allocations: 0.5432 MB / 414.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2761, allocations: 12.03 kB / 414.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.2762, allocations: 36.56 kB / 414.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.2766, allocations: 259.7 kB / 414.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.2766, allocations: 16.81 kB / 414.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.2766, allocations: 24.38 kB / 415 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.2771, allocations: 255 kB / 415.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2772, allocations: 4 kB / 415.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/0.2772, allocations: 8 kB / 415.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.2772, allocations: 16.44 kB / 415.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004359/0.2777, allocations: 193.5 kB / 415.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.2788, allocations: 0.8223 MB / 416.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.2792, allocations: 178.5 kB / 416.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.2794, allocations: 112.2 kB / 416.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.2795, allocations: 81.11 kB / 416.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.2796, allocations: 38.88 kB / 416.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.2796, allocations: 0 / 416.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001455/0.281, allocations: 0.7252 MB / 417.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.2811, allocations: 51.41 kB / 417.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.2813, allocations: 228.8 kB / 417.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.2813, allocations: 29.7 kB / 417.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.2815, allocations: 148.4 kB / 417.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.02e-05/0.2816, allocations: 82.8 kB / 417.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-05/0.2816, allocations: 49.7 kB / 418 MB, free: 9.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.2818, allocations: 330.8 kB / 418.3 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.282, allocations: 87.94 kB / 418.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.2822, allocations: 131.4 kB / 418.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.2826, allocations: 214.8 kB / 418.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2826, allocations: 0 / 418.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004997/0.2831, allocations: 277.2 kB / 419 MB, free: 8.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2831, allocations: 7.125 kB / 419 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2832, allocations: 4 kB / 419 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.2832, allocations: 0 / 419 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.2835, allocations: 63.89 kB / 419.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.2835, allocations: 7.938 kB / 419.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.2836, allocations: 15.98 kB / 419.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.2836, allocations: 8.062 kB / 419.1 MB, free: 8.039 MB / 334.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.0001401/0.2838, allocations: 149.6 kB / 419.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.2838, allocations: 23.72 kB / 419.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005781/0.2844, allocations: 299.1 kB / 419.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2844, allocations: 4 kB / 419.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.2844, allocations: 4.062 kB / 419.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.2845, allocations: 7.984 kB / 419.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.2855, allocations: 0.6868 MB / 420.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.2855, allocations: 0 / 420.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.2858, allocations: 51.91 kB / 420.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.2858, allocations: 4 kB / 420.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.2858, allocations: 7.984 kB / 420.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.2858, allocations: 11.97 kB / 420.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2858, allocations: 0 / 420.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007695/0.2866, allocations: 477.8 kB / 420.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.847e-05/0.2867, allocations: 116.9 kB / 420.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.2867, allocations: 8 kB / 420.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.2869, allocations: 19.92 kB / 420.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.287, allocations: 15.98 kB / 420.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.287, allocations: 11.98 kB / 421 MB, free: 6.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.2871, allocations: 156.4 kB / 421.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2871, allocations: 0 / 421.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.2875, allocations: 48 kB / 421.2 MB, free: 5.852 MB / 334.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.0001617/0.2876, allocations: 103.2 kB / 421.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.2881, allocations: 227.9 kB / 421.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2882, allocations: 4 kB / 421.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.2884, allocations: 119.9 kB / 421.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.2888, allocations: 20.44 kB / 421.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.2899, allocations: 0.7108 MB / 422.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.2903, allocations: 0.76 MB / 423.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.224e-05/0.2903, allocations: 27.44 kB / 423.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2903, allocations: 7.938 kB / 423.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of Templates: time 0.00484/0.2952, allocations: 2.851 MB / 426 MB, free: 0.9531 MB / 334.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