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.001561/0.001561, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.00164/0.00164, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.564/1.564, allocations: 230.3 MB / 257.9 MB, free: 8.227 MB / 206.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 0.001969/0.001969, allocations: 67.89 kB / 378.8 MB, free: 2.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2979, allocations: 53.36 MB / 432.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003748/0.3017, allocations: 2.247 MB / 434.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.3031, allocations: 0.7594 MB / 435.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.3032, allocations: 11.88 kB / 435.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.3034, allocations: 47.52 kB / 435.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.3035, allocations: 39.59 kB / 435.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.3038, allocations: 115.3 kB / 435.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000352/0.3042, allocations: 239.7 kB / 435.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.3044, allocations: 75.97 kB / 435.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3046, allocations: 103.6 kB / 435.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.3048, allocations: 111.5 kB / 435.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.3049, allocations: 16 kB / 435.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.684e-05/0.305, allocations: 35.98 kB / 435.9 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.67e-05/0.3051, allocations: 55.84 kB / 436 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.3052, allocations: 107.3 kB / 436.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.3055, allocations: 248.5 kB / 436.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3055, allocations: 11.98 kB / 436.3 MB, free: 2.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3055, allocations: 3.938 kB / 436.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3055, allocations: 0 / 436.3 MB, free: 2.867 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.0008934/0.3064, allocations: 477.5 kB / 436.8 MB, free: 2.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.3065, allocations: 8.031 kB / 436.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.3066, allocations: 36.73 kB / 436.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.3069, allocations: 202.6 kB / 437 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.3069, allocations: 12.81 kB / 437 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.307, allocations: 24.38 kB / 437.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.3075, allocations: 255 kB / 437.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3075, allocations: 4 kB / 437.3 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.3075, allocations: 8 kB / 437.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/0.3077, allocations: 20.38 kB / 437.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.3081, allocations: 189.6 kB / 437.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.3095, allocations: 0.7943 MB / 438.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.3099, allocations: 170.5 kB / 438.5 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.3102, allocations: 100.8 kB / 438.6 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.722e-05/0.3102, allocations: 7.984 kB / 438.6 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.3103, allocations: 42.88 kB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.3103, allocations: 0 / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001587/0.3119, allocations: 0.6516 MB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.3119, allocations: 55.41 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.3121, allocations: 221 kB / 439.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.3122, allocations: 33.64 kB / 439.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.3123, allocations: 148.5 kB / 439.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.664e-05/0.3124, allocations: 87.27 kB / 439.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.3125, allocations: 49.7 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.3127, allocations: 334.8 kB / 440.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.3129, allocations: 79.94 kB / 440.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.3132, allocations: 128.1 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.3136, allocations: 218.2 kB / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.3136, allocations: 0 / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005971/0.3142, allocations: 277.3 kB / 440.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3143, allocations: 4 kB / 440.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3143, allocations: 7.938 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3143, allocations: 0 / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.3146, allocations: 63.89 kB / 441 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.3146, allocations: 4 kB / 441 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.3147, allocations: 16.05 kB / 441 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.3147, allocations: 16.05 kB / 441 MB, free: 13.94 MB / 350.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.0001745/0.3149, allocations: 141.7 kB / 441.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.482e-05/0.315, allocations: 23.86 kB / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007374/0.3157, allocations: 303.2 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3157, allocations: 4 kB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3157, allocations: 0 / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3157, allocations: 0 / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.3169, allocations: 0.6587 MB / 442.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3169, allocations: 0 / 442.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.3172, allocations: 59.89 kB / 442.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.3172, allocations: 4 kB / 442.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.3172, allocations: 4 kB / 442.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.3172, allocations: 11.97 kB / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3173, allocations: 0 / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009806/0.3182, allocations: 474.5 kB / 442.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.912e-05/0.3183, allocations: 47.84 kB / 442.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.3184, allocations: 4 kB / 442.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.3185, allocations: 19.92 kB / 442.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.3186, allocations: 27.84 kB / 442.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.3186, allocations: 8 kB / 442.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.3188, allocations: 160.5 kB / 442.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3188, allocations: 0 / 442.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000309/0.3191, allocations: 40 kB / 443 MB, free: 11.89 MB / 350.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.0001775/0.3192, allocations: 103.2 kB / 443.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005432/0.3198, allocations: 224 kB / 443.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3198, allocations: 0 / 443.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.32, allocations: 111.8 kB / 443.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.3204, allocations: 26.92 kB / 443.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3216, allocations: 0.6858 MB / 444.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.322, allocations: 0.76 MB / 444.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.3222, allocations: 49.91 kB / 444.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.152e-05/0.3222, allocations: 27.38 kB / 444.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3222, allocations: 0 / 444.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of Templates: time 0.006283/0.3285, allocations: 2.188 MB / 447.1 MB, free: 7.664 MB / 350.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: 5.133428937755525]