Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Frames.AngularVelocity,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Frames_AngularVelocity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.323/2.323, allocations: 234.9 MB / 250.5 MB, free: 9.684 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004252, allocations: 12 kB / 314.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3979, allocations: 54.86 MB / 369.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1847/0.5826, allocations: 100 MB / 469.4 MB, free: 8.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.5829, allocations: 79.91 kB / 469.5 MB, free: 8.512 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6373/1.22, allocations: 82.47 MB / 0.539 GB, free: 94.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.22, allocations: 0 / 0.539 GB, free: 94.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002486/1.221, allocations: 86.98 kB / 0.5391 GB, free: 94.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1555 * Number of variables: 1555 Notification: Performance of Generate backend data structure: time 0.02419/1.245, allocations: 4.482 MB / 0.5435 GB, free: 90.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/1.245, allocations: 12.02 kB / 0.5435 GB, free: 90.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003553/1.248, allocations: 0.7963 MB / 0.5443 GB, free: 89.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01788/1.266, allocations: 2.267 MB / 0.5465 GB, free: 87.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01841/1.285, allocations: 4.785 MB / 0.5511 GB, free: 82.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000496/1.285, allocations: 337.1 kB / 0.5515 GB, free: 82.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002586/1.288, allocations: 444.3 kB / 0.5519 GB, free: 81.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02785/1.316, allocations: 10.61 MB / 0.5623 GB, free: 69.94 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002048/1.316, allocations: 59.41 kB / 0.5623 GB, free: 69.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009343/1.317, allocations: 219.8 kB / 0.5625 GB, free: 69.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001974/1.319, allocations: 1.018 MB / 0.5635 GB, free: 68.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02366/1.343, allocations: 8.496 MB / 0.5718 GB, free: 60.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06702/1.41, allocations: 49.3 MB / 0.62 GB, free: 9.199 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01461/1.424, allocations: 3.536 MB / 0.6234 GB, free: 5.516 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01684/1.441, allocations: 7.545 MB / 0.6308 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.341e-05/1.441, allocations: 43.56 kB / 0.6308 GB, free: 13.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 5.451e-06/1.442, allocations: 0 / 0.6308 GB, free: 13.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=146): time 0.05291/1.494, allocations: 12.87 MB / 0.6434 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001924/1.496, allocations: 1.62 MB / 0.645 GB, free: 14.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009422/1.506, allocations: 3.533 MB / 0.6484 GB, free: 11.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004843/1.506, allocations: 45.7 kB / 0.6485 GB, free: 11.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003704/1.51, allocations: 3.108 MB / 0.6515 GB, free: 7.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/1.512, allocations: 0.5981 MB / 0.6521 GB, free: 7.375 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007866/1.512, allocations: 116 kB / 0.6522 GB, free: 7.262 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005407/1.513, allocations: 0.5628 MB / 0.6527 GB, free: 6.688 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006283/1.519, allocations: 2.143 MB / 0.6548 GB, free: 4.539 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009968/1.529, allocations: 5.848 MB / 0.6605 GB, free: 12.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009133/1.538, allocations: 3.455 MB / 0.6639 GB, free: 9.363 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/1.539, allocations: 40 kB / 0.664 GB, free: 9.324 MB / 474.7 MB Notification: Performance of matching and sorting (n=773) (initialization): time 0.03666/1.575, allocations: 9.095 MB / 0.6728 GB, free: 212 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/1.575, allocations: 62.66 kB / 0.6729 GB, free: 152 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3832/1.959, allocations: 3.529 MB / 0.6763 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01729/1.976, allocations: 1.944 MB / 0.6782 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008095/1.984, allocations: 1.372 MB / 0.6796 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/1.997, allocations: 5.985 MB / 0.6854 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007537/2.005, allocations: 415.1 kB / 0.6858 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/2.006, allocations: 375.3 kB / 0.6862 GB, free: 122.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * Number of states: 0 () * Number of discrete variables: 36 (FrameTorque1.color[3],FrameTorque1.color[2],FrameTorque1.color[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 726 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006147/2.013, allocations: 2.103 MB / 0.6882 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009085/2.014, allocations: 331.4 kB / 0.6885 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/2.024, allocations: 3.081 MB / 0.6916 GB, free: 122.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008169/2.032, allocations: 2.615 MB / 0.6941 GB, free: 122.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-05/2.032, allocations: 3.625 kB / 0.6941 GB, free: 122.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.842e-05/2.032, allocations: 7.734 kB / 0.6941 GB, free: 122.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009507/2.042, allocations: 3.859 MB / 0.6979 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-05/2.042, allocations: 3.969 kB / 0.6979 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/2.044, allocations: 246.7 kB / 0.6981 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005248/2.049, allocations: 1.024 MB / 0.6991 GB, free: 121 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004245/2.05, allocations: 32.14 kB / 0.6992 GB, free: 121 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008352/2.058, allocations: 5.098 MB / 0.7041 GB, free: 117.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001187/2.06, allocations: 1.489 MB / 0.7056 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/2.073, allocations: 5.488 MB / 0.711 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/2.074, allocations: 405.8 kB / 0.7113 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/2.076, allocations: 27.95 kB / 0.7114 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003248/2.079, allocations: 145.9 kB / 0.7115 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006164/2.08, allocations: 93.52 kB / 0.7116 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/2.08, allocations: 43.78 kB / 0.7116 GB, free: 114 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006151/2.086, allocations: 2.446 MB / 0.714 GB, free: 113.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.31e-07/2.086, allocations: 0 / 0.714 GB, free: 113.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01042/2.096, allocations: 1.074 MB / 0.7151 GB, free: 113.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[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 (114): * Single equations (assignments): 107 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02022/2.117, allocations: 6.311 MB / 0.7212 GB, free: 110.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02027/2.137, allocations: 5.703 MB / 0.7268 GB, free: 106.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/2.137, allocations: 4 kB / 0.7268 GB, free: 106.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009419/2.146, allocations: 2.208 MB / 0.729 GB, free: 104.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00456/2.151, allocations: 403 kB / 0.7293 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1265/2.278, allocations: 126.5 MB / 0.8529 GB, free: 9.336 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009018/2.287, allocations: 3.341 MB / 0.8561 GB, free: 5.992 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005881/2.293, allocations: 1.905 MB / 0.858 GB, free: 4.086 MB / 0.4948 GB Notification: Performance of SimCode: time 1.262e-06/2.293, allocations: 0 / 0.858 GB, free: 4.086 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.998/7.291, allocations: 151.3 MB / 1.006 GB, free: 42.52 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat does not exist to compare? outputFormat=mat