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) 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) 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 111.4 kB / 17.68 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 192 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 50.81 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1603, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003967/0.1644, allocations: 2.191 MB / 353.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.1656, allocations: 0.701 MB / 354.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.1658, allocations: 4 kB / 354.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.166, allocations: 47.47 kB / 354.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.1662, allocations: 47.62 kB / 354.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.1665, allocations: 99.77 kB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.1668, allocations: 235.7 kB / 354.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.167, allocations: 115.6 kB / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.1672, allocations: 91.56 kB / 355 MB, free: 152 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.1674, allocations: 103.5 kB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.268e-05/0.1674, allocations: 23.94 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.731e-05/0.1675, allocations: 32.05 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.718e-05/0.1676, allocations: 59.7 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1677, allocations: 103.3 kB / 355.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.168, allocations: 247 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.168, allocations: 0 / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.168, allocations: 3.938 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.168, allocations: 3.984 kB / 355.6 MB, free: 15.58 MB / 302.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.0009006/0.1689, allocations: 0.5457 MB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.169, allocations: 15.89 kB / 356.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.682e-05/0.1691, allocations: 28.56 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1694, allocations: 264.1 kB / 356.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.1694, allocations: 12.81 kB / 356.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.1695, allocations: 24.12 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004623/0.17, allocations: 262.6 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.17, allocations: 0 / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.17, allocations: 12 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.17, allocations: 8.438 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.1705, allocations: 193.5 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.1717, allocations: 0.8262 MB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.172, allocations: 182.5 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.1722, allocations: 109.2 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.1723, allocations: 88.98 kB / 358.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.1724, allocations: 34.56 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.794e-06/0.1724, allocations: 0 / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001504/0.1739, allocations: 0.7287 MB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.1739, allocations: 55.41 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.1741, allocations: 209 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.1742, allocations: 33.7 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.906e-05/0.1743, allocations: 144.4 kB / 359.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.087e-05/0.1743, allocations: 86.8 kB / 359.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.733e-05/0.1744, allocations: 53.69 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1746, allocations: 338.8 kB / 359.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.1748, allocations: 83.94 kB / 359.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.175, allocations: 123.9 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.1754, allocations: 220.8 kB / 360.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1754, allocations: 0 / 360.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004895/0.1759, allocations: 275.4 kB / 360.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1759, allocations: 8 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1759, allocations: 0 / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.176, allocations: 4 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.1762, allocations: 64.02 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1762, allocations: 7.875 kB / 360.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.1764, allocations: 15.98 kB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.1764, allocations: 11.94 kB / 360.6 MB, free: 10.25 MB / 302.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.0001339/0.1765, allocations: 141.8 kB / 360.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.1766, allocations: 27.66 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005659/0.1772, allocations: 288.4 kB / 361 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1772, allocations: 4 kB / 361 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1772, allocations: 0 / 361 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.1772, allocations: 3.984 kB / 361 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1782, allocations: 0.6839 MB / 361.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1782, allocations: 0 / 361.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.1785, allocations: 63.88 kB / 361.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1785, allocations: 3.984 kB / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.1786, allocations: 11.94 kB / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1786, allocations: 0 / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1786, allocations: 0 / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007514/0.1793, allocations: 489.3 kB / 362.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1794, allocations: 116.9 kB / 362.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.1795, allocations: 11.94 kB / 362.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.1796, allocations: 11.98 kB / 362.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.1797, allocations: 11.98 kB / 362.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.1797, allocations: 15.98 kB / 362.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.1798, allocations: 152.5 kB / 362.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1798, allocations: 0 / 362.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1801, allocations: 48 kB / 362.6 MB, free: 8.082 MB / 302.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.0001654/0.1803, allocations: 123 kB / 362.7 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004664/0.1808, allocations: 216 kB / 363 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1808, allocations: 0 / 363 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.181, allocations: 119.8 kB / 363.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.1814, allocations: 36.69 kB / 363.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.1824, allocations: 0.6866 MB / 363.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.1828, allocations: 0.7678 MB / 364.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.1829, allocations: 41.92 kB / 364.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.345e-05/0.183, allocations: 23.42 kB / 364.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.183, allocations: 0 / 364.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of Templates: time 0.006252/0.1893, allocations: 2.024 MB / 366.7 MB, free: 3.992 MB / 302.1 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 -s cvode -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","/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) Reference file matches