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.001165/0.001165, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001461/0.001461, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9592/0.9592, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.753e-06/1.753e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.005e-05/2.18e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002432/0.002454, allocations: 2.118 MB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009746/0.003429, allocations: 0.7048 MB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.003544, allocations: 7.938 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.003714, allocations: 55.39 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.003885, allocations: 51.52 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.004125, allocations: 95.77 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.004356, allocations: 247.5 kB / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.004535, allocations: 79.78 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.004762, allocations: 131.7 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.004877, allocations: 83.75 kB / 328.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.004903, allocations: 20 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.28e-05/0.004976, allocations: 32 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.96e-05/0.005035, allocations: 59.75 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.591e-05/0.005091, allocations: 67.75 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.005366, allocations: 259 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.00537, allocations: 0 / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.005372, allocations: 0 / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.005379, allocations: 0 / 328.5 MB, free: 11.88 MB / 298.7 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.0006547/0.006034, allocations: 493.4 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.006074, allocations: 11.98 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.705e-05/0.006121, allocations: 58.72 kB / 329 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.119e-05/0.006212, allocations: 28.8 kB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.006438, allocations: 201.4 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.006459, allocations: 16.88 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.006492, allocations: 24.38 kB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.006806, allocations: 256.1 kB / 329.6 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.006819, allocations: 4.188 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.006835, allocations: 8.125 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.006861, allocations: 20.48 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002693/0.00713, allocations: 185.9 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008225/0.007953, allocations: 0.7517 MB / 330.5 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005465/0.008499, allocations: 169.4 kB / 330.7 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.008624, allocations: 100.8 kB / 330.8 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.767e-05/0.008691, allocations: 4 kB / 330.8 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.008716, allocations: 46.5 kB / 330.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.834e-06/0.008718, allocations: 0 / 330.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001001/0.009719, allocations: 0.6608 MB / 331.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.00975, allocations: 55.41 kB / 331.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.009897, allocations: 213.8 kB / 331.8 MB, free: 8.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.009915, allocations: 29.7 kB / 331.8 MB, free: 8.375 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.819e-05/0.009993, allocations: 148.5 kB / 331.9 MB, free: 8.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.415e-05/0.01004, allocations: 91.2 kB / 332 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.17e-05/0.0101, allocations: 49.7 kB / 332.1 MB, free: 8.078 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.536e-05/0.01018, allocations: 334.8 kB / 332.4 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.0103, allocations: 83.94 kB / 332.5 MB, free: 7.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.01043, allocations: 123.3 kB / 332.6 MB, free: 7.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.01068, allocations: 219.1 kB / 332.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.01068, allocations: 4 kB / 332.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003147/0.01099, allocations: 278.4 kB / 333.1 MB, free: 7.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.01101, allocations: 11.98 kB / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.01102, allocations: 0 / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.01104, allocations: 3.938 kB / 333.1 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.01121, allocations: 55.95 kB / 333.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.01121, allocations: 7.984 kB / 333.2 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.261e-05/0.01128, allocations: 15.98 kB / 333.2 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.01129, allocations: 19.92 kB / 333.2 MB, free: 6.906 MB / 298.7 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.0001069/0.0114, allocations: 137.8 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.01143, allocations: 23.89 kB / 333.4 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003866/0.01182, allocations: 291.2 kB / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.01183, allocations: 4 kB / 333.7 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.01183, allocations: 0 / 333.7 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.01184, allocations: 3.984 kB / 333.7 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000669/0.01251, allocations: 0.6316 MB / 334.3 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.01251, allocations: 4.031 kB / 334.3 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.01266, allocations: 59.89 kB / 334.4 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.01266, allocations: 0 / 334.4 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.01268, allocations: 12.06 kB / 334.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01268, allocations: 0 / 334.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01268, allocations: 0 / 334.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.01316, allocations: 490.1 kB / 334.8 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.58e-05/0.01322, allocations: 47.77 kB / 334.9 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.01324, allocations: 8 kB / 334.9 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.181e-05/0.01331, allocations: 11.98 kB / 334.9 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.01336, allocations: 23.91 kB / 334.9 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.01337, allocations: 8 kB / 334.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.942e-05/0.01346, allocations: 161.2 kB / 335.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01346, allocations: 0 / 335.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002154/0.01368, allocations: 44 kB / 335.1 MB, free: 4.887 MB / 298.7 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.000715/0.01439, allocations: 1.023 MB / 336.2 MB, free: 3.836 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003057/0.0147, allocations: 211.3 kB / 336.4 MB, free: 3.633 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.0147, allocations: 3.938 kB / 336.4 MB, free: 3.629 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.01483, allocations: 115.9 kB / 336.5 MB, free: 3.516 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.01508, allocations: 31.81 kB / 336.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.01754, allocations: 2.617 MB / 339.1 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.01765, allocations: 155.1 kB / 339.3 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.074e-05/0.01774, allocations: 49.89 kB / 339.3 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.01785, allocations: 88.47 kB / 339.4 MB, free: 456 kB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01785, allocations: 0 / 339.4 MB, free: 456 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.04522, allocations: 5.237 MB / 344.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.653/6.698, allocations: 4.328 kB / 344.7 MB, free: 11.3 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/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: 8.810105519369245]