Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.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.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009342/0.0009342, allocations: 201 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000786/0.000786, allocations: 99.91 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002013, allocations: 4 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1888, allocations: 51.28 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.RollingWheel): time 0.001685/0.1905, allocations: 1.766 MB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006642/0.1912, allocations: 0.5349 MB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.687e-05/0.1913, allocations: 4.5 kB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.1915, allocations: 27.78 kB / 410.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.125e-05/0.1915, allocations: 41.33 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001373/0.1917, allocations: 40.44 kB / 410.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.1919, allocations: 191.1 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.192, allocations: 59.58 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.669e-05/0.1921, allocations: 59.8 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.05e-05/0.1922, allocations: 86.83 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.1922, allocations: 8 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.478e-05/0.1922, allocations: 8 kB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.1923, allocations: 23.92 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.219e-05/0.1923, allocations: 101.3 kB / 411.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.1925, allocations: 160.8 kB / 411.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1925, allocations: 0 / 411.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1925, allocations: 0 / 411.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1925, allocations: 0 / 411.2 MB, free: 24.58 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0004542/0.1929, allocations: 443.8 kB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.193, allocations: 8.031 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.193, allocations: 54.73 kB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.389e-05/0.1931, allocations: 20.66 kB / 411.7 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.1932, allocations: 212.1 kB / 411.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.1933, allocations: 12.38 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.1933, allocations: 32.2 kB / 412 MB, free: 23.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.1936, allocations: 157.5 kB / 412.1 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1936, allocations: 0 / 412.1 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1936, allocations: 12 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1936, allocations: 4 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.1938, allocations: 99.94 kB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.1945, allocations: 0.6041 MB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.1947, allocations: 122.6 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.027e-05/0.1948, allocations: 44.72 kB / 413 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.1948, allocations: 4 kB / 413 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.1948, allocations: 30.56 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.1948, allocations: 0 / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.001242/0.196, allocations: 0.8047 MB / 413.9 MB, free: 21.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.074e-05/0.1961, allocations: 59.41 kB / 413.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.02e-05/0.1962, allocations: 162.2 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.1962, allocations: 29.64 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.057e-05/0.1962, allocations: 128.3 kB / 414.2 MB, free: 21.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.1963, allocations: 67 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-06/0.1963, allocations: 8 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.1963, allocations: 322.8 kB / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.644e-05/0.1964, allocations: 47.98 kB / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.425e-05/0.1965, allocations: 78.78 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.1967, allocations: 143.2 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.1967, allocations: 7.938 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002995/0.197, allocations: 206.1 kB / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1971, allocations: 8 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1971, allocations: 0 / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001513/0.1972, allocations: 44.92 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.1974, allocations: 31.98 kB / 415.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007985/0.1982, allocations: 1.421 MB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.1983, allocations: 8 kB / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.1983, allocations: 8.172 kB / 416.6 MB, free: 18.71 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.441e-05/0.1984, allocations: 145.4 kB / 416.8 MB, free: 18.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.1984, allocations: 15.81 kB / 416.8 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.535e-05/0.1984, allocations: 25.19 kB / 416.8 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1984, allocations: 0 / 416.8 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.1985, allocations: 8.062 kB / 416.8 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1985, allocations: 3.984 kB / 416.8 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005802/0.1991, allocations: 0.5877 MB / 417.4 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1991, allocations: 4 kB / 417.4 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.1992, allocations: 27.98 kB / 417.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.213e-05/0.1993, allocations: 32.84 kB / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.1993, allocations: 3.984 kB / 417.5 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006611/0.2, allocations: 1.37 MB / 418.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2, allocations: 0 / 418.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003795/0.2004, allocations: 349.2 kB / 419.2 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.608e-05/0.2004, allocations: 88.95 kB / 419.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.2004, allocations: 7.938 kB / 419.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.098e-05/0.2005, allocations: 4 kB / 419.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.2006, allocations: 19.97 kB / 419.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.2006, allocations: 4 kB / 419.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.501e-05/0.2007, allocations: 116.1 kB / 419.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2007, allocations: 64 / 419.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002515/0.2009, allocations: 52 kB / 419.5 MB, free: 15.61 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.phi,inertia.w) * 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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005282/0.2015, allocations: 0.873 MB / 420.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000376/0.2019, allocations: 250.5 kB / 420.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2019, allocations: 0 / 420.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.2021, allocations: 190.9 kB / 420.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.2024, allocations: 19.98 kB / 420.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.2039, allocations: 1.28 MB / 422.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.204, allocations: 0.7284 MB / 422.8 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.217e-05/0.2041, allocations: 47.42 kB / 422.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2041, allocations: 0 / 422.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.834/3.038, allocations: 3.478 MB / 426.3 MB, free: 8.609 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/RollingWheel/RollingWheel.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches