Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008826/0.0008829, allocations: 179.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 225.7 MB / 243.2 MB, free: 10.21 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007646/0.0007646, allocations: 106.1 kB / 294.4 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000226/0.000226, allocations: 4 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1931, allocations: 50.4 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002109/0.1953, allocations: 1.836 MB / 406.4 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009172/0.1962, allocations: 0.7222 MB / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.1964, allocations: 7.938 kB / 407.1 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.1965, allocations: 31.72 kB / 407.2 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.1967, allocations: 33.47 kB / 407.2 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002011/0.1969, allocations: 99.11 kB / 407.3 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.1971, allocations: 223.7 kB / 407.5 MB, free: 28.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.1973, allocations: 105.6 kB / 407.6 MB, free: 28.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.1974, allocations: 67.59 kB / 407.7 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.1976, allocations: 91.47 kB / 407.8 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.1976, allocations: 8 kB / 407.8 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.206e-05/0.1977, allocations: 16 kB / 407.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.1977, allocations: 39.78 kB / 407.8 MB, free: 28.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.79e-05/0.1978, allocations: 117 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.198, allocations: 212.7 kB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.198, allocations: 0 / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.198, allocations: 0 / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1981, allocations: 3.938 kB / 408.1 MB, free: 27.75 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.0006845/0.1987, allocations: 0.5106 MB / 408.7 MB, free: 27.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.1988, allocations: 8.031 kB / 408.7 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.906e-05/0.1988, allocations: 32.66 kB / 408.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.1991, allocations: 247.8 kB / 408.9 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.1991, allocations: 12.81 kB / 409 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.1991, allocations: 32.03 kB / 409 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/0.1996, allocations: 258.6 kB / 409.2 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1996, allocations: 0 / 409.2 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.1996, allocations: 12 kB / 409.2 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.1996, allocations: 12.42 kB / 409.3 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003736/0.2, allocations: 205.6 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.2009, allocations: 0.8223 MB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.2012, allocations: 186.5 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.2014, allocations: 114.3 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.053e-05/0.2015, allocations: 97.02 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.2015, allocations: 34.5 kB / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.2015, allocations: 0 / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001162/0.2027, allocations: 0.7515 MB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.2027, allocations: 51.41 kB / 411.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.2029, allocations: 221 kB / 411.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.2029, allocations: 29.7 kB / 411.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.242e-05/0.203, allocations: 144.4 kB / 411.9 MB, free: 23.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.203, allocations: 86.69 kB / 412 MB, free: 23.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.203, allocations: 8 kB / 412 MB, free: 23.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.692e-05/0.2031, allocations: 334.8 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.2033, allocations: 83.95 kB / 412.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.2035, allocations: 134.6 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/0.2038, allocations: 229.3 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.2038, allocations: 0 / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004096/0.2042, allocations: 293.1 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.2043, allocations: 4 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.2043, allocations: 0 / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2043, allocations: 4 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.2045, allocations: 59.95 kB / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.2046, allocations: 7.938 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.2047, allocations: 15.98 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2047, allocations: 16 kB / 413.1 MB, free: 22.44 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 9.047e-05/0.2048, allocations: 141.8 kB / 413.3 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.2049, allocations: 23.72 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004763/0.2053, allocations: 311 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2053, allocations: 4 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2054, allocations: 0 / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2054, allocations: 3.984 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007775/0.2061, allocations: 0.6927 MB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2062, allocations: 0 / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.2064, allocations: 59.89 kB / 414.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2064, allocations: 4 kB / 414.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2065, allocations: 7.938 kB / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.2065, allocations: 4 kB / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2065, allocations: 4.031 kB / 414.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/0.2071, allocations: 0.4918 MB / 414.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.869e-05/0.2072, allocations: 116.9 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.88e-05/0.2072, allocations: 11.94 kB / 415 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.2074, allocations: 15.98 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.2075, allocations: 15.97 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.2075, allocations: 12 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.698e-05/0.2076, allocations: 152.4 kB / 415.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2076, allocations: 4 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002512/0.2078, allocations: 55.98 kB / 415.3 MB, free: 20.22 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.000136/0.208, allocations: 112 kB / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004139/0.2084, allocations: 227.9 kB / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2084, allocations: 0 / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.2086, allocations: 123.8 kB / 415.7 MB, free: 19.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.2089, allocations: 28.38 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008875/0.2098, allocations: 0.8538 MB / 416.6 MB, free: 18.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.21, allocations: 0.7641 MB / 417.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.2101, allocations: 49.91 kB / 417.4 MB, free: 18.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-05/0.2102, allocations: 27.42 kB / 417.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2102, allocations: 0 / 417.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of Templates: time 0.004145/0.2143, allocations: 1.84 MB / 419.3 MB, free: 16.14 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/jenkins/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) Reference file matches