Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 43.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2954, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004438/0.2999, allocations: 2.225 MB / 424.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.3017, allocations: 0.7088 MB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.3019, allocations: 3.938 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.3022, allocations: 47.52 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002998/0.3025, allocations: 51.59 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.3029, allocations: 111.7 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.3034, allocations: 231.7 kB / 426 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.3036, allocations: 87.94 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.3038, allocations: 91.64 kB / 426.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.3041, allocations: 111.5 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.3041, allocations: 16 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.725e-05/0.3042, allocations: 28 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.907e-05/0.3043, allocations: 63.75 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3044, allocations: 107.3 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.3048, allocations: 247.2 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3048, allocations: 0 / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3048, allocations: 0 / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.3048, allocations: 4 kB / 426.7 MB, free: 10.47 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.001267/0.3061, allocations: 485.4 kB / 427.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3061, allocations: 12.03 kB / 427.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.552e-05/0.3062, allocations: 58.72 kB / 427.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.3063, allocations: 28.75 kB / 427.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.3067, allocations: 194 kB / 427.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.3067, allocations: 24.56 kB / 427.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.3068, allocations: 23.95 kB / 427.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.3073, allocations: 258.6 kB / 427.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3073, allocations: 3.938 kB / 427.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.3074, allocations: 4 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.223e-05/0.3074, allocations: 16.42 kB / 427.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004933/0.3079, allocations: 185.6 kB / 428 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.3093, allocations: 0.7866 MB / 428.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.3097, allocations: 174.4 kB / 429 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.3099, allocations: 109.1 kB / 429.1 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.171e-05/0.31, allocations: 4 kB / 429.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.31, allocations: 30.56 kB / 429.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.31, allocations: 0 / 429.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001619/0.3116, allocations: 0.6596 MB / 429.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.3117, allocations: 51.41 kB / 429.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.3119, allocations: 213 kB / 430 MB, free: 6.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.312, allocations: 29.7 kB / 430 MB, free: 6.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.3121, allocations: 148.5 kB / 430.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.459e-05/0.3122, allocations: 95.2 kB / 430.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/0.3122, allocations: 45.7 kB / 430.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3124, allocations: 338.8 kB / 430.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.3126, allocations: 87.94 kB / 430.7 MB, free: 6.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.3129, allocations: 119.4 kB / 430.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.3133, allocations: 222.1 kB / 431.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.3133, allocations: 0 / 431.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000562/0.3138, allocations: 269.3 kB / 431.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3139, allocations: 11.28 kB / 431.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3139, allocations: 0 / 431.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.3139, allocations: 3.984 kB / 431.4 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/0.3142, allocations: 67.95 kB / 431.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.3142, allocations: 7.984 kB / 431.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.3143, allocations: 19.92 kB / 431.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.3143, allocations: 4 kB / 431.5 MB, free: 5.488 MB / 334.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.0001542/0.3145, allocations: 145.8 kB / 431.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.3145, allocations: 23.8 kB / 431.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006217/0.3152, allocations: 300.4 kB / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3152, allocations: 0 / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3152, allocations: 7.938 kB / 431.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3152, allocations: 3.938 kB / 431.9 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.3163, allocations: 0.6588 MB / 432.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3163, allocations: 0 / 432.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.3167, allocations: 59.94 kB / 432.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.3167, allocations: 3.938 kB / 432.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.3167, allocations: 8 kB / 432.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3167, allocations: 0 / 432.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3167, allocations: 0 / 432.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009937/0.3177, allocations: 494.3 kB / 433.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.545e-05/0.3178, allocations: 39.84 kB / 433.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.3179, allocations: 8.125 kB / 433.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.318, allocations: 19.98 kB / 433.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.3181, allocations: 19.95 kB / 433.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.3181, allocations: 8 kB / 433.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.3183, allocations: 152.5 kB / 433.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3183, allocations: 0 / 433.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.3186, allocations: 52 kB / 433.4 MB, free: 3.426 MB / 334.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.001252/0.3198, allocations: 1.026 MB / 434.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005282/0.3204, allocations: 212.1 kB / 434.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3204, allocations: 4 kB / 434.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002547/0.3206, allocations: 111.8 kB / 434.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.321, allocations: 27.55 kB / 434.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.3249, allocations: 2.703 MB / 437.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.3254, allocations: 0.7714 MB / 438.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.3255, allocations: 49.89 kB / 438.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.3256, allocations: 83.41 kB / 438.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3256, allocations: 0 / 438.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0366/0.3622, allocations: 4.876 MB / 443.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.57, allocations: 16.36 kB / 443.3 MB, free: 9.531 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.567770245950669]