Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.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.Mechanics.Translational.Examples.Damper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|damper2.s_rel|damper2.v_rel|springDamper3.s_rel|springDamper3.v_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper") translateModel(Modelica.Mechanics.Translational.Examples.Damper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|damper2.s_rel|damper2.v_rel|springDamper3.s_rel|springDamper3.v_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 193.2 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.218/1.218, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008554/0.0008554, allocations: 97.53 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001937/0.0001938, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1822, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.001541/0.1838, allocations: 2.027 MB / 409.5 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000307/0.1841, allocations: 244 kB / 409.8 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.1842, allocations: 4 kB / 409.8 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.472e-05/0.1843, allocations: 31.77 kB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.181e-05/0.1844, allocations: 72.66 kB / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001127/0.1845, allocations: 42.25 kB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.1847, allocations: 270.7 kB / 410.2 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1848, allocations: 70.94 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.087e-05/0.1849, allocations: 87.66 kB / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.587e-05/0.185, allocations: 110.8 kB / 410.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.185, allocations: 12 kB / 410.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.081e-05/0.1851, allocations: 12 kB / 410.5 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.189e-05/0.1851, allocations: 39.84 kB / 410.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.328e-05/0.1851, allocations: 69.58 kB / 410.6 MB, free: 24.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.1853, allocations: 212.4 kB / 410.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1853, allocations: 0 / 410.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1853, allocations: 0 / 410.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1853, allocations: 0 / 410.8 MB, free: 24.55 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0004921/0.1858, allocations: 0.5121 MB / 411.3 MB, free: 24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.1858, allocations: 8.031 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.311e-05/0.1859, allocations: 31.62 kB / 411.3 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.1861, allocations: 231.4 kB / 411.5 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.1861, allocations: 20.56 kB / 411.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.1861, allocations: 24 kB / 411.6 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.1864, allocations: 243.4 kB / 411.8 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.1864, allocations: 7.906 kB / 411.8 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.1865, allocations: 11.98 kB / 411.8 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1865, allocations: 8 kB / 411.9 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.1867, allocations: 160.8 kB / 412 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007073/0.1874, allocations: 0.8048 MB / 412.8 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003475/0.1878, allocations: 291.7 kB / 413.1 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.1879, allocations: 134.7 kB / 413.2 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.188, allocations: 4 kB / 413.2 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.355e-05/0.188, allocations: 42.56 kB / 413.3 MB, free: 21.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.423e-06/0.188, allocations: 0 / 413.3 MB, free: 21.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.001774/0.1898, allocations: 1.948 MB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.1898, allocations: 110.8 kB / 415.3 MB, free: 19.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.1899, allocations: 187.5 kB / 415.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.19, allocations: 37.7 kB / 415.6 MB, free: 19.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.701e-05/0.19, allocations: 140.6 kB / 415.7 MB, free: 19.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.035e-05/0.1901, allocations: 165.6 kB / 415.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/0.1901, allocations: 8 kB / 415.9 MB, free: 18.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.1901, allocations: 338.8 kB / 416.2 MB, free: 18.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1903, allocations: 92.83 kB / 416.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.1904, allocations: 158.3 kB / 416.4 MB, free: 18.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.1906, allocations: 110.2 kB / 416.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.1906, allocations: 0 / 416.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000347/0.1909, allocations: 341 kB / 416.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1909, allocations: 11.12 kB / 416.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1909, allocations: 0 / 416.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.191, allocations: 8.094 kB / 416.9 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.1912, allocations: 95.89 kB / 417 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.1913, allocations: 4 kB / 417 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.517e-05/0.1914, allocations: 8 kB / 417 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.1914, allocations: 16 kB / 417 MB, free: 17.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * 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.949e-05/0.1915, allocations: 157.7 kB / 417.2 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-05/0.1916, allocations: 31.58 kB / 417.2 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.605e-05/0.1916, allocations: 37.86 kB / 417.2 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1916, allocations: 8 kB / 417.2 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1916, allocations: 4 kB / 417.2 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.1916, allocations: 0 / 417.2 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009107/0.1926, allocations: 1.055 MB / 418.3 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1926, allocations: 8.031 kB / 418.3 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003133/0.1929, allocations: 83.91 kB / 418.4 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/0.1929, allocations: 11.95 kB / 418.4 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.1929, allocations: 8.094 kB / 418.4 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1929, allocations: 11.92 kB / 418.4 MB, free: 16.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1929, allocations: 7.938 kB / 418.4 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.1934, allocations: 0.7132 MB / 419.1 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.625e-05/0.1935, allocations: 104.9 kB / 419.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.1935, allocations: 11.95 kB / 419.3 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.1937, allocations: 12 kB / 419.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.1937, allocations: 27.97 kB / 419.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.1938, allocations: 12 kB / 419.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.347e-05/0.1938, allocations: 139.3 kB / 419.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1938, allocations: 8 kB / 419.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000334/0.1942, allocations: 68 kB / 419.5 MB, free: 15.1 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * 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 (45): * Single equations (assignments): 45 * 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 8.56e-05/0.1943, allocations: 115.1 kB / 419.6 MB, free: 14.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003365/0.1946, allocations: 270.9 kB / 419.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1946, allocations: 0 / 419.9 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.1948, allocations: 148 kB / 420 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.1954, allocations: 55.97 kB / 420.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009929/0.1964, allocations: 1.118 MB / 421.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.1965, allocations: 0.7724 MB / 422 MB, free: 12.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.642e-05/0.1966, allocations: 27.44 kB / 422 MB, free: 12.5 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.1966, allocations: 0 / 422 MB, free: 12.5 MB / 298.7 MB Notification: Performance of Templates: time 0.003643/0.2002, allocations: 3.403 MB / 425.4 MB, free: 9.109 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches