Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.956/1.956, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003552, allocations: 19.98 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09413, allocations: 44.49 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4123/0.5065, allocations: 84.25 MB / 392.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.5069, allocations: 88.98 kB / 392.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.245/0.7518, allocations: 61.18 MB / 454 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.7519, allocations: 3.938 kB / 454 MB, free: 15.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000151/0.7521, allocations: 52 kB / 454.1 MB, free: 14.96 MB / 346.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.01341/0.7655, allocations: 3.171 MB / 457.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.7656, allocations: 8.031 kB / 457.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002081/0.7676, allocations: 0.5363 MB / 457.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0155/0.7832, allocations: 1.995 MB / 459.8 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01375/0.797, allocations: 3.552 MB / 463.4 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/0.7973, allocations: 213.7 kB / 463.6 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001236/0.7985, allocations: 278.2 kB / 463.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02111/0.8196, allocations: 7.94 MB / 471.8 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001864/0.8199, allocations: 55.47 kB / 471.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007271/0.8206, allocations: 146.3 kB / 472 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001858/0.8225, allocations: 0.7845 MB / 472.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02004/0.8425, allocations: 6.548 MB / 479.3 MB, free: 5.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1146/0.9572, allocations: 41.39 MB / 0.5085 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01288/0.9702, allocations: 2.945 MB / 0.5114 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/0.9713, allocations: 0.6379 MB / 0.512 GB, free: 7.035 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.9714, allocations: 47.06 kB / 0.512 GB, free: 6.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=120): time 4.919e-06/0.9714, allocations: 0 / 0.512 GB, free: 6.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.449/1.42, allocations: 23.13 MB / 0.5346 GB, free: 109.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/1.421, allocations: 141.2 kB / 0.5348 GB, free: 109.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006528/1.427, allocations: 2.909 MB / 0.5376 GB, free: 109.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005299/1.428, allocations: 47.95 kB / 0.5376 GB, free: 109.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/1.43, allocations: 2.299 MB / 0.5399 GB, free: 107.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.431, allocations: 0.6049 MB / 0.5405 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007823/1.432, allocations: 103.7 kB / 0.5406 GB, free: 107.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003649/1.432, allocations: 0.5308 MB / 0.5411 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00569/1.438, allocations: 2.397 MB / 0.5434 GB, free: 107.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007645/1.445, allocations: 5.554 MB / 0.5489 GB, free: 103.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007797/1.453, allocations: 3.577 MB / 0.5524 GB, free: 103.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/1.453, allocations: 32.91 kB / 0.5524 GB, free: 103.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.0428/1.496, allocations: 11.4 MB / 0.5635 GB, free: 100 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.896e-05/1.496, allocations: 49.62 kB / 0.5636 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/1.496, allocations: 118.1 kB / 0.5637 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02744/1.524, allocations: 4.163 MB / 0.5678 GB, free: 99.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008049/1.532, allocations: 1.162 MB / 0.5689 GB, free: 99.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03586/1.568, allocations: 14.25 MB / 0.5828 GB, free: 91.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00667/1.575, allocations: 366.5 kB / 0.5832 GB, free: 91.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/1.576, allocations: 325.5 kB / 0.5835 GB, free: 91.25 MB / 410.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.004053/1.58, allocations: 1.592 MB / 0.585 GB, free: 89.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008851/1.581, allocations: 284 kB / 0.5853 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03539/1.616, allocations: 6.96 MB / 0.5921 GB, free: 84.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.151e-05/1.616, allocations: 20 kB / 0.5921 GB, free: 84.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.762e-05/1.616, allocations: 10.62 kB / 0.5921 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.791e-05/1.617, allocations: 7.797 kB / 0.5921 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07605/1.693, allocations: 14.66 MB / 0.6064 GB, free: 70.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.652e-05/1.693, allocations: 0 / 0.6064 GB, free: 70.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002572/1.695, allocations: 235.6 kB / 0.6067 GB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03325/1.729, allocations: 4.759 MB / 0.6113 GB, free: 65.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005291/1.729, allocations: 45.75 kB / 0.6114 GB, free: 65.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0347/1.764, allocations: 14.38 MB / 0.6254 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.764, allocations: 4 kB / 0.6254 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03884/1.803, allocations: 11.14 MB / 0.6363 GB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/1.804, allocations: 345.3 kB / 0.6366 GB, free: 39.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008685/1.805, allocations: 37.08 kB / 0.6367 GB, free: 39.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003283/1.808, allocations: 203.7 kB / 0.6368 GB, free: 39.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000731/1.809, allocations: 104.8 kB / 0.6369 GB, free: 39.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000244/1.809, allocations: 48.67 kB / 0.637 GB, free: 39.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004678/1.814, allocations: 2.036 MB / 0.639 GB, free: 37.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.342e-06/1.814, allocations: 0 / 0.639 GB, free: 37.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006449/1.82, allocations: 0.9068 MB / 0.6399 GB, free: 36.24 MB / 410.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.04642/1.867, allocations: 11.98 MB / 0.6516 GB, free: 24.2 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:2651:5-2655: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.2/Mechanics/MultiBody/Parts.mo:2651:5-2655: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.0187/1.885, allocations: 6.868 MB / 0.6583 GB, free: 17.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.885, allocations: 0 / 0.6583 GB, free: 17.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009889/1.895, allocations: 3.213 MB / 0.6614 GB, free: 13.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/1.898, allocations: 312.6 kB / 0.6617 GB, free: 13.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4396/2.338, allocations: 109.9 MB / 0.769 GB, free: 32.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003417/2.341, allocations: 2.56 MB / 0.7715 GB, free: 31.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002581/2.344, allocations: 1.303 MB / 0.7728 GB, free: 31.34 MB / 426.7 MB Notification: Performance of SimCode: time 1.373e-06/2.344, allocations: 0 / 0.7728 GB, free: 31.34 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.899/7.243, allocations: 153.1 MB / 0.9223 GB, free: 64.02 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat