Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 107.6 kB / 21.2 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 204.8 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.47e-05, allocations: 10.16 kB / 378.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003313/0.003338, allocations: 2.102 MB / 381 MB, free: 412 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1757/0.179, allocations: 0.7116 MB / 381.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/0.1792, allocations: 9.25 kB / 381.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.1794, allocations: 46.64 kB / 381.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.1796, allocations: 45.53 kB / 381.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.1799, allocations: 105.9 kB / 381.9 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.1802, allocations: 271.2 kB / 382.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.1804, allocations: 93.94 kB / 382.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.1806, allocations: 104.9 kB / 382.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.1807, allocations: 103 kB / 382.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.1808, allocations: 20.84 kB / 382.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.85e-05/0.1809, allocations: 31.17 kB / 382.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002735/0.1811, allocations: 448.4 kB / 383 MB, free: 12.68 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001327/0.1813, allocations: 298.1 kB / 383.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1813, allocations: 15.66 kB / 383.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.589e-05/0.1814, allocations: 14.81 kB / 383.3 MB, free: 12.49 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 (49) * Number of variables: 53 (46) Notification: Performance of [SIM] Bindings: time 0.001028/0.1824, allocations: 1.091 MB / 384.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0002455/0.1826, allocations: 171.5 kB / 384.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.0006482/0.1833, allocations: 0.6197 MB / 385.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0002041/0.1835, allocations: 158.4 kB / 385.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.001559/0.185, allocations: 1.092 MB / 386.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0001446/0.1852, allocations: 125.4 kB / 386.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 7.852e-05/0.1853, allocations: 89.72 kB / 386.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.0002102/0.1855, allocations: 172.9 kB / 386.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of [SIM] Events: time 8.442e-05/0.1856, allocations: 50.55 kB / 386.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.000263/0.1858, allocations: 209.5 kB / 387.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.0006872/0.1865, allocations: 491.2 kB / 387.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0003134/0.1868, allocations: 375.1 kB / 387.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.0004705/0.1873, allocations: 377.2 kB / 388.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.0006241/0.1879, allocations: 0.682 MB / 389 MB, free: 9.617 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 3.261e-05/0.1879, allocations: 21.44 kB / 389 MB, free: 9.602 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 8.632e-05/0.188, allocations: 99.89 kB / 389.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.001153/0.1892, allocations: 0.8075 MB / 389.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 2.262e-05/0.1892, allocations: 23.22 kB / 389.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 1.302e-06/0.1892, allocations: 1.219 kB / 389.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 4.388e-06/0.1892, allocations: 0 / 389.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 1.099e-05/0.1892, allocations: 25.62 kB / 389.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 7.554e-06/0.1892, allocations: 1.281 kB / 389.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.0004136/0.1896, allocations: 275.6 kB / 390.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 0.0003056/0.1899, allocations: 350.6 kB / 390.6 MB, free: 8.977 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 0 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 5 (5) {cosB.phi, cosBminus.phi, sinA.phi, sinAminus.phi, rotator.angle} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 2 (2) {$TEV_1, $TEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 35 (scalar:34, array:1, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 52 (scalar:51, array:1, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 4.262e-05/0.19, allocations: 47.41 kB / 390.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of SimCode: time 0.001204/0.1912, allocations: 0.9457 MB / 391.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of Templates: time 0.006204/0.1974, allocations: 2.065 MB / 393.6 MB, free: 8.223 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,integrator.y,der1.y,cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi Variables in the result:cosB.amplitude_constant.k,cosB.amplitude_constant.y,cosB.amplitude_internal,cosB.constantAmplitude,cosB.constantFrequency,cosB.offset,cosB.phi,cosB.useConstantAmplitude,cosB.useConstantFrequency,cosBminus.amplitude_constant.k,cosBminus.amplitude_constant.y,cosBminus.amplitude_internal,cosBminus.constantAmplitude,cosBminus.constantFrequency,cosBminus.offset,cosBminus.phi,cosBminus.useConstantAmplitude,cosBminus.useConstantFrequency,der1.y,integrator.initType,integrator.k,integrator.y,integrator.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,rotator.angle,rotator.n,sinA.amplitude_constant.k,sinA.amplitude_constant.y,sinA.amplitude_internal,sinA.constantAmplitude,sinA.constantFrequency,sinA.offset,sinA.phi,sinA.useConstantAmplitude,sinA.useConstantFrequency,sinAminus.amplitude_constant.k,sinAminus.amplitude_constant.y,sinAminus.amplitude_internal,sinAminus.constantAmplitude,sinAminus.constantFrequency,sinAminus.offset,sinAminus.phi,sinAminus.useConstantAmplitude,sinAminus.useConstantFrequency,time,toPolar.n,wrapAngle.positiveRange [Calling sys.exit(0), Time elapsed: 16.91469692485407]