Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001645/0.001645, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002351/0.002351, allocations: 213.1 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.583/1.583, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 59.91 kB / 377.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3514, allocations: 53.42 MB / 431.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003534/0.355, allocations: 2.105 MB / 433.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.3563, allocations: 0.705 MB / 434 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.3564, allocations: 15.81 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.3565, allocations: 47.52 kB / 434 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.3567, allocations: 51.58 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.357, allocations: 99.77 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002975/0.3573, allocations: 231.8 kB / 434.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.3575, allocations: 82.84 kB / 434.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.3577, allocations: 99.56 kB / 434.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/0.3579, allocations: 99.41 kB / 434.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.3579, allocations: 20 kB / 434.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.358, allocations: 39.97 kB / 434.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-05/0.3581, allocations: 51.84 kB / 434.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.838e-05/0.3582, allocations: 95.45 kB / 434.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.3585, allocations: 252.6 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3585, allocations: 0 / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3585, allocations: 0 / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3585, allocations: 0 / 435.1 MB, free: 2.445 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.0008648/0.3594, allocations: 485.4 kB / 435.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3594, allocations: 15.98 kB / 435.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.3595, allocations: 50.73 kB / 435.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.3596, allocations: 40.78 kB / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.3599, allocations: 190.7 kB / 435.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.36, allocations: 20.81 kB / 435.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/0.36, allocations: 24.3 kB / 435.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.3605, allocations: 254.8 kB / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.3605, allocations: 4 kB / 436.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.3605, allocations: 11.98 kB / 436.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.758e-05/0.3605, allocations: 8.438 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004315/0.361, allocations: 197.5 kB / 436.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.3621, allocations: 0.7553 MB / 437.1 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.3624, allocations: 170 kB / 437.3 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.3627, allocations: 104.8 kB / 437.4 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.995e-05/0.3627, allocations: 8.375 kB / 437.4 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.3628, allocations: 38.5 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.322e-06/0.3628, allocations: 3.938 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00139/0.3642, allocations: 0.6491 MB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.3642, allocations: 51.41 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.3644, allocations: 220.9 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.3644, allocations: 29.7 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3645, allocations: 148.5 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.926e-05/0.3646, allocations: 87.28 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.312e-05/0.3647, allocations: 45.7 kB / 438.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3648, allocations: 338.8 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.365, allocations: 79.94 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.3652, allocations: 120.1 kB / 439.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.3656, allocations: 226.6 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3656, allocations: 0 / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005322/0.3662, allocations: 277.3 kB / 439.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3662, allocations: 7.984 kB / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3662, allocations: 0 / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3662, allocations: 4 kB / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.3665, allocations: 63.95 kB / 439.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3665, allocations: 0 / 439.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.3666, allocations: 15.98 kB / 439.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.3666, allocations: 12 kB / 439.8 MB, free: 13.5 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.0001383/0.3668, allocations: 149.6 kB / 439.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.176e-05/0.3668, allocations: 23.86 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000579/0.3674, allocations: 295.3 kB / 440.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3674, allocations: 15.98 kB / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3674, allocations: 0 / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3674, allocations: 3.984 kB / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.3684, allocations: 0.6314 MB / 440.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3684, allocations: 0 / 440.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.3687, allocations: 55.89 kB / 441 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3687, allocations: 4 kB / 441 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.3687, allocations: 8.031 kB / 441 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.676e-06/0.3687, allocations: 11.92 kB / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3687, allocations: 0 / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007774/0.3695, allocations: 486.5 kB / 441.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.856e-05/0.3696, allocations: 39.89 kB / 441.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.3696, allocations: 4 kB / 441.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.3698, allocations: 19.92 kB / 441.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.3698, allocations: 19.97 kB / 441.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3699, allocations: 11.94 kB / 441.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.37, allocations: 156.5 kB / 441.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.37, allocations: 0 / 441.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.3703, allocations: 55.88 kB / 441.8 MB, free: 11.44 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.001087/0.3714, allocations: 1.019 MB / 442.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004846/0.3718, allocations: 211.8 kB / 443 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3718, allocations: 0 / 443 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.3721, allocations: 111.8 kB / 443.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.3724, allocations: 20.44 kB / 443.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.3758, allocations: 2.708 MB / 445.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.376, allocations: 159.2 kB / 446 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.3761, allocations: 45.91 kB / 446 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.3763, allocations: 83.39 kB / 446.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3763, allocations: 7.938 kB / 446.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2552/0.6315, allocations: 5.088 MB / 451.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.65, allocations: 3.938 kB / 451.2 MB, free: 1.945 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 16.721275627613068]