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.001341/0.001341, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001418/0.001418, allocations: 213.6 kB / 23.74 MB, free: 4.672 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.434/1.434, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.001897/0.001897, allocations: 63.91 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2555, allocations: 53.4 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00348/0.259, allocations: 2.249 MB / 433.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.2603, allocations: 0.7594 MB / 434.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.2604, allocations: 7.938 kB / 434.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.2606, allocations: 43.53 kB / 434.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.2607, allocations: 47.58 kB / 434.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.261, allocations: 107.7 kB / 434.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.2613, allocations: 235.6 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.2615, allocations: 87.05 kB / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.2618, allocations: 95.58 kB / 434.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.2619, allocations: 111.5 kB / 434.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.262, allocations: 20 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.839e-05/0.2621, allocations: 35.98 kB / 435 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.8e-05/0.2622, allocations: 55.81 kB / 435 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.2623, allocations: 111.3 kB / 435.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003356/0.2626, allocations: 247.2 kB / 435.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.2626, allocations: 0 / 435.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2626, allocations: 0 / 435.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.2626, allocations: 0 / 435.4 MB, free: 2.496 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.0009408/0.2636, allocations: 489.4 kB / 435.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2636, allocations: 12.03 kB / 435.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.537e-05/0.2637, allocations: 62.66 kB / 435.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.2638, allocations: 28.75 kB / 435.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.2641, allocations: 198.7 kB / 436.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.2641, allocations: 12.81 kB / 436.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.2642, allocations: 24.38 kB / 436.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.2646, allocations: 254.8 kB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.2647, allocations: 7.922 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.2647, allocations: 12 kB / 436.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.839e-05/0.2647, allocations: 8.438 kB / 436.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.2651, allocations: 197.5 kB / 436.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.2664, allocations: 0.7904 MB / 437.4 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003512/0.2668, allocations: 178 kB / 437.6 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.267, allocations: 100.8 kB / 437.7 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-05/0.2671, allocations: 8.359 kB / 437.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.2671, allocations: 38.5 kB / 437.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 3.537e-06/0.2671, allocations: 7.922 kB / 437.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001411/0.2685, allocations: 0.653 MB / 438.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.2686, allocations: 55.41 kB / 438.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.2688, allocations: 209 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.2688, allocations: 29.7 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.2689, allocations: 152.5 kB / 438.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.025e-05/0.269, allocations: 87.28 kB / 438.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.269, allocations: 49.69 kB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2692, allocations: 334.8 kB / 439.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.2694, allocations: 83.94 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.2696, allocations: 128.1 kB / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004674/0.2701, allocations: 218.2 kB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2701, allocations: 0 / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005311/0.2706, allocations: 277.3 kB / 440 MB, free: 13.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.2706, allocations: 10.5 kB / 440 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2706, allocations: 0 / 440 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.2706, allocations: 4 kB / 440 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.2709, allocations: 63.89 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2709, allocations: 0 / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.271, allocations: 15.98 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.2711, allocations: 8 kB / 440.1 MB, free: 13.5 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.0001554/0.2712, allocations: 153.7 kB / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/0.2713, allocations: 19.86 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006114/0.2719, allocations: 299.2 kB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2719, allocations: 4 kB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2719, allocations: 0 / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2719, allocations: 3.984 kB / 440.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.2729, allocations: 0.6548 MB / 441.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2729, allocations: 0 / 441.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.2732, allocations: 59.97 kB / 441.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2732, allocations: 4 kB / 441.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.2732, allocations: 4 kB / 441.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.2732, allocations: 7.922 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2732, allocations: 0 / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008035/0.274, allocations: 490 kB / 441.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.13e-05/0.2741, allocations: 39.86 kB / 441.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.2742, allocations: 15.92 kB / 441.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.2743, allocations: 11.94 kB / 441.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-05/0.2744, allocations: 27.95 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2744, allocations: 4 kB / 441.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.2745, allocations: 152.5 kB / 442 MB, free: 11.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2745, allocations: 0 / 442 MB, free: 11.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.2748, allocations: 59.86 kB / 442.1 MB, free: 11.43 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.001132/0.276, allocations: 1.019 MB / 443.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004935/0.2764, allocations: 211.8 kB / 443.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2765, allocations: 0 / 443.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002362/0.2767, allocations: 116.1 kB / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.277, allocations: 24.42 kB / 443.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.2808, allocations: 2.704 MB / 446.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.2812, allocations: 0.7639 MB / 446.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.2813, allocations: 45.89 kB / 447 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.2814, allocations: 87.41 kB / 447 MB, free: 6.305 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2814, allocations: 0 / 447 MB, free: 6.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03343/0.3148, allocations: 4.822 MB / 451.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.42, allocations: 3.516 kB / 451.9 MB, free: 1.578 MB / 350.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.418477481929585]