Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000926/0.0009258, allocations: 92.2 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 8 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2644, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3693, allocations: 78.47 MB / 480 MB, free: 2.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.3696, allocations: 67.97 kB / 480 MB, free: 1.953 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01307/0.3827, allocations: 4.426 MB / 484.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3827, allocations: 0 / 484.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.3828, allocations: 8 kB / 484.5 MB, free: 13.51 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.0007873/0.3836, allocations: 0.5182 MB / 485 MB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3836, allocations: 8.031 kB / 485 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/0.3837, allocations: 27.72 kB / 485 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.384, allocations: 262.4 kB / 485.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.3841, allocations: 16.44 kB / 485.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/0.3841, allocations: 20 kB / 485.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.3846, allocations: 262.7 kB / 485.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3847, allocations: 0 / 485.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.3847, allocations: 4 kB / 485.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.3847, allocations: 16.44 kB / 485.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004363/0.3852, allocations: 201.5 kB / 485.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.3865, allocations: 0.8342 MB / 486.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003712/0.3869, allocations: 190.7 kB / 486.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.387, allocations: 85.28 kB / 486.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.3871, allocations: 46.69 kB / 486.9 MB, free: 10.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.522e-06/0.3871, allocations: 0 / 486.9 MB, free: 10.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.000732/0.3878, allocations: 315.4 kB / 487.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.3878, allocations: 55.41 kB / 487.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.388, allocations: 192.1 kB / 487.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.3881, allocations: 33.7 kB / 487.5 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.821e-05/0.3882, allocations: 144.3 kB / 487.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/0.3882, allocations: 82.89 kB / 487.7 MB, free: 10 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.192e-05/0.3883, allocations: 4 kB / 487.7 MB, free: 9.996 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3884, allocations: 330.8 kB / 488.1 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.3886, allocations: 92.41 kB / 488.2 MB, free: 9.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.3888, allocations: 114 kB / 488.3 MB, free: 9.449 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.3891, allocations: 110.9 kB / 488.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3891, allocations: 0 / 488.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005067/0.3896, allocations: 277.2 kB / 488.6 MB, free: 9.066 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3896, allocations: 8 kB / 488.7 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3896, allocations: 0 / 488.7 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.3896, allocations: 3.953 kB / 488.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.3899, allocations: 63.83 kB / 488.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.39, allocations: 4 kB / 488.7 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.3901, allocations: 32.67 kB / 488.8 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.3902, allocations: 11.98 kB / 488.8 MB, free: 8.945 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.0001321/0.3903, allocations: 141.8 kB / 488.9 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/0.3903, allocations: 19.72 kB / 488.9 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006019/0.391, allocations: 287.8 kB / 489.2 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.391, allocations: 4 kB / 489.2 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.391, allocations: 3.953 kB / 489.2 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.391, allocations: 3.984 kB / 489.2 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.392, allocations: 0.655 MB / 489.9 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.392, allocations: 3.984 kB / 489.9 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.3923, allocations: 51.97 kB / 489.9 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.3923, allocations: 4 kB / 489.9 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.3923, allocations: 11.89 kB / 489.9 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3924, allocations: 4 kB / 489.9 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3924, allocations: 0 / 489.9 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007839/0.3931, allocations: 480.2 kB / 490.4 MB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.3933, allocations: 120.8 kB / 490.5 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.3933, allocations: 8 kB / 490.5 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.3935, allocations: 23.94 kB / 490.6 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.3935, allocations: 11.98 kB / 490.6 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3936, allocations: 11.98 kB / 490.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001221/0.3937, allocations: 152.5 kB / 490.7 MB, free: 6.871 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3937, allocations: 3.938 kB / 490.7 MB, free: 6.867 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003171/0.394, allocations: 59.84 kB / 490.8 MB, free: 6.809 MB / 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.0002071/0.3942, allocations: 119.1 kB / 490.9 MB, free: 6.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000483/0.3947, allocations: 216 kB / 491.1 MB, free: 6.473 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3948, allocations: 0 / 491.1 MB, free: 6.473 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.395, allocations: 131.8 kB / 491.3 MB, free: 6.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.3953, allocations: 12.8 kB / 491.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.3965, allocations: 0.8098 MB / 492.1 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.3968, allocations: 0.7716 MB / 492.8 MB, free: 4.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.397, allocations: 41.92 kB / 492.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.838e-05/0.397, allocations: 27.42 kB / 492.9 MB, free: 4.625 MB / 362.7 MB Notification: Performance of SimCode: time 1.904e-06/0.3971, allocations: 0 / 492.9 MB, free: 4.625 MB / 362.7 MB Notification: Performance of Templates: time 0.004807/0.4019, allocations: 1.725 MB / 494.6 MB, free: 2.906 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches