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.001386/0.001386, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001418/0.001418, allocations: 186 kB / 23.7 MB, free: 4.191 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.447/1.447, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.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.001561/0.001561, allocations: 47.92 kB / 370.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2736, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003716/0.2774, allocations: 2.096 MB / 424.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.2787, allocations: 0.6582 MB / 425.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.2789, allocations: 7.938 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.2791, allocations: 43.52 kB / 425.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.2793, allocations: 51.59 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.2797, allocations: 107.8 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003198/0.28, allocations: 231.7 kB / 425.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.2802, allocations: 79.8 kB / 425.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.2804, allocations: 95.58 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.2805, allocations: 103.5 kB / 426 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.2806, allocations: 16 kB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.403e-05/0.2807, allocations: 24 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.671e-05/0.2807, allocations: 63.75 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.639e-05/0.2808, allocations: 83.53 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003535/0.2812, allocations: 252.6 kB / 426.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2812, allocations: 0 / 426.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2812, allocations: 3.938 kB / 426.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2812, allocations: 0 / 426.5 MB, free: 10.51 MB / 334.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.0008793/0.2821, allocations: 488.5 kB / 426.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.2821, allocations: 12.03 kB / 427 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.736e-05/0.2822, allocations: 58.73 kB / 427 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.718e-05/0.2822, allocations: 32.75 kB / 427 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.2825, allocations: 198 kB / 427.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.2826, allocations: 20.56 kB / 427.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.2826, allocations: 23.95 kB / 427.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.2831, allocations: 250.7 kB / 427.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2831, allocations: 3.938 kB / 427.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.2831, allocations: 11.98 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-05/0.2832, allocations: 12.44 kB / 427.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004396/0.2836, allocations: 193.6 kB / 427.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.2848, allocations: 0.7437 MB / 428.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000396/0.2852, allocations: 174.4 kB / 428.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.2854, allocations: 105.1 kB / 428.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-05/0.2855, allocations: 8 kB / 428.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.2855, allocations: 34.56 kB / 428.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.2855, allocations: 0 / 428.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001435/0.2869, allocations: 0.654 MB / 429.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.287, allocations: 55.41 kB / 429.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.2872, allocations: 220.9 kB / 429.7 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.2872, allocations: 29.7 kB / 429.8 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.2873, allocations: 148.5 kB / 429.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.6e-05/0.2874, allocations: 87.22 kB / 430 MB, free: 6.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-05/0.2875, allocations: 53.69 kB / 430 MB, free: 6.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.2877, allocations: 338.8 kB / 430.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.2879, allocations: 79.95 kB / 430.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.2881, allocations: 123.4 kB / 430.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.2885, allocations: 216.8 kB / 430.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.2885, allocations: 0 / 430.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005477/0.2891, allocations: 276.1 kB / 431 MB, free: 5.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.2891, allocations: 4 kB / 431 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2891, allocations: 0 / 431 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.2891, allocations: 4 kB / 431.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.2894, allocations: 71.89 kB / 431.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2894, allocations: 0 / 431.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.2895, allocations: 19.92 kB / 431.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.2895, allocations: 11.98 kB / 431.2 MB, free: 5.559 MB / 334.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.0001459/0.2897, allocations: 137.8 kB / 431.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.804e-05/0.2897, allocations: 23.86 kB / 431.3 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006185/0.2903, allocations: 304.2 kB / 431.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2903, allocations: 4 kB / 431.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2904, allocations: 0 / 431.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.2904, allocations: 7.922 kB / 431.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.2914, allocations: 0.6277 MB / 432.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2914, allocations: 0 / 432.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.2917, allocations: 55.91 kB / 432.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.936e-06/0.2917, allocations: 7.938 kB / 432.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.2917, allocations: 8.031 kB / 432.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.2917, allocations: 8.062 kB / 432.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2917, allocations: 0 / 432.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008148/0.2926, allocations: 486.3 kB / 432.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.52e-05/0.2927, allocations: 43.83 kB / 432.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.2927, allocations: 7.938 kB / 432.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.2928, allocations: 11.98 kB / 432.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.989e-05/0.2929, allocations: 27.95 kB / 432.9 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.2929, allocations: 8 kB / 432.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.2931, allocations: 152.5 kB / 433 MB, free: 3.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2931, allocations: 0 / 433 MB, free: 3.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.2933, allocations: 48 kB / 433.1 MB, free: 3.531 MB / 334.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.001173/0.2945, allocations: 1.034 MB / 434.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005019/0.295, allocations: 212.1 kB / 434.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.295, allocations: 4 kB / 434.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.2953, allocations: 107.8 kB / 434.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.2956, allocations: 24.44 kB / 434.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.2991, allocations: 2.708 MB / 437.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.2993, allocations: 166.9 kB / 437.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001271/0.2994, allocations: 45.91 kB / 437.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.2996, allocations: 83.41 kB / 437.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2996, allocations: 0 / 437.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03304/0.3326, allocations: 5.185 MB / 442.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.96, allocations: 2.812 kB / 442.7 MB, free: 9.961 MB / 350.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/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: 13.94475328316912]