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.001868/0.001868, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.002339/0.002339, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.495/1.495, allocations: 230.2 MB / 254.5 MB, free: 15.43 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.001777/0.001777, allocations: 59.91 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.1009, allocations: 53.33 MB / 426.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003467/0.1044, allocations: 2.227 MB / 428.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1057, allocations: 0.7633 MB / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1058, allocations: 4 kB / 429.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.106, allocations: 47.47 kB / 429.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.1062, allocations: 43.64 kB / 429.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.1064, allocations: 103.8 kB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.1067, allocations: 227.7 kB / 430.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.1069, allocations: 87.59 kB / 430.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.1071, allocations: 103.6 kB / 430.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.1073, allocations: 107.5 kB / 430.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.1073, allocations: 20 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.785e-05/0.1074, allocations: 31.98 kB / 430.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-05/0.1075, allocations: 59.77 kB / 430.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.1076, allocations: 111.3 kB / 430.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.1079, allocations: 250.8 kB / 430.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1079, allocations: 0 / 430.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1079, allocations: 4 kB / 430.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.1079, allocations: 0 / 430.8 MB, free: 0.8438 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.0008698/0.1088, allocations: 0.5455 MB / 431.4 MB, free: 256 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1088, allocations: 12.03 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.83e-05/0.1089, allocations: 58.73 kB / 431.4 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.109, allocations: 32.73 kB / 431.5 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.1093, allocations: 255.9 kB / 431.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.1094, allocations: 20.73 kB / 431.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.1094, allocations: 28.31 kB / 431.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000453/0.1099, allocations: 250.8 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.1099, allocations: 0 / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.1099, allocations: 12 kB / 432 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.1099, allocations: 8.438 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.1103, allocations: 201.5 kB / 432.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.1115, allocations: 0.8264 MB / 433.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.1119, allocations: 176.1 kB / 433.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.1121, allocations: 100.8 kB / 433.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.1122, allocations: 81.48 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.649e-05/0.1122, allocations: 42.5 kB / 433.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.282e-06/0.1122, allocations: 0 / 433.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001428/0.1136, allocations: 0.7277 MB / 434.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.1137, allocations: 51.41 kB / 434.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.1139, allocations: 217 kB / 434.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.1139, allocations: 33.64 kB / 434.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.114, allocations: 156.5 kB / 434.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.483e-05/0.1141, allocations: 83.28 kB / 434.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.162e-05/0.1142, allocations: 49.7 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1143, allocations: 334.8 kB / 435.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1145, allocations: 75.95 kB / 435.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.1147, allocations: 139.3 kB / 435.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.1151, allocations: 211.2 kB / 435.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.91e-07/0.1151, allocations: 0 / 435.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005141/0.1156, allocations: 285.3 kB / 435.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1156, allocations: 4 kB / 435.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1156, allocations: 4 kB / 435.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.1157, allocations: 0 / 435.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.1159, allocations: 63.95 kB / 435.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.1159, allocations: 4 kB / 435.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1161, allocations: 15.98 kB / 435.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1161, allocations: 16.05 kB / 435.9 MB, free: 11.45 MB / 366.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.0001305/0.1162, allocations: 141.7 kB / 436 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.1163, allocations: 23.86 kB / 436 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006037/0.1169, allocations: 291.1 kB / 436.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1169, allocations: 4 kB / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1169, allocations: 3.984 kB / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1169, allocations: 0 / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.1179, allocations: 0.6908 MB / 437 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1179, allocations: 0 / 437 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.1182, allocations: 55.95 kB / 437.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.1182, allocations: 4 kB / 437.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.1182, allocations: 4 kB / 437.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.1182, allocations: 7.969 kB / 437.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1182, allocations: 7.938 kB / 437.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007632/0.119, allocations: 478 kB / 437.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.1191, allocations: 117 kB / 437.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1192, allocations: 8 kB / 437.7 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.1193, allocations: 19.92 kB / 437.7 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.706e-05/0.1194, allocations: 23.97 kB / 437.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.1194, allocations: 4 kB / 437.7 MB, free: 9.477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.1195, allocations: 156.5 kB / 437.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1195, allocations: 0 / 437.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.1198, allocations: 44 kB / 437.9 MB, free: 9.281 MB / 366.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.001109/0.1209, allocations: 1.038 MB / 439 MB, free: 8.215 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000463/0.1214, allocations: 206.6 kB / 439.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1214, allocations: 8.125 kB / 439.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.1216, allocations: 111.8 kB / 439.3 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.1219, allocations: 24.42 kB / 439.3 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.1252, allocations: 2.703 MB / 442 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.1256, allocations: 0.76 MB / 442.8 MB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.1257, allocations: 45.91 kB / 442.8 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.1259, allocations: 87.41 kB / 442.9 MB, free: 4.148 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1259, allocations: 7.938 kB / 442.9 MB, free: 4.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.215/0.3408, allocations: 4.534 MB / 447.5 MB, free: 24.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.1/8.44, allocations: 4.031 kB / 447.5 MB, free: 24.3 MB / 366.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.474693169817328]