Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.576/1.576, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003508, allocations: 8 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07991/0.08029, allocations: 38.77 MB / 272.1 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3476/0.428, allocations: 78.6 MB / 350.7 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/0.4283, allocations: 88.02 kB / 350.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2672/0.6955, allocations: 61.18 MB / 412 MB, free: 3.719 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.6956, allocations: 0 / 412 MB, free: 3.719 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001791/0.6958, allocations: 55.98 kB / 412 MB, free: 3.664 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01388/0.7097, allocations: 3.162 MB / 415.2 MB, free: 448 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.7097, allocations: 12.02 kB / 415.2 MB, free: 436 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002361/0.7121, allocations: 0.536 MB / 415.7 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01555/0.7277, allocations: 1.989 MB / 417.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01378/0.7415, allocations: 3.561 MB / 421.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002993/0.7419, allocations: 205.4 kB / 421.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001645/0.7435, allocations: 279.8 kB / 421.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02183/0.7654, allocations: 7.949 MB / 429.7 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002019/0.7656, allocations: 59.47 kB / 429.8 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001128/0.7668, allocations: 151.8 kB / 429.9 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2321/0.9989, allocations: 0.7671 MB / 430.7 MB, free: 79.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/1.018, allocations: 6.542 MB / 437.2 MB, free: 79.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05191/1.07, allocations: 41.38 MB / 478.6 MB, free: 51.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01037/1.081, allocations: 2.959 MB / 481.6 MB, free: 50.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008705/1.082, allocations: 0.6399 MB / 482.2 MB, free: 49.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/1.082, allocations: 46.67 kB / 482.3 MB, free: 49.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=120): time 5.29e-06/1.082, allocations: 0 / 482.3 MB, free: 49.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=154): time 0.1339/1.216, allocations: 23.13 MB / 0.4935 GB, free: 43.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/1.216, allocations: 147 kB / 0.4937 GB, free: 43.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006562/1.222, allocations: 2.907 MB / 0.4965 GB, free: 42.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004889/1.223, allocations: 51.66 kB / 0.4966 GB, free: 42.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/1.225, allocations: 2.301 MB / 0.4988 GB, free: 40.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001065/1.226, allocations: 0.6034 MB / 0.4994 GB, free: 40.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000675/1.226, allocations: 100 kB / 0.4995 GB, free: 39.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003096/1.227, allocations: 0.5248 MB / 0.5 GB, free: 39.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00546/1.232, allocations: 2.398 MB / 0.5024 GB, free: 37.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007273/1.24, allocations: 5.556 MB / 0.5078 GB, free: 30.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007476/1.247, allocations: 3.571 MB / 0.5113 GB, free: 27.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.859e-05/1.247, allocations: 32 kB / 0.5113 GB, free: 27.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.04212/1.289, allocations: 11.4 MB / 0.5224 GB, free: 16.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.922e-05/1.29, allocations: 57 kB / 0.5225 GB, free: 16.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/1.29, allocations: 112 kB / 0.5226 GB, free: 16.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02947/1.319, allocations: 4.166 MB / 0.5267 GB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00889/1.328, allocations: 1.162 MB / 0.5278 GB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07578/1.404, allocations: 14.25 MB / 0.5417 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009451/1.413, allocations: 372.1 kB / 0.5421 GB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.415, allocations: 325.1 kB / 0.5424 GB, free: 12.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * Number of states: 0 () * Number of discrete variables: 15 (ground.fixed.color[3],ground.fixed.color[2],ground.fixed.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],wheel1.body.sphereColor[3],wheel1.body.sphereColor[2],wheel1.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (616): * Single equations (assignments): 606 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(3,88.9%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006582/1.422, allocations: 1.594 MB / 0.5439 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/1.423, allocations: 284.4 kB / 0.5442 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03918/1.462, allocations: 6.957 MB / 0.551 GB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.802e-05/1.463, allocations: 20.7 kB / 0.551 GB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.874e-05/1.463, allocations: 8 kB / 0.551 GB, free: 3.406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-05/1.463, allocations: 7.984 kB / 0.551 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3001/1.763, allocations: 14.67 MB / 0.5654 GB, free: 86.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.652e-05/1.763, allocations: 0 / 0.5654 GB, free: 86.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002078/1.765, allocations: 228.5 kB / 0.5656 GB, free: 86.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02735/1.792, allocations: 4.76 MB / 0.5702 GB, free: 86.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005868/1.793, allocations: 52.41 kB / 0.5703 GB, free: 86.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03655/1.83, allocations: 14.39 MB / 0.5843 GB, free: 84.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.83, allocations: 0 / 0.5843 GB, free: 84.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04055/1.87, allocations: 11.13 MB / 0.5952 GB, free: 80.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/1.871, allocations: 347.3 kB / 0.5955 GB, free: 80.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/1.873, allocations: 37.62 kB / 0.5956 GB, free: 80.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003893/1.877, allocations: 199 kB / 0.5958 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008974/1.878, allocations: 114 kB / 0.5959 GB, free: 80.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002601/1.878, allocations: 46.66 kB / 0.5959 GB, free: 80.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005357/1.883, allocations: 2.033 MB / 0.5979 GB, free: 80 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.883, allocations: 0 / 0.5979 GB, free: 80 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006499/1.89, allocations: 0.9048 MB / 0.5988 GB, free: 79.89 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (wheel1.x,wheel1.y,wheel1.angles[1],wheel1.angles[2],wheel1.angles[3],wheel1.der_angles[1],wheel1.der_angles[2],wheel1.der_angles[3]) * 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 (104): * Single equations (assignments): 94 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(3,88.9%),(2,100.0%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04031/1.93, allocations: 11.97 MB / 0.6105 GB, free: 75.7 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2674:5-2678:74:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2674:5-2678:74:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01869/1.949, allocations: 6.868 MB / 0.6172 GB, free: 70.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.949, allocations: 3.219 kB / 0.6172 GB, free: 70.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01022/1.959, allocations: 3.232 MB / 0.6203 GB, free: 67.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002888/1.962, allocations: 313.5 kB / 0.6206 GB, free: 67.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3519/2.314, allocations: 109.8 MB / 0.7279 GB, free: 54.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004895/2.319, allocations: 2.558 MB / 0.7304 GB, free: 53.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003275/2.322, allocations: 1.308 MB / 0.7317 GB, free: 53.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/2.322, allocations: 0 / 0.7317 GB, free: 53.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.765/7.087, allocations: 153.1 MB / 0.8812 GB, free: 76.75 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat