Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.463/2.463, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006476/0.0006476, allocations: 19.98 kB / 314.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3453, allocations: 54.86 MB / 369.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1812/0.5267, allocations: 96.03 MB / 465.4 MB, free: 10.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.527, allocations: 79.95 kB / 465.5 MB, free: 10.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6775/1.205, allocations: 86.52 MB / 0.539 GB, free: 32.54 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.205, allocations: 4 kB / 0.539 GB, free: 32.54 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001875/1.205, allocations: 72 kB / 0.5391 GB, free: 32.46 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01453/1.219, allocations: 3.864 MB / 0.5429 GB, free: 28.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/1.219, allocations: 8.031 kB / 0.5429 GB, free: 28.52 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003682/1.223, allocations: 0.7792 MB / 0.5437 GB, free: 27.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02819/1.251, allocations: 3.644 MB / 0.5472 GB, free: 24.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/1.269, allocations: 4.955 MB / 0.5521 GB, free: 19.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003851/1.269, allocations: 295.5 kB / 0.5523 GB, free: 18.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002759/1.272, allocations: 399.7 kB / 0.5527 GB, free: 18.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03029/1.302, allocations: 10.34 MB / 0.5628 GB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002786/1.303, allocations: 31.81 kB / 0.5628 GB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002676/1.305, allocations: 175.9 kB / 0.563 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002571/1.308, allocations: 1.195 MB / 0.5642 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02925/1.337, allocations: 10.15 MB / 0.5741 GB, free: 12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08393/1.421, allocations: 36.47 MB / 0.6097 GB, free: 6.613 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.014/1.435, allocations: 4.4 MB / 0.614 GB, free: 1.984 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001993/1.437, allocations: 1.315 MB / 0.6153 GB, free: 460 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.539e-05/1.438, allocations: 56.56 kB / 0.6153 GB, free: 396 kB / 442.7 MB Notification: Performance of pre-optimization done (n=245): time 7.614e-06/1.438, allocations: 0 / 0.6153 GB, free: 396 kB / 442.7 MB Notification: Performance of matching and sorting (n=261): time 0.07276/1.51, allocations: 17.31 MB / 0.6322 GB, free: 14.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001816/1.512, allocations: 1.531 MB / 0.6337 GB, free: 13.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006312/1.519, allocations: 2.468 MB / 0.6362 GB, free: 10.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006154/1.519, allocations: 61.7 kB / 0.6362 GB, free: 10.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003031/1.522, allocations: 2.723 MB / 0.6389 GB, free: 7.809 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001897/1.524, allocations: 0.952 MB / 0.6398 GB, free: 6.844 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008149/1.525, allocations: 112 kB / 0.6399 GB, free: 6.734 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006305/1.526, allocations: 0.5583 MB / 0.6405 GB, free: 6.164 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007044/1.533, allocations: 2.424 MB / 0.6428 GB, free: 3.734 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3396/1.872, allocations: 5.443 MB / 0.6481 GB, free: 120.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009895/1.882, allocations: 3.641 MB / 0.6517 GB, free: 120.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002469/1.883, allocations: 30.78 kB / 0.6517 GB, free: 120.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03697/1.92, allocations: 9.404 MB / 0.6609 GB, free: 120 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/1.92, allocations: 51.81 kB / 0.661 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02314/1.943, allocations: 4.586 MB / 0.6654 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01904/1.962, allocations: 2.062 MB / 0.6674 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008126/1.97, allocations: 1.289 MB / 0.6687 GB, free: 119.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/1.982, allocations: 5.146 MB / 0.6737 GB, free: 117.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006779/1.989, allocations: 395.7 kB / 0.6741 GB, free: 117.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001618/1.99, allocations: 327.1 kB / 0.6744 GB, free: 117.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (688): * Single equations (assignments): 676 * Array equations: 8 * 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.006318/1.997, allocations: 2.104 MB / 0.6765 GB, free: 116.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007788/1.997, allocations: 278.5 kB / 0.6767 GB, free: 116.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01843/2.016, allocations: 5.389 MB / 0.682 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01519/2.031, allocations: 4.641 MB / 0.6865 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/2.031, allocations: 0 / 0.6865 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.901e-05/2.031, allocations: 11.67 kB / 0.6865 GB, free: 114.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04015/2.071, allocations: 14.64 MB / 0.7008 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.715e-05/2.072, allocations: 8 kB / 0.7009 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003644/2.075, allocations: 427 kB / 0.7013 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007665/2.083, allocations: 1.189 MB / 0.7024 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006274/2.084, allocations: 59.89 kB / 0.7025 GB, free: 108.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006811/2.09, allocations: 4.539 MB / 0.7069 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001132/2.092, allocations: 1.475 MB / 0.7084 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0208/2.112, allocations: 8.838 MB / 0.717 GB, free: 94.63 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009202/2.113, allocations: 340.6 kB / 0.7173 GB, free: 94.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/2.114, allocations: 56.41 kB / 0.7174 GB, free: 94.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003077/2.118, allocations: 199.2 kB / 0.7176 GB, free: 94.12 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007228/2.118, allocations: 170.8 kB / 0.7177 GB, free: 94.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/2.119, allocations: 74.8 kB / 0.7178 GB, free: 93.95 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003677/2.122, allocations: 1.686 MB / 0.7194 GB, free: 92.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.122, allocations: 0 / 0.7194 GB, free: 92.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006861/2.129, allocations: 1.066 MB / 0.7205 GB, free: 91.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (202): * Single equations (assignments): 192 * Array equations: 6 * 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 Backend phase and start with SimCode phase: time 0.02228/2.152, allocations: 12 MB / 0.7322 GB, free: 80.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01613/2.168, allocations: 6.48 MB / 0.7385 GB, free: 74.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/2.168, allocations: 0 / 0.7385 GB, free: 74.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008078/2.176, allocations: 2.894 MB / 0.7413 GB, free: 72.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002916/2.179, allocations: 352 kB / 0.7417 GB, free: 71.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4347/2.614, allocations: 105.8 MB / 0.845 GB, free: 127.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007098/2.621, allocations: 3.393 MB / 0.8484 GB, free: 126.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004948/2.626, allocations: 1.856 MB / 0.8502 GB, free: 126.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/2.626, allocations: 0 / 0.8502 GB, free: 126.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.842/7.467, allocations: 149.4 MB / 0.9961 GB, free: 3.66 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat