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.001333/0.001333, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001419/0.001419, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.439/1.439, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001791/0.001791, allocations: 55.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1229, allocations: 53.34 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004384/0.1273, allocations: 2.223 MB / 428.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1291, allocations: 0.7516 MB / 429.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002632/0.1293, allocations: 7.938 kB / 429.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002419/0.1296, allocations: 55.45 kB / 429.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.1298, allocations: 39.66 kB / 429.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.1302, allocations: 99.77 kB / 429.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000375/0.1306, allocations: 235.7 kB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.1308, allocations: 83.59 kB / 429.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/0.1311, allocations: 107.6 kB / 429.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.1312, allocations: 107.5 kB / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.1313, allocations: 20 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.1314, allocations: 31.98 kB / 430.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.092e-05/0.1315, allocations: 63.77 kB / 430.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.1316, allocations: 107.3 kB / 430.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003882/0.132, allocations: 254.7 kB / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.132, allocations: 0 / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.132, allocations: 0 / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.132, allocations: 4 kB / 430.5 MB, free: 0.6016 MB / 350.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.001128/0.1332, allocations: 0.5455 MB / 431 MB, free: 8 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.1332, allocations: 8.031 kB / 431 MB, free: 0 / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2075/0.3407, allocations: 56.69 kB / 431.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.3409, allocations: 36.27 kB / 431.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.3412, allocations: 250.5 kB / 431.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.3412, allocations: 17.17 kB / 431.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.3413, allocations: 26.28 kB / 431.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004796/0.3418, allocations: 253.5 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3418, allocations: 10.09 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.3418, allocations: 7.109 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.3418, allocations: 12.55 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004465/0.3423, allocations: 191 kB / 431.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009669/0.3432, allocations: 0.8224 MB / 432.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.3436, allocations: 173.5 kB / 432.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.3438, allocations: 98.86 kB / 433 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.752e-05/0.3438, allocations: 86.34 kB / 433 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.634e-05/0.3439, allocations: 34.19 kB / 433.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.3439, allocations: 0 / 433.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001296/0.3452, allocations: 0.7313 MB / 433.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/0.3452, allocations: 53.59 kB / 433.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3453, allocations: 219.2 kB / 434.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.3454, allocations: 30.23 kB / 434.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.3454, allocations: 155.1 kB / 434.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.749e-05/0.3455, allocations: 89.09 kB / 434.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/0.3455, allocations: 51.45 kB / 434.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.348e-05/0.3456, allocations: 335.1 kB / 434.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.3458, allocations: 84.47 kB / 434.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.346, allocations: 125.8 kB / 434.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003843/0.3464, allocations: 219.3 kB / 435.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3464, allocations: 1.094 kB / 435.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005053/0.3469, allocations: 274.8 kB / 435.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3469, allocations: 6.188 kB / 435.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3469, allocations: 1.062 kB / 435.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3469, allocations: 4.938 kB / 435.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.3472, allocations: 60.83 kB / 435.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.3472, allocations: 2.938 kB / 435.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3473, allocations: 16.84 kB / 435.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.3473, allocations: 12.69 kB / 435.5 MB, free: 9.242 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 9.906e-05/0.3474, allocations: 144.6 kB / 435.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.64e-05/0.3475, allocations: 22.61 kB / 435.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005608/0.3481, allocations: 290.6 kB / 436 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3481, allocations: 2.656 kB / 436 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3481, allocations: 3.594 kB / 436 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3481, allocations: 3.391 kB / 436 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000956/0.349, allocations: 0.6871 MB / 436.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.349, allocations: 0 / 436.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.3493, allocations: 56.59 kB / 436.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3493, allocations: 2.531 kB / 436.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.3493, allocations: 7 kB / 436.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3493, allocations: 2.141 kB / 436.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3493, allocations: 6.188 kB / 436.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007244/0.35, allocations: 493.2 kB / 437.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.637e-05/0.3501, allocations: 117.1 kB / 437.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.3501, allocations: 7.828 kB / 437.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.3503, allocations: 12.5 kB / 437.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/0.3504, allocations: 25.89 kB / 437.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.3504, allocations: 8.547 kB / 437.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.3505, allocations: 157.1 kB / 437.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3505, allocations: 4 kB / 437.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.3508, allocations: 46.97 kB / 437.6 MB, free: 8.023 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.0008996/0.3517, allocations: 1.033 MB / 438.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004917/0.3522, allocations: 210.2 kB / 438.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3522, allocations: 0 / 438.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.3524, allocations: 109.2 kB / 438.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.3528, allocations: 34.14 kB / 439 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.3557, allocations: 2.694 MB / 441.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.3559, allocations: 0.764 MB / 442.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.356, allocations: 45.33 kB / 442.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.3561, allocations: 91.12 kB / 442.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3561, allocations: 0 / 442.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.386, allocations: 4.543 MB / 447.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.484, allocations: 6.891 kB / 447.1 MB, free: 3.941 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.433067820966244]