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.001308/0.001308, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.00128/0.00128, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.397/1.397, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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.001441/0.001441, allocations: 47.92 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003791/0.1077, allocations: 2.203 MB / 420 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.1091, allocations: 0.7049 MB / 420.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1092, allocations: 4 kB / 420.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.1094, allocations: 47.47 kB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.1095, allocations: 55.62 kB / 420.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.1098, allocations: 99.77 kB / 420.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002936/0.1101, allocations: 227.7 kB / 421.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.1103, allocations: 91.59 kB / 421.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000205/0.1105, allocations: 95.56 kB / 421.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1107, allocations: 107.5 kB / 421.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.374e-05/0.1107, allocations: 16 kB / 421.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.923e-05/0.1108, allocations: 32 kB / 421.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.674e-05/0.1109, allocations: 59.75 kB / 421.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.111, allocations: 107.3 kB / 421.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1113, allocations: 246.8 kB / 421.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1113, allocations: 4 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1113, allocations: 3.938 kB / 421.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1114, allocations: 0 / 421.9 MB, free: 8.496 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.0009946/0.1123, allocations: 0.5533 MB / 422.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1124, allocations: 11.97 kB / 422.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.037e-05/0.1125, allocations: 54.73 kB / 422.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.889e-05/0.1125, allocations: 28.75 kB / 422.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.1129, allocations: 260.3 kB / 422.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.1129, allocations: 20.56 kB / 422.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.629e-05/0.113, allocations: 19.95 kB / 422.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.1135, allocations: 258.6 kB / 423.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1135, allocations: 3.984 kB / 423.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.1135, allocations: 12 kB / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.1135, allocations: 8.438 kB / 423.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004527/0.114, allocations: 197.5 kB / 423.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.1152, allocations: 0.811 MB / 424.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.1156, allocations: 168.7 kB / 424.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.1158, allocations: 113 kB / 424.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.116, allocations: 85.09 kB / 424.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.098e-05/0.116, allocations: 34.56 kB / 424.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.116, allocations: 0 / 424.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001489/0.1175, allocations: 0.7227 MB / 425.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.1175, allocations: 63.33 kB / 425.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.1178, allocations: 217 kB / 425.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.1178, allocations: 29.7 kB / 425.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1179, allocations: 148.5 kB / 425.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.279e-05/0.118, allocations: 91.2 kB / 425.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/0.118, allocations: 49.7 kB / 425.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.1182, allocations: 342.8 kB / 426.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1184, allocations: 79.94 kB / 426.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.1187, allocations: 127.4 kB / 426.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/0.1191, allocations: 216.8 kB / 426.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1191, allocations: 0 / 426.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000541/0.1196, allocations: 278.6 kB / 426.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1197, allocations: 6.188 kB / 426.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1197, allocations: 4 kB / 426.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1197, allocations: 64 / 426.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.1199, allocations: 63.89 kB / 426.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.12, allocations: 4 kB / 426.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.1201, allocations: 19.91 kB / 426.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.1201, allocations: 12 kB / 426.9 MB, free: 3.109 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.0001407/0.1202, allocations: 137.8 kB / 427 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.013e-05/0.1203, allocations: 23.86 kB / 427.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000615/0.1209, allocations: 295.9 kB / 427.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1209, allocations: 4 kB / 427.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1209, allocations: 3.984 kB / 427.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.1209, allocations: 7.875 kB / 427.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.1221, allocations: 0.683 MB / 428.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1221, allocations: 4.031 kB / 428.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.1224, allocations: 55.91 kB / 428.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.1224, allocations: 7.938 kB / 428.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.1224, allocations: 7.984 kB / 428.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1224, allocations: 8.062 kB / 428.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1224, allocations: 0 / 428.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000834/0.1232, allocations: 489.4 kB / 428.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1234, allocations: 116.9 kB / 428.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.1234, allocations: 11.94 kB / 428.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.1235, allocations: 11.98 kB / 428.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.1236, allocations: 19.98 kB / 428.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1236, allocations: 4 kB / 428.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.1238, allocations: 160.5 kB / 428.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1238, allocations: 4 kB / 428.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002933/0.124, allocations: 48 kB / 429 MB, free: 0.9258 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.001178/0.1252, allocations: 1.034 MB / 430 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004991/0.1257, allocations: 211.8 kB / 430.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1257, allocations: 0 / 430.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.126, allocations: 107.9 kB / 430.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.1263, allocations: 20.44 kB / 430.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003513/0.1298, allocations: 2.715 MB / 433.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.1303, allocations: 0.7675 MB / 433.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.1304, allocations: 49.89 kB / 433.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.1305, allocations: 91.34 kB / 434 MB, free: 11.77 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1305, allocations: 0 / 434 MB, free: 11.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.1599, allocations: 4.605 MB / 438.6 MB, free: 7.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.062/8.222, allocations: 7.922 kB / 438.6 MB, free: 7.234 MB / 366.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.274044204037637]