Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 194.8 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003689/0.000369, allocations: 8 kB / 264.1 MB, free: 2.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3026, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.4586, allocations: 84.26 MB / 392.8 MB, free: 8.281 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003483/0.459, allocations: 87.95 kB / 392.9 MB, free: 8.195 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5112/0.9703, allocations: 61.15 MB / 454.1 MB, free: 70.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.9703, allocations: 0 / 454.1 MB, free: 70.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001364/0.9705, allocations: 52 kB / 454.1 MB, free: 70.42 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.01306/0.9835, allocations: 3.174 MB / 457.3 MB, free: 67.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.9836, allocations: 8.031 kB / 457.3 MB, free: 67.17 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002613/0.9862, allocations: 0.5399 MB / 457.8 MB, free: 66.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01504/1.001, allocations: 1.99 MB / 459.8 MB, free: 64.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01298/1.014, allocations: 3.557 MB / 463.4 MB, free: 61.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/1.015, allocations: 213.5 kB / 463.6 MB, free: 60.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001631/1.016, allocations: 279.9 kB / 463.9 MB, free: 60.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01966/1.036, allocations: 7.947 MB / 471.8 MB, free: 51.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002083/1.036, allocations: 55.47 kB / 471.9 MB, free: 51.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001139/1.037, allocations: 139.9 kB / 472 MB, free: 51.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001619/1.039, allocations: 0.7845 MB / 472.8 MB, free: 50.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01678/1.056, allocations: 6.544 MB / 479.3 MB, free: 44.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0517/1.108, allocations: 41.39 MB / 0.5085 GB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/1.119, allocations: 2.952 MB / 0.5114 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00113/1.12, allocations: 0.6434 MB / 0.512 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/1.12, allocations: 43.12 kB / 0.5121 GB, free: 13.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=120): time 5.491e-06/1.12, allocations: 0 / 0.5121 GB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.145/1.265, allocations: 23.14 MB / 0.5347 GB, free: 6.047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.265, allocations: 145.5 kB / 0.5348 GB, free: 5.871 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006561/1.272, allocations: 2.909 MB / 0.5376 GB, free: 2.953 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004941/1.272, allocations: 45.7 kB / 0.5377 GB, free: 2.902 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002593/1.275, allocations: 2.324 MB / 0.54 GB, free: 0.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001195/1.276, allocations: 0.6056 MB / 0.5405 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006161/1.277, allocations: 100 kB / 0.5406 GB, free: 15.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005009/1.277, allocations: 0.5211 MB / 0.5412 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006545/1.284, allocations: 2.399 MB / 0.5435 GB, free: 12.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009725/1.294, allocations: 5.553 MB / 0.5489 GB, free: 5.746 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009157/1.303, allocations: 3.576 MB / 0.5524 GB, free: 2.172 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/1.303, allocations: 35.95 kB / 0.5524 GB, free: 2.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.3161/1.619, allocations: 11.48 MB / 0.5637 GB, free: 106.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.09e-05/1.619, allocations: 55.91 kB / 0.5637 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001621/1.62, allocations: 111.9 kB / 0.5638 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02533/1.645, allocations: 4.158 MB / 0.5679 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006737/1.652, allocations: 1.161 MB / 0.569 GB, free: 106.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0361/1.688, allocations: 14.26 MB / 0.5829 GB, free: 102.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006494/1.694, allocations: 361.1 kB / 0.5833 GB, free: 102.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.696, allocations: 327.3 kB / 0.5836 GB, free: 102.3 MB / 394.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.004501/1.7, allocations: 1.604 MB / 0.5852 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000849/1.701, allocations: 278.6 kB / 0.5854 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03206/1.733, allocations: 6.956 MB / 0.5922 GB, free: 99.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.554e-05/1.733, allocations: 17.36 kB / 0.5922 GB, free: 99.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.492e-05/1.733, allocations: 10.06 kB / 0.5922 GB, free: 99.51 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.52e-05/1.733, allocations: 6.609 kB / 0.5922 GB, free: 99.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07337/1.807, allocations: 14.66 MB / 0.6066 GB, free: 87.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.792e-05/1.807, allocations: 0.9375 kB / 0.6066 GB, free: 87.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002826/1.81, allocations: 227.7 kB / 0.6068 GB, free: 87.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03696/1.847, allocations: 4.777 MB / 0.6114 GB, free: 82.83 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004903/1.847, allocations: 39.95 kB / 0.6115 GB, free: 82.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03487/1.882, allocations: 14.38 MB / 0.6255 GB, free: 68.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/1.882, allocations: 0 / 0.6255 GB, free: 68.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0397/1.922, allocations: 11.15 MB / 0.6364 GB, free: 57.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/1.923, allocations: 342.8 kB / 0.6367 GB, free: 56.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009596/1.924, allocations: 43.78 kB / 0.6368 GB, free: 56.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003578/1.928, allocations: 200 kB / 0.637 GB, free: 56.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006759/1.928, allocations: 108.8 kB / 0.6371 GB, free: 56.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/1.929, allocations: 48.83 kB / 0.6371 GB, free: 56.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004639/1.933, allocations: 2.029 MB / 0.6391 GB, free: 54.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.933, allocations: 0 / 0.6391 GB, free: 54.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008701/1.942, allocations: 0.9066 MB / 0.64 GB, free: 53.44 MB / 394.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.05537/1.997, allocations: 11.98 MB / 0.6517 GB, free: 41.4 MB / 394.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.01826/2.016, allocations: 6.86 MB / 0.6584 GB, free: 34.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/2.016, allocations: 0 / 0.6584 GB, free: 34.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01016/2.026, allocations: 3.222 MB / 0.6615 GB, free: 31.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/2.029, allocations: 313.4 kB / 0.6618 GB, free: 30.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4514/2.48, allocations: 109.5 MB / 0.7688 GB, free: 70.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004374/2.485, allocations: 2.559 MB / 0.7713 GB, free: 69.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006871/2.492, allocations: 1.612 MB / 0.7728 GB, free: 69.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003044/2.495, allocations: 1.267 MB / 0.7741 GB, free: 69.41 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/2.495, allocations: 3.094 kB / 0.7741 GB, free: 69.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1643/2.659, allocations: 75.49 MB / 0.8478 GB, free: 6.711 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002752/2.66, allocations: 222.8 kB / 0.848 GB, free: 6.461 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.395/8.054, allocations: 0 / 0.848 GB, free: 6.461 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat