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.001586/0.001586, allocations: 113.1 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.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.002842/0.002842, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.584/1.584, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.001753/0.001753, allocations: 55.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3349, allocations: 53.35 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.006667/0.3416, allocations: 2.243 MB / 433.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.344, allocations: 0.7594 MB / 434.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003719/0.3443, allocations: 7.938 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.3447, allocations: 51.45 kB / 434.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.3451, allocations: 43.64 kB / 434.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006018/0.3457, allocations: 110.7 kB / 434.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006107/0.3463, allocations: 235.6 kB / 434.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/0.3466, allocations: 81.64 kB / 434.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003845/0.347, allocations: 103.6 kB / 434.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.3473, allocations: 107.5 kB / 434.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.433e-05/0.3474, allocations: 16 kB / 434.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.3475, allocations: 43.97 kB / 434.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3476, allocations: 55.78 kB / 435 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.3478, allocations: 107.3 kB / 435.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005449/0.3484, allocations: 255.2 kB / 435.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3484, allocations: 3.984 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3484, allocations: 0 / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.3484, allocations: 0 / 435.3 MB, free: 2.66 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.001469/0.3499, allocations: 485.4 kB / 435.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.3499, allocations: 12.03 kB / 435.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.35, allocations: 58.72 kB / 435.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.3502, allocations: 28.8 kB / 435.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.3507, allocations: 199.3 kB / 436.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.3507, allocations: 20.81 kB / 436.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.3508, allocations: 16.38 kB / 436.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007085/0.3515, allocations: 254.8 kB / 436.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.3515, allocations: 0 / 436.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.3516, allocations: 11.98 kB / 436.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.224e-05/0.3516, allocations: 16.42 kB / 436.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006913/0.3523, allocations: 197.5 kB / 436.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.354, allocations: 0.7865 MB / 437.4 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.3544, allocations: 174.4 kB / 437.6 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.3546, allocations: 100.8 kB / 437.7 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.615e-05/0.3547, allocations: 8.359 kB / 437.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.3548, allocations: 42.5 kB / 437.7 MB, free: 140 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.843e-06/0.3548, allocations: 0 / 437.7 MB, free: 140 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001703/0.3565, allocations: 0.6564 MB / 438.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.3565, allocations: 51.41 kB / 438.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.3568, allocations: 213 kB / 438.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.3568, allocations: 29.7 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.3569, allocations: 152.5 kB / 438.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.459e-05/0.357, allocations: 87.28 kB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.725e-05/0.3571, allocations: 45.7 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.3573, allocations: 342.8 kB / 439.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.3576, allocations: 87.88 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.3578, allocations: 120.1 kB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.3583, allocations: 217.7 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3583, allocations: 4 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006091/0.3589, allocations: 277.3 kB / 440 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3589, allocations: 8 kB / 440 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.3589, allocations: 3.984 kB / 440 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3589, allocations: 0 / 440 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.3592, allocations: 55.91 kB / 440 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.3592, allocations: 7.984 kB / 440 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.3594, allocations: 15.98 kB / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.3594, allocations: 8 kB / 440 MB, free: 13.67 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.0002024/0.3596, allocations: 153.7 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.375e-05/0.3597, allocations: 19.86 kB / 440.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006846/0.3604, allocations: 307.2 kB / 440.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3604, allocations: 0 / 440.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3604, allocations: 4 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3604, allocations: 0 / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.3616, allocations: 0.6547 MB / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3616, allocations: 0 / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/0.3619, allocations: 55.97 kB / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.3619, allocations: 0 / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.3619, allocations: 8 kB / 441.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.362, allocations: 7.875 kB / 441.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.362, allocations: 64 / 441.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009028/0.3629, allocations: 489.5 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.468e-05/0.363, allocations: 39.84 kB / 441.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.363, allocations: 4 kB / 441.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.3632, allocations: 23.86 kB / 441.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.3633, allocations: 27.95 kB / 441.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.3633, allocations: 4 kB / 441.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.3635, allocations: 156.5 kB / 442 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3635, allocations: 0 / 442 MB, free: 11.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003416/0.3639, allocations: 55.88 kB / 442 MB, free: 11.6 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.001436/0.3653, allocations: 1.031 MB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005893/0.3659, allocations: 203.8 kB / 443.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3659, allocations: 0 / 443.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.3662, allocations: 120 kB / 443.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.3665, allocations: 24.38 kB / 443.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.3708, allocations: 2.71 MB / 446.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.3714, allocations: 0.7639 MB / 446.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.3716, allocations: 49.89 kB / 446.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.3717, allocations: 83.41 kB / 447 MB, free: 6.473 MB / 350.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3717, allocations: 0 / 447 MB, free: 6.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.4152, allocations: 4.819 MB / 451.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.99, allocations: 8 kB / 451.8 MB, free: 1.773 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: 15.30315227410756]