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.0009802/0.0009803, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.148/1.148, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008377/0.0008379, allocations: 99.77 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002081/0.0002081, allocations: 8 kB / 357.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1684, allocations: 51.48 MB / 409.4 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08407/0.2525, allocations: 79.29 MB / 488.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/0.2527, allocations: 63.98 kB / 488.8 MB, free: 11.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0124/0.2651, allocations: 4.536 MB / 493.3 MB, free: 6.754 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2651, allocations: 0 / 493.3 MB, free: 6.754 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.2652, allocations: 8 kB / 493.3 MB, free: 6.746 MB / 362.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.0006805/0.2659, allocations: 0.5337 MB / 493.8 MB, free: 6.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2659, allocations: 12.03 kB / 493.8 MB, free: 6.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.266, allocations: 31.67 kB / 493.9 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.2663, allocations: 250.5 kB / 494.1 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.2664, allocations: 16.44 kB / 494.1 MB, free: 5.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.2664, allocations: 16 kB / 494.1 MB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.2669, allocations: 266.6 kB / 494.4 MB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.2669, allocations: 4 kB / 494.4 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.2669, allocations: 4 kB / 494.4 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.2669, allocations: 16.39 kB / 494.4 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.2674, allocations: 205.5 kB / 494.6 MB, free: 5.305 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.2685, allocations: 0.8265 MB / 495.5 MB, free: 4.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003244/0.2689, allocations: 191.9 kB / 495.6 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.513e-05/0.269, allocations: 89.27 kB / 495.7 MB, free: 4.117 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.269, allocations: 38.75 kB / 495.8 MB, free: 4.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.269, allocations: 0 / 495.8 MB, free: 4.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006551/0.2697, allocations: 315.6 kB / 496.1 MB, free: 3.762 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.2697, allocations: 59.41 kB / 496.1 MB, free: 3.691 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2699, allocations: 188.2 kB / 496.3 MB, free: 3.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.2699, allocations: 33.64 kB / 496.4 MB, free: 3.461 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.463e-05/0.27, allocations: 156.2 kB / 496.5 MB, free: 3.305 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.27, allocations: 74.92 kB / 496.6 MB, free: 3.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.2701, allocations: 7.938 kB / 496.6 MB, free: 3.223 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.2702, allocations: 330.8 kB / 496.9 MB, free: 2.891 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2704, allocations: 92.41 kB / 497 MB, free: 2.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.2706, allocations: 117.2 kB / 497.1 MB, free: 2.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.2708, allocations: 114 kB / 497.2 MB, free: 2.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2708, allocations: 0 / 497.2 MB, free: 2.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004713/0.2713, allocations: 265.2 kB / 497.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2713, allocations: 12.06 kB / 497.5 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2713, allocations: 0 / 497.5 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.2713, allocations: 0 / 497.5 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.2716, allocations: 63.89 kB / 497.6 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.2716, allocations: 4 kB / 497.6 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.2718, allocations: 31.77 kB / 497.6 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.2718, allocations: 11.97 kB / 497.6 MB, free: 2.176 MB / 362.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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.2719, allocations: 145.8 kB / 497.7 MB, free: 2.023 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.498e-05/0.272, allocations: 23.67 kB / 497.8 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000535/0.2725, allocations: 287.7 kB / 498.1 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.2725, allocations: 8 kB / 498.1 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.2725, allocations: 0 / 498.1 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2725, allocations: 3.984 kB / 498.1 MB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008719/0.2734, allocations: 0.6584 MB / 498.7 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2734, allocations: 4 kB / 498.7 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/0.2737, allocations: 55.91 kB / 498.8 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2737, allocations: 4 kB / 498.8 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.2737, allocations: 4 kB / 498.8 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.2737, allocations: 4 kB / 498.8 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2737, allocations: 0 / 498.8 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.2744, allocations: 482.9 kB / 499.3 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.769e-05/0.2745, allocations: 120.8 kB / 499.4 MB, free: 296 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.2746, allocations: 8 kB / 499.4 MB, free: 288 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.2747, allocations: 15.98 kB / 499.4 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.2748, allocations: 15.92 kB / 499.4 MB, free: 256 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.2748, allocations: 15.97 kB / 499.4 MB, free: 240 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.2749, allocations: 152.5 kB / 499.6 MB, free: 84 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2749, allocations: 0 / 499.6 MB, free: 84 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002955/0.2753, allocations: 63.84 kB / 499.6 MB, free: 20 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001831/0.2754, allocations: 123.1 kB / 499.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004331/0.2759, allocations: 214.6 kB / 500 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2759, allocations: 0 / 500 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000209/0.2761, allocations: 132.3 kB / 0.4884 GB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.2763, allocations: 16.75 kB / 0.4884 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.2774, allocations: 0.812 MB / 0.4892 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.2776, allocations: 0.7677 MB / 0.4899 GB, free: 13.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.2778, allocations: 45.89 kB / 0.49 GB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.571e-05/0.2778, allocations: 23.44 kB / 0.49 GB, free: 13.83 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2778, allocations: 0 / 0.49 GB, free: 13.83 MB / 378.7 MB Notification: Performance of Templates: time 0.004175/0.282, allocations: 1.708 MB / 0.4917 GB, free: 12.12 MB / 378.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/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