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.0008831/0.0008831, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009697/0.0009697, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9435/0.9435, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] 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 1.373e-06/1.373e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.63e-05/2.767e-05, allocations: 4.953 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00277/0.002798, allocations: 2.128 MB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.004015, allocations: 0.7088 MB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001969/0.004212, allocations: 7.875 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.0044, allocations: 47.52 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.004611, allocations: 51.53 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.004948, allocations: 99.69 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.005256, allocations: 243.7 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.005449, allocations: 82.16 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.005703, allocations: 135.7 kB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.005833, allocations: 83.7 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.005861, allocations: 16 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.908e-05/0.00595, allocations: 39.97 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.177e-05/0.006011, allocations: 55.77 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.006078, allocations: 63.83 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.006374, allocations: 263 kB / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.006379, allocations: 0 / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.00638, allocations: 3.938 kB / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.006386, allocations: 0 / 328.6 MB, free: 11.91 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.0008539/0.00724, allocations: 488.4 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.00729, allocations: 8.031 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.709e-05/0.007347, allocations: 62.72 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.007472, allocations: 28.8 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.007745, allocations: 201.4 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.00777, allocations: 20.86 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.007807, allocations: 24.36 kB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003685/0.008176, allocations: 252.2 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.00819, allocations: 4.188 kB / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.008211, allocations: 12.11 kB / 329.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.008241, allocations: 16.5 kB / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.008534, allocations: 193.8 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009619/0.009496, allocations: 0.7401 MB / 330.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.009775, allocations: 174.4 kB / 330.8 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.009902, allocations: 104.8 kB / 330.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.949e-05/0.009992, allocations: 4 kB / 330.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.01002, allocations: 34.56 kB / 330.9 MB, free: 9.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.394e-06/0.01002, allocations: 0 / 330.9 MB, free: 9.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001049/0.01107, allocations: 0.6562 MB / 331.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.01111, allocations: 59.41 kB / 331.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.01128, allocations: 221.7 kB / 331.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.01129, allocations: 29.7 kB / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.899e-05/0.01138, allocations: 152.5 kB / 332 MB, free: 8.246 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.135e-05/0.01144, allocations: 83.23 kB / 332.1 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/0.0115, allocations: 53.69 kB / 332.1 MB, free: 8.105 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.0116, allocations: 326.8 kB / 332.5 MB, free: 7.777 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.01172, allocations: 87.88 kB / 332.5 MB, free: 7.691 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.01186, allocations: 127.4 kB / 332.7 MB, free: 7.555 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.01213, allocations: 219.1 kB / 332.9 MB, free: 7.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01214, allocations: 4 kB / 332.9 MB, free: 7.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003342/0.01247, allocations: 280.6 kB / 333.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.01249, allocations: 8 kB / 333.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.01249, allocations: 4.062 kB / 333.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.01251, allocations: 0 / 333.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.0127, allocations: 63.89 kB / 333.2 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.01271, allocations: 4 kB / 333.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.669e-05/0.01277, allocations: 15.98 kB / 333.3 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.01279, allocations: 8 kB / 333.3 MB, free: 6.945 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.0001231/0.01291, allocations: 145.7 kB / 333.4 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.01294, allocations: 19.86 kB / 333.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004008/0.01334, allocations: 292.2 kB / 333.7 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.01335, allocations: 4 kB / 333.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.01335, allocations: 0 / 333.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.01336, allocations: 3.984 kB / 333.7 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007186/0.01408, allocations: 0.6316 MB / 334.3 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.01408, allocations: 0 / 334.3 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.01425, allocations: 63.98 kB / 334.4 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.01425, allocations: 0 / 334.4 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.01427, allocations: 8 kB / 334.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.01427, allocations: 0 / 334.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.01428, allocations: 3.938 kB / 334.4 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000527/0.0148, allocations: 490.4 kB / 334.9 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.01487, allocations: 43.83 kB / 334.9 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.01489, allocations: 8 kB / 335 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-05/0.01497, allocations: 19.92 kB / 335 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.01503, allocations: 19.91 kB / 335 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.01504, allocations: 12 kB / 335 MB, free: 5.117 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.01514, allocations: 157.2 kB / 335.2 MB, free: 4.961 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01514, allocations: 0 / 335.2 MB, free: 4.961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002255/0.01537, allocations: 44 kB / 335.2 MB, free: 4.918 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.0007966/0.01617, allocations: 1.026 MB / 336.2 MB, free: 3.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.01651, allocations: 216.1 kB / 336.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.01651, allocations: 3.938 kB / 336.4 MB, free: 3.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.01664, allocations: 107.8 kB / 336.5 MB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.01692, allocations: 24.88 kB / 336.6 MB, free: 3.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.01945, allocations: 2.622 MB / 339.2 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.01958, allocations: 163.1 kB / 339.4 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.01968, allocations: 49.89 kB / 339.4 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.01979, allocations: 84.47 kB / 339.5 MB, free: 484 kB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01979, allocations: 0 / 339.5 MB, free: 484 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.04331, allocations: 5.236 MB / 344.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.81/6.853, allocations: 3.375 kB / 344.7 MB, free: 11.36 MB / 314.7 MB " [Timeout remaining time 653] (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/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_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: 8.925550380721688]