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.0009897/0.0009897, allocations: 76.08 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.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.0008968/0.0008968, allocations: 157 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.9423/0.9423, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.412e-06/1.412e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.185e-05, allocations: 2.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002626/0.002648, allocations: 2.094 MB / 320.5 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.003681, allocations: 0.6659 MB / 321.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.003816, allocations: 7.938 kB / 321.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.003982, allocations: 47.45 kB / 321.2 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.004162, allocations: 43.59 kB / 321.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.004439, allocations: 111.4 kB / 321.4 MB, free: 3.391 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002467/0.004686, allocations: 243.6 kB / 321.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.004863, allocations: 75.98 kB / 321.7 MB, free: 3.078 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.005034, allocations: 139.7 kB / 321.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.00515, allocations: 75.77 kB / 321.9 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.005178, allocations: 20 kB / 321.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.312e-05/0.005251, allocations: 31.86 kB / 322 MB, free: 2.816 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.504e-05/0.005316, allocations: 59.81 kB / 322 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.633e-05/0.005373, allocations: 67.77 kB / 322.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.005667, allocations: 247.1 kB / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.005672, allocations: 0 / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.005673, allocations: 0 / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.00568, allocations: 3.984 kB / 322.3 MB, free: 2.445 MB / 282.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.0006906/0.00637, allocations: 488.7 kB / 322.8 MB, free: 1.938 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.00642, allocations: 8.922 kB / 322.8 MB, free: 1.93 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.00647, allocations: 54.73 kB / 322.9 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.651e-05/0.006516, allocations: 32.73 kB / 322.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.006749, allocations: 193.9 kB / 323.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.006775, allocations: 16.88 kB / 323.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.006805, allocations: 20.38 kB / 323.1 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.00713, allocations: 271.4 kB / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.007143, allocations: 0 / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.00716, allocations: 8 kB / 323.4 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.007187, allocations: 12.5 kB / 323.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002672/0.007454, allocations: 189.9 kB / 323.6 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.008297, allocations: 0.7518 MB / 324.3 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.008557, allocations: 166.5 kB / 324.5 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.008679, allocations: 103.8 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.339e-05/0.008753, allocations: 4.375 kB / 324.6 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.008792, allocations: 46.44 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.913e-06/0.008794, allocations: 0 / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009743/0.009768, allocations: 0.6491 MB / 325.3 MB, free: 15.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.009806, allocations: 55.41 kB / 325.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.009962, allocations: 209.8 kB / 325.6 MB, free: 15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.009982, allocations: 33.7 kB / 325.6 MB, free: 14.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.943e-05/0.01008, allocations: 148.5 kB / 325.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.01013, allocations: 91.22 kB / 325.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.275e-05/0.0102, allocations: 45.7 kB / 325.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.0103, allocations: 342.8 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.01043, allocations: 83.94 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.01057, allocations: 123.3 kB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.01082, allocations: 222.4 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.01083, allocations: 3.938 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003234/0.01115, allocations: 277.3 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.01117, allocations: 4 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.01118, allocations: 4.062 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.01119, allocations: 4 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.01138, allocations: 59.89 kB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.01139, allocations: 4 kB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.501e-05/0.01146, allocations: 19.97 kB / 327 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.01147, allocations: 12.06 kB / 327 MB, free: 13.5 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.0001098/0.01158, allocations: 141.7 kB / 327.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.01161, allocations: 27.75 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003951/0.012, allocations: 299.2 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.01201, allocations: 0 / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.01201, allocations: 4 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.01202, allocations: 0 / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000691/0.01271, allocations: 0.6395 MB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.01271, allocations: 0 / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.01287, allocations: 55.91 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.01288, allocations: 0 / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.01289, allocations: 11.98 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.0129, allocations: 3.938 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.0129, allocations: 0 / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005135/0.01341, allocations: 486.5 kB / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.01348, allocations: 35.86 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.0135, allocations: 11.98 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.753e-05/0.01358, allocations: 15.88 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.01363, allocations: 23.95 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.01365, allocations: 4 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.944e-05/0.01374, allocations: 165.2 kB / 328.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01374, allocations: 0 / 328.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002439/0.01399, allocations: 47.94 kB / 329 MB, free: 11.46 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.0007639/0.01475, allocations: 1.015 MB / 330 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003267/0.01508, allocations: 220 kB / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01508, allocations: 0 / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.01521, allocations: 116 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.01549, allocations: 31.44 kB / 330.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.01778, allocations: 2.625 MB / 333 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.0179, allocations: 155.2 kB / 333.1 MB, free: 7.156 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.01801, allocations: 49.89 kB / 333.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.01811, allocations: 88.47 kB / 333.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01811, allocations: 0 / 333.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.04104, allocations: 5.304 MB / 338.5 MB, free: 1.844 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.71/6.751, allocations: 4.812 kB / 338.6 MB, free: 1.84 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.83252103254199]