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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009567/0.0009567, allocations: 179.5 kB / 17.04 MB, free: 4.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.177/1.177, allocations: 223.3 MB / 241 MB, free: 10.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007299/0.0007299, allocations: 100.6 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 4 kB / 351.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2002, allocations: 50.41 MB / 402.2 MB, free: 32.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.001723/0.202, allocations: 1.82 MB / 404 MB, free: 30.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008328/0.2029, allocations: 0.643 MB / 404.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.203, allocations: 7.938 kB / 404.7 MB, free: 30.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.2031, allocations: 31.72 kB / 404.7 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.2033, allocations: 32.83 kB / 404.7 MB, free: 30 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.2035, allocations: 73.2 kB / 404.8 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.2037, allocations: 203.8 kB / 405 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.2038, allocations: 84.05 kB / 405.1 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.204, allocations: 71.64 kB / 405.2 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.2041, allocations: 79.56 kB / 405.2 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.2041, allocations: 7.938 kB / 405.2 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.289e-05/0.2042, allocations: 19.98 kB / 405.3 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.87e-05/0.2042, allocations: 39.83 kB / 405.3 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.2043, allocations: 60.55 kB / 405.4 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.2044, allocations: 157.2 kB / 405.5 MB, free: 29.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.2044, allocations: 4 kB / 405.5 MB, free: 29.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2044, allocations: 0 / 405.5 MB, free: 29.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.2044, allocations: 3.938 kB / 405.5 MB, free: 29.21 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.0006595/0.2051, allocations: 0.5096 MB / 406 MB, free: 28.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2051, allocations: 12.03 kB / 406 MB, free: 28.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.2052, allocations: 27.67 kB / 406.1 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.2054, allocations: 246.5 kB / 406.3 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2055, allocations: 16.44 kB / 406.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.2055, allocations: 24 kB / 406.3 MB, free: 28.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.2059, allocations: 250.7 kB / 406.6 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.2059, allocations: 4 kB / 406.6 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.206, allocations: 8 kB / 406.6 MB, free: 28.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.783e-05/0.206, allocations: 16.42 kB / 406.6 MB, free: 28.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003818/0.2064, allocations: 209.5 kB / 406.8 MB, free: 27.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008727/0.2073, allocations: 0.8265 MB / 407.7 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.2076, allocations: 186.9 kB / 407.8 MB, free: 26.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.2078, allocations: 116.2 kB / 407.9 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.264e-05/0.2079, allocations: 89.28 kB / 408 MB, free: 26.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.651e-05/0.2079, allocations: 34.75 kB / 408.1 MB, free: 26.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.353e-06/0.2079, allocations: 0 / 408.1 MB, free: 26.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.00119/0.2091, allocations: 0.7433 MB / 408.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.2091, allocations: 59.34 kB / 408.9 MB, free: 25.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.2093, allocations: 217 kB / 409.1 MB, free: 25.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.2093, allocations: 29.7 kB / 409.1 MB, free: 25.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.617e-05/0.2094, allocations: 144.4 kB / 409.3 MB, free: 25.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/0.2094, allocations: 94.67 kB / 409.3 MB, free: 25.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.2094, allocations: 4 kB / 409.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.2095, allocations: 334.8 kB / 409.7 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.2097, allocations: 87.95 kB / 409.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.2099, allocations: 123.4 kB / 409.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.21, allocations: 106 kB / 410 MB, free: 24.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.2101, allocations: 0 / 410 MB, free: 24.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004233/0.2105, allocations: 293.1 kB / 410.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2105, allocations: 8 kB / 410.3 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2105, allocations: 8 kB / 410.3 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2105, allocations: 0 / 410.3 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.2108, allocations: 59.95 kB / 410.3 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.2108, allocations: 7.938 kB / 410.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.2109, allocations: 15.98 kB / 410.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.211, allocations: 15.98 kB / 410.4 MB, free: 24.04 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 9.687e-05/0.2111, allocations: 137.8 kB / 410.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.2111, allocations: 31.67 kB / 410.5 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004877/0.2116, allocations: 300.8 kB / 410.8 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2116, allocations: 4 kB / 410.8 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2116, allocations: 4 kB / 410.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2116, allocations: 0 / 410.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008066/0.2125, allocations: 0.7022 MB / 411.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2125, allocations: 0 / 411.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.2127, allocations: 59.91 kB / 411.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2127, allocations: 0 / 411.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.2128, allocations: 8 kB / 411.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2128, allocations: 0 / 411.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2128, allocations: 0 / 411.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006248/0.2134, allocations: 0.4926 MB / 412.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.705e-05/0.2135, allocations: 116.9 kB / 412.2 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.2135, allocations: 8 kB / 412.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.2137, allocations: 15.98 kB / 412.2 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.2137, allocations: 19.97 kB / 412.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.2137, allocations: 4 kB / 412.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.835e-05/0.2138, allocations: 164.4 kB / 412.4 MB, free: 21.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2138, allocations: 0 / 412.4 MB, free: 21.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.2141, allocations: 48 kB / 412.5 MB, free: 21.83 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.0001399/0.2143, allocations: 115.2 kB / 412.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004185/0.2147, allocations: 225.3 kB / 412.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2147, allocations: 0 / 412.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.2149, allocations: 128.4 kB / 412.9 MB, free: 21.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.2152, allocations: 35.64 kB / 413 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00091/0.2161, allocations: 0.8595 MB / 413.8 MB, free: 20.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.2163, allocations: 0.7603 MB / 414.6 MB, free: 19.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.2163, allocations: 27.42 kB / 414.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2164, allocations: 0 / 414.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of Templates: time 0.003598/0.22, allocations: 2.813 MB / 417.4 MB, free: 16.81 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) 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","../files/Modelica_4.0.0_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