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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 86.09 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 157.1 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 177 MB / 204.1 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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=20000,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=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.377e-05, allocations: 2.281 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003416/0.00344, allocations: 2.112 MB / 327.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.005006, allocations: 0.7138 MB / 327.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.005206, allocations: 7.656 kB / 327.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.005397, allocations: 50.16 kB / 327.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.005621, allocations: 47.48 kB / 327.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.005968, allocations: 100.6 kB / 328 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.00631, allocations: 239 kB / 328.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.006578, allocations: 86.53 kB / 328.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/0.006868, allocations: 139.1 kB / 328.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.007021, allocations: 81.45 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.273e-05/0.007063, allocations: 18.44 kB / 328.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.007163, allocations: 32.61 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.165e-05/0.007255, allocations: 58.94 kB / 328.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.611e-05/0.007351, allocations: 69.08 kB / 328.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.007747, allocations: 251.5 kB / 329 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.00775, allocations: 1.969 kB / 329 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.00775, allocations: 0 / 329 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.007757, allocations: 4 kB / 329 MB, free: 14.02 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 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009251/0.008682, allocations: 478 kB / 329.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.008716, allocations: 14.39 kB / 329.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.008864, allocations: 33.12 kB / 329.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.009179, allocations: 208.1 kB / 329.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.009207, allocations: 14.78 kB / 329.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.009253, allocations: 21.84 kB / 329.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.009796, allocations: 262.4 kB / 330 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.009811, allocations: 4.125 kB / 330 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.789e-05/0.009839, allocations: 11.48 kB / 330 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.009877, allocations: 18.75 kB / 330 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.01038, allocations: 190.9 kB / 330.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.01158, allocations: 0.7038 MB / 330.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.01197, allocations: 165.5 kB / 331.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.0122, allocations: 99.33 kB / 331.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-05/0.01227, allocations: 9.641 kB / 331.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.0123, allocations: 36.25 kB / 331.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.0123, allocations: 0 / 331.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001512/0.01381, allocations: 0.6527 MB / 331.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.01386, allocations: 58.47 kB / 331.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.01406, allocations: 196.2 kB / 332.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.01409, allocations: 30.83 kB / 332.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.01422, allocations: 147.8 kB / 332.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.731e-05/0.0143, allocations: 89.42 kB / 332.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-05/0.01439, allocations: 48.33 kB / 332.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.01455, allocations: 336.4 kB / 332.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.01477, allocations: 80.95 kB / 332.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.015, allocations: 119.7 kB / 333 MB, free: 11.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004519/0.01545, allocations: 214.3 kB / 333.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.01545, allocations: 3.938 kB / 333.2 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005585/0.01601, allocations: 277.8 kB / 333.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.01603, allocations: 5.594 kB / 333.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.01603, allocations: 1.094 kB / 333.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.01605, allocations: 2.281 kB / 333.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.01633, allocations: 64.45 kB / 333.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.01634, allocations: 5.109 kB / 333.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.0165, allocations: 16.58 kB / 333.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.01653, allocations: 10.84 kB / 333.6 MB, free: 10.82 MB / 302.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.0001762/0.0167, allocations: 146.5 kB / 333.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.641e-05/0.01676, allocations: 25.61 kB / 333.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006389/0.0174, allocations: 291.8 kB / 334 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.0174, allocations: 2.75 kB / 334 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.01741, allocations: 0 / 334 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.01741, allocations: 5.297 kB / 334 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.01849, allocations: 0.592 MB / 334.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.01849, allocations: 5.344 kB / 334.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.01878, allocations: 56.84 kB / 334.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.01878, allocations: 2.75 kB / 334.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.01881, allocations: 9.141 kB / 334.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.01881, allocations: 2.531 kB / 334.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.01881, allocations: 0 / 334.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008661/0.01968, allocations: 484.8 kB / 335.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.379e-05/0.01976, allocations: 48.03 kB / 335.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.01981, allocations: 6.219 kB / 335.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.01997, allocations: 13.36 kB / 335.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.02003, allocations: 14.56 kB / 335.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.02004, allocations: 10.66 kB / 335.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.02018, allocations: 144.1 kB / 335.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02018, allocations: 0 / 335.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.02049, allocations: 50.69 kB / 335.4 MB, free: 9.547 MB / 302.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.0001587/0.02064, allocations: 102.5 kB / 335.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005226/0.02117, allocations: 217.5 kB / 335.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.02117, allocations: 1.281 kB / 335.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.02152, allocations: 108.3 kB / 335.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.02204, allocations: 26.58 kB / 335.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.0236, allocations: 0.5957 MB / 336.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.02381, allocations: 158.9 kB / 336.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001794/0.02399, allocations: 48.64 kB / 336.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.0241, allocations: 22.41 kB / 336.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.0241, allocations: 0 / 336.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of Templates: time 0.00641/0.03051, allocations: 1.84 MB / 338.5 MB, free: 7.219 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.547122046351433]