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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 226.5 MB / 244.7 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000734/0.000734, allocations: 94.59 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002304, allocations: 11.98 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1832, allocations: 51.28 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.001614/0.1849, allocations: 2.031 MB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003179/0.1852, allocations: 247 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.183e-05/0.1853, allocations: 7.938 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.1854, allocations: 32.48 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.1855, allocations: 77.92 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001245/0.1857, allocations: 39.95 kB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.1858, allocations: 274.7 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.186, allocations: 76.92 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.582e-05/0.1861, allocations: 95.64 kB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.757e-05/0.1862, allocations: 96.56 kB / 411.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.1862, allocations: 12 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.214e-05/0.1863, allocations: 12.62 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.662e-05/0.1863, allocations: 43.83 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.363e-05/0.1864, allocations: 147.5 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.1865, allocations: 208.6 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1865, allocations: 0 / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1865, allocations: 0 / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.1865, allocations: 0 / 411.5 MB, free: 24.29 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.0005079/0.1871, allocations: 0.4968 MB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1871, allocations: 12.03 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.1871, allocations: 66.66 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.858e-05/0.1872, allocations: 28.56 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.1874, allocations: 244.6 kB / 412.3 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1874, allocations: 16.94 kB / 412.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.1874, allocations: 28.36 kB / 412.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.1877, allocations: 244 kB / 412.6 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.1878, allocations: 11.84 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.1878, allocations: 8 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1878, allocations: 4 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002121/0.188, allocations: 157.5 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007611/0.1888, allocations: 0.7969 MB / 413.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.1892, allocations: 302.4 kB / 413.9 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1893, allocations: 134.5 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.1894, allocations: 7.938 kB / 414 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.1894, allocations: 42.5 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.473e-06/0.1894, allocations: 0 / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.001843/0.1912, allocations: 1.941 MB / 416 MB, free: 19.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.1913, allocations: 106.8 kB / 416.1 MB, free: 19.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.1914, allocations: 198.8 kB / 416.3 MB, free: 18.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.1914, allocations: 37.7 kB / 416.3 MB, free: 18.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.823e-05/0.1915, allocations: 140.8 kB / 416.5 MB, free: 18.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.226e-05/0.1915, allocations: 165.6 kB / 416.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.1916, allocations: 8 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.1916, allocations: 334.8 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.1917, allocations: 92.83 kB / 417.1 MB, free: 18.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.1919, allocations: 158.3 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.1922, allocations: 260.1 kB / 417.5 MB, free: 17.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1922, allocations: 0 / 417.5 MB, free: 17.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0003837/0.1926, allocations: 347.2 kB / 417.8 MB, free: 17.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1926, allocations: 16.03 kB / 417.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1926, allocations: 0 / 417.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1926, allocations: 4 kB / 417.8 MB, free: 17.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.1929, allocations: 99.83 kB / 417.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1929, allocations: 4 kB / 417.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.017e-05/0.193, allocations: 4 kB / 417.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.193, allocations: 16.94 kB / 418 MB, free: 17.25 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 9.089e-05/0.1931, allocations: 149.7 kB / 418.1 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.121e-05/0.1932, allocations: 31.66 kB / 418.1 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.214e-05/0.1933, allocations: 41.86 kB / 418.2 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1933, allocations: 4 kB / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1933, allocations: 4 kB / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1933, allocations: 3.984 kB / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009448/0.1942, allocations: 1.05 MB / 419.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1943, allocations: 4 kB / 419.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003059/0.1946, allocations: 87.84 kB / 419.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1946, allocations: 7.938 kB / 419.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.1946, allocations: 15.98 kB / 419.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1946, allocations: 4 kB / 419.4 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1946, allocations: 4 kB / 419.4 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.1951, allocations: 0.7149 MB / 420.1 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.1952, allocations: 112.7 kB / 420.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.1952, allocations: 12 kB / 420.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.1954, allocations: 12 kB / 420.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.1954, allocations: 27.97 kB / 420.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1955, allocations: 23.98 kB / 420.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.454e-05/0.1955, allocations: 132.4 kB / 420.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1955, allocations: 0 / 420.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003569/0.1959, allocations: 72 kB / 420.5 MB, free: 14.6 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 0.0006338/0.1965, allocations: 1.27 MB / 421.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.1968, allocations: 255.8 kB / 422 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1969, allocations: 0 / 422 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.197, allocations: 144.5 kB / 422.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006472/0.1977, allocations: 67.97 kB / 422.2 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.1996, allocations: 2.055 MB / 424.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.1998, allocations: 0.7686 MB / 425 MB, free: 9.859 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.1999, allocations: 91.41 kB / 425.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1999, allocations: 0 / 425.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.575/2.775, allocations: 4.046 MB / 429.1 MB, free: 5.719 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Damper_res.mat","/var/lib/jenkins1/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) "" Variables in the reference:time,damper1.s_rel,damper1.v_rel,damper2.s_rel,damper2.v_rel,springDamper3.s_rel,springDamper3.v_rel Variables in the result:damper1.d,damper1.f,damper1.flange_a.f,damper1.flange_a.s,damper1.flange_b.f,damper1.flange_b.s,damper1.lossPower,damper1.s_nominal,damper1.s_rel,damper1.stateSelect,damper1.useHeatPort,damper1.v_rel,damper2.d,damper2.f,damper2.flange_a.f,damper2.flange_a.s,damper2.flange_b.f,damper2.flange_b.s,damper2.lossPower,damper2.s_nominal,damper2.s_rel,damper2.stateSelect,damper2.useHeatPort,damper2.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(damper2.flange_a.s),der(damper2.s_rel),der(damper2.v_rel),der(der(damper2.flange_a.s)),der(der(mass1.flange_b.s)),der(der(mass3.flange_b.s)),der(mass1.flange_b.s),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(mass3.flange_b.s),der(mass3.s),der(mass3.v),der(springDamper3.s_rel),der(springDamper3.v_rel),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,fixed3.flange.f,fixed3.flange.s,fixed3.s0,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,mass3.L,mass3.a,mass3.flange_a.f,mass3.flange_a.s,mass3.flange_b.f,mass3.flange_b.s,mass3.m,mass3.s,mass3.stateSelect,mass3.v,spring2.c,spring2.f,spring2.flange_a.f,spring2.flange_a.s,spring2.flange_b.f,spring2.flange_b.s,spring2.s_rel,spring2.s_rel0,springDamper3.c,springDamper3.d,springDamper3.f,springDamper3.f_c,springDamper3.f_d,springDamper3.flange_a.f,springDamper3.flange_a.s,springDamper3.flange_b.f,springDamper3.flange_b.s,springDamper3.lossPower,springDamper3.s_nominal,springDamper3.s_rel,springDamper3.s_rel0,springDamper3.stateSelect,springDamper3.useHeatPort,springDamper3.v_rel,time