Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001001, allocations: 194.3 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.6 MB / 244.3 MB, free: 8.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007792/0.0007791, allocations: 98.66 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002176, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2241, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00178/0.2259, allocations: 1.835 MB / 409.3 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008716/0.2268, allocations: 0.6735 MB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.2269, allocations: 7.938 kB / 410 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.2271, allocations: 32.47 kB / 410 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.2272, allocations: 32.88 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.2274, allocations: 77.09 kB / 410.1 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.2276, allocations: 211.7 kB / 410.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.2278, allocations: 85.27 kB / 410.4 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.228, allocations: 71.66 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.2281, allocations: 87.53 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.2281, allocations: 4 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.202e-05/0.2282, allocations: 20 kB / 410.6 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.2282, allocations: 39.83 kB / 410.7 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.2283, allocations: 57.58 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.2284, allocations: 168.5 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2284, allocations: 0 / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2285, allocations: 4 kB / 410.9 MB, free: 24.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2285, allocations: 0 / 410.9 MB, free: 24.42 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.0006995/0.2292, allocations: 0.5105 MB / 411.4 MB, free: 23.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.2292, allocations: 8.031 kB / 411.4 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.2293, allocations: 31.7 kB / 411.4 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.2296, allocations: 246.4 kB / 411.7 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.2296, allocations: 16.44 kB / 411.7 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.428e-05/0.2296, allocations: 27.98 kB / 411.7 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004157/0.2301, allocations: 254.6 kB / 412 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2301, allocations: 3.938 kB / 412 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.2301, allocations: 16 kB / 412 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.2301, allocations: 12.38 kB / 412 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.2305, allocations: 197.6 kB / 412.2 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008941/0.2314, allocations: 0.8264 MB / 413 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.2317, allocations: 195 kB / 413.2 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.2319, allocations: 120 kB / 413.3 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.525e-05/0.232, allocations: 85.28 kB / 413.4 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.232, allocations: 30.75 kB / 413.4 MB, free: 21.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.2321, allocations: 3.938 kB / 413.4 MB, free: 21.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001189/0.2332, allocations: 0.7553 MB / 414.2 MB, free: 20.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.2333, allocations: 51.41 kB / 414.2 MB, free: 20.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.2334, allocations: 213 kB / 414.5 MB, free: 20.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.2334, allocations: 29.7 kB / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.2335, allocations: 148.4 kB / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.2335, allocations: 86.73 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.148e-05/0.2336, allocations: 8 kB / 414.7 MB, free: 20.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.854e-05/0.2336, allocations: 330.8 kB / 415 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.2338, allocations: 91.94 kB / 415.1 MB, free: 19.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.234, allocations: 123.4 kB / 415.3 MB, free: 19.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.2342, allocations: 106.8 kB / 415.4 MB, free: 19.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2342, allocations: 0 / 415.4 MB, free: 19.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004241/0.2346, allocations: 289.1 kB / 415.6 MB, free: 19.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.2346, allocations: 4 kB / 415.6 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2347, allocations: 4 kB / 415.6 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2347, allocations: 0 / 415.6 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.2349, allocations: 67.89 kB / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2349, allocations: 0 / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.2351, allocations: 19.98 kB / 415.7 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.2351, allocations: 4 kB / 415.7 MB, free: 19.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.954e-05/0.2352, allocations: 153.8 kB / 415.9 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.2352, allocations: 23.66 kB / 415.9 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004955/0.2357, allocations: 303.2 kB / 416.2 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2357, allocations: 4 kB / 416.2 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2358, allocations: 3.938 kB / 416.2 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2358, allocations: 3.984 kB / 416.2 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008034/0.2366, allocations: 0.6903 MB / 416.9 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2366, allocations: 4 kB / 416.9 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.2368, allocations: 63.89 kB / 417 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2369, allocations: 0 / 417 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2369, allocations: 4 kB / 417 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2369, allocations: 0 / 417 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2369, allocations: 3.953 kB / 417 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006592/0.2376, allocations: 0.4926 MB / 417.5 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-05/0.2376, allocations: 116.9 kB / 417.6 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.2377, allocations: 4 kB / 417.6 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.2378, allocations: 15.98 kB / 417.6 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.2379, allocations: 23.92 kB / 417.6 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.2379, allocations: 8 kB / 417.6 MB, free: 17.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.685e-05/0.238, allocations: 152.5 kB / 417.8 MB, free: 17.08 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.238, allocations: 4 kB / 417.8 MB, free: 17.08 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002534/0.2383, allocations: 44 kB / 417.8 MB, free: 17.04 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001457/0.2384, allocations: 115.2 kB / 417.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004186/0.2389, allocations: 228.6 kB / 418.2 MB, free: 16.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2389, allocations: 4 kB / 418.2 MB, free: 16.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.2391, allocations: 123.8 kB / 418.3 MB, free: 16.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.2394, allocations: 23.56 kB / 418.3 MB, free: 16.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008902/0.2403, allocations: 0.861 MB / 419.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.2404, allocations: 0.7642 MB / 419.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.41e-05/0.2405, allocations: 27.44 kB / 420 MB, free: 14.83 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2405, allocations: 0 / 420 MB, free: 14.83 MB / 298.7 MB Notification: Performance of Templates: time 0.003646/0.2442, allocations: 2.812 MB / 422.8 MB, free: 12.02 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.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