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.001663/0.001663, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002219/0.002219, allocations: 213.3 kB / 23.73 MB, free: 4.531 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.805 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: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 55.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2631, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.005038/0.2682, allocations: 2.12 MB / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.2703, allocations: 0.7088 MB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.2705, allocations: 7.938 kB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002696/0.2707, allocations: 51.45 kB / 434 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002699/0.271, allocations: 39.66 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004351/0.2714, allocations: 99.77 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004349/0.2719, allocations: 235.7 kB / 434.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.2721, allocations: 75.81 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.2724, allocations: 103.6 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.2727, allocations: 103.5 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/0.2727, allocations: 20 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.2729, allocations: 35.98 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.273, allocations: 55.78 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.2731, allocations: 87.52 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.2736, allocations: 256.6 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2736, allocations: 0 / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2736, allocations: 0 / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.2736, allocations: 0 / 435 MB, free: 2.676 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.001244/0.2748, allocations: 493.3 kB / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.2749, allocations: 12.03 kB / 435.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.265e-05/0.275, allocations: 54.73 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.2751, allocations: 32.78 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/0.2756, allocations: 191.4 kB / 435.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.2756, allocations: 12.81 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.1e-05/0.2757, allocations: 20.38 kB / 435.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007009/0.2764, allocations: 262.7 kB / 436.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2764, allocations: 4 kB / 436.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.2764, allocations: 12 kB / 436.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-05/0.2765, allocations: 8.438 kB / 436.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006749/0.2771, allocations: 193.5 kB / 436.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.2788, allocations: 0.7554 MB / 437.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005247/0.2794, allocations: 174.4 kB / 437.2 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003338/0.2797, allocations: 104.7 kB / 437.3 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.41e-05/0.2798, allocations: 8.375 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.2798, allocations: 38.5 kB / 437.4 MB, free: 192 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/0.2798, allocations: 0 / 437.4 MB, free: 192 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.002064/0.2819, allocations: 0.6616 MB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.2819, allocations: 51.41 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.2823, allocations: 213 kB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.2823, allocations: 29.7 kB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.2824, allocations: 148.5 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.071e-05/0.2825, allocations: 87.28 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.2826, allocations: 45.7 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.2828, allocations: 334.8 kB / 438.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003109/0.2832, allocations: 91.88 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.2835, allocations: 124.1 kB / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006389/0.2841, allocations: 215.1 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2841, allocations: 0 / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008208/0.285, allocations: 282.9 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.285, allocations: 4 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.285, allocations: 0 / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.924e-05/0.285, allocations: 7.984 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004157/0.2854, allocations: 59.91 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2854, allocations: 3.984 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.2856, allocations: 15.98 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.2857, allocations: 8 kB / 439.7 MB, free: 13.73 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.0002118/0.2859, allocations: 153.6 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/0.286, allocations: 27.92 kB / 439.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009415/0.2869, allocations: 295.3 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2869, allocations: 4 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.2869, allocations: 0 / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.2869, allocations: 0 / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.2885, allocations: 0.6314 MB / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2886, allocations: 0 / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004092/0.289, allocations: 59.89 kB / 440.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.289, allocations: 4 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.289, allocations: 12 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.289, allocations: 4 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.289, allocations: 0 / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.2902, allocations: 485.5 kB / 441.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.2904, allocations: 47.88 kB / 441.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.2904, allocations: 3.938 kB / 441.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.2907, allocations: 15.98 kB / 441.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.2907, allocations: 19.97 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.2908, allocations: 7.938 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002216/0.291, allocations: 160.5 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.291, allocations: 0 / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006119/0.2916, allocations: 51.94 kB / 441.7 MB, free: 11.68 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.001771/0.2934, allocations: 1.027 MB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007263/0.2941, allocations: 207.8 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2941, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.2944, allocations: 111.8 kB / 443 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.2949, allocations: 27.42 kB / 443.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.3004, allocations: 2.698 MB / 445.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.3007, allocations: 159.1 kB / 445.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002096/0.3009, allocations: 45.91 kB / 446 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.3011, allocations: 91.39 kB / 446 MB, free: 7.172 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3011, allocations: 0 / 446 MB, free: 7.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04841/0.3495, allocations: 5.093 MB / 451.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.4, allocations: 17.25 kB / 451.2 MB, free: 2.211 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/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.constantAmplitude,cosB.constantFrequency,cosB.f,cosB.offset,cosB.phi,cosB.useConstantAmplitude,cosB.useConstantFrequency,cosB.y,cosBminus.constantAmplitude,cosBminus.constantFrequency,cosBminus.f,cosBminus.offset,cosBminus.phi,cosBminus.useConstantAmplitude,cosBminus.useConstantFrequency,cosBminus.y,der(cosB.phi),der(cosBminus.phi),der(der1.u),der(integrator.y),der(sinA.phi),der(sinAminus.phi),der1.u,der1.y,feedbackCos.u1,feedbackCos.u2,feedbackCos.y,feedbackSin.u1,feedbackSin.u2,feedbackSin.y,integrator.initType,integrator.k,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,rotator.angle,rotator.n,rotator.u[1],rotator.u[2],rotator.y[1],rotator.y[2],sinA.constantAmplitude,sinA.constantFrequency,sinA.f,sinA.offset,sinA.phi,sinA.useConstantAmplitude,sinA.useConstantFrequency,sinA.y,sinAminus.constantAmplitude,sinAminus.constantFrequency,sinAminus.f,sinAminus.offset,sinAminus.phi,sinAminus.useConstantAmplitude,sinAminus.useConstantFrequency,sinAminus.y,time,toPolar.n,toPolar.u[1],toPolar.u[2],toPolar.y[1],toPolar.y[2],w,wrapAngle.positiveRange,wrapAngle.u,wrapAngle.y [Calling sys.exit(0), Time elapsed: 14.449061527848244]