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.001767/0.001767, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002005/0.002005, allocations: 204.8 kB / 23.73 MB, free: 4.379 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.413/1.413, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.002464/0.002464, allocations: 55.91 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3097, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.005106/0.3149, allocations: 2.127 MB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.3169, allocations: 0.7049 MB / 433.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002953/0.3172, allocations: 11.94 kB / 433.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002657/0.3175, allocations: 51.52 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.3178, allocations: 39.59 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.3183, allocations: 99.77 kB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004405/0.3187, allocations: 239.6 kB / 434.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.319, allocations: 81.44 kB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.3192, allocations: 99.62 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.3195, allocations: 115.5 kB / 434.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.894e-05/0.3195, allocations: 20 kB / 434.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.3196, allocations: 35.98 kB / 434.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.797e-05/0.3197, allocations: 59.77 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.3198, allocations: 87.47 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.3202, allocations: 248.6 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3202, allocations: 0 / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3202, allocations: 0 / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3202, allocations: 0 / 435.1 MB, free: 2.645 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.001004/0.3212, allocations: 0.4919 MB / 435.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3213, allocations: 8.031 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.25e-05/0.3213, allocations: 54.73 kB / 435.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.3215, allocations: 28.8 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.3218, allocations: 195.3 kB / 435.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.3218, allocations: 12.81 kB / 435.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/0.3218, allocations: 20.38 kB / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.3223, allocations: 262.7 kB / 436.1 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3224, allocations: 4 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.3224, allocations: 12 kB / 436.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-05/0.3224, allocations: 12.44 kB / 436.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004618/0.3229, allocations: 185.6 kB / 436.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.3241, allocations: 0.7592 MB / 437.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.3245, allocations: 172.5 kB / 437.3 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.3247, allocations: 96.8 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.993e-05/0.3247, allocations: 12.36 kB / 437.4 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.3248, allocations: 42.44 kB / 437.4 MB, free: 160 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.472e-06/0.3248, allocations: 3.938 kB / 437.4 MB, free: 156 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001444/0.3262, allocations: 0.6484 MB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.3263, allocations: 63.39 kB / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.3265, allocations: 209 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.3265, allocations: 33.64 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3266, allocations: 148.5 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3267, allocations: 91.19 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.44e-05/0.3268, allocations: 49.7 kB / 438.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.327, allocations: 330.8 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3272, allocations: 87.94 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.3274, allocations: 124.1 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.3278, allocations: 215.2 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-06/0.3278, allocations: 0 / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005559/0.3284, allocations: 286.7 kB / 439.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3284, allocations: 4 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3284, allocations: 4 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3284, allocations: 0 / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.3287, allocations: 59.95 kB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.3287, allocations: 7.938 kB / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.3288, allocations: 19.97 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.3288, allocations: 4 kB / 439.8 MB, free: 13.69 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.0001433/0.329, allocations: 153.6 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.329, allocations: 23.92 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006202/0.3297, allocations: 299.2 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3297, allocations: 0 / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3297, allocations: 4 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3297, allocations: 0 / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.3308, allocations: 0.6275 MB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3308, allocations: 0 / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.3311, allocations: 59.91 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3311, allocations: 0 / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.3311, allocations: 11.98 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.3311, allocations: 3.938 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3311, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008076/0.3319, allocations: 493.3 kB / 441.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.693e-05/0.332, allocations: 39.92 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.332, allocations: 8 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.3322, allocations: 15.92 kB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.702e-05/0.3322, allocations: 19.97 kB / 441.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.3322, allocations: 4 kB / 441.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.3324, allocations: 160.5 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3324, allocations: 0 / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002936/0.3327, allocations: 47.94 kB / 441.7 MB, free: 11.65 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.001157/0.3338, allocations: 1.031 MB / 442.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005352/0.3344, allocations: 211.7 kB / 442.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3344, allocations: 0 / 442.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002344/0.3346, allocations: 111.9 kB / 443 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.3349, allocations: 25.05 kB / 443.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.3384, allocations: 2.701 MB / 445.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.3386, allocations: 159.2 kB / 445.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.3387, allocations: 41.92 kB / 446 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3389, allocations: 87.41 kB / 446.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3389, allocations: 0 / 446.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/0.3729, allocations: 5.183 MB / 451.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.07, allocations: 7.812 kB / 451.2 MB, free: 2.098 MB / 350.1 MB " [Timeout remaining time 649] (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.026548274006927]