Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.048/2.048, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006049/0.0006049, allocations: 16 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1638, allocations: 48.7 MB / 331.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4834/0.6472, allocations: 89.3 MB / 420.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.6476, allocations: 75.95 kB / 420.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6915/1.339, allocations: 86.34 MB / 0.4952 GB, free: 92.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.347e-06/1.339, allocations: 5.406 kB / 0.4952 GB, free: 92.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002162/1.339, allocations: 72.69 kB / 0.4953 GB, free: 92.01 MB / 410.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.02058/1.36, allocations: 3.858 MB / 0.499 GB, free: 90.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.614e-05/1.36, allocations: 12.59 kB / 0.499 GB, free: 90.24 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005088/1.365, allocations: 0.78 MB / 0.4998 GB, free: 90.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04124/1.407, allocations: 3.631 MB / 0.5033 GB, free: 89.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02338/1.43, allocations: 4.949 MB / 0.5082 GB, free: 89.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005497/1.431, allocations: 297.8 kB / 0.5085 GB, free: 89.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003011/1.434, allocations: 387.9 kB / 0.5088 GB, free: 89.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03265/1.466, allocations: 10.35 MB / 0.5189 GB, free: 87.99 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002356/1.467, allocations: 25.98 kB / 0.519 GB, free: 87.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002563/1.469, allocations: 183 kB / 0.5191 GB, free: 87.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002613/1.472, allocations: 1.19 MB / 0.5203 GB, free: 87.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02868/1.501, allocations: 10.15 MB / 0.5302 GB, free: 85.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07542/1.576, allocations: 36.46 MB / 0.5658 GB, free: 61.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01492/1.591, allocations: 4.404 MB / 0.5701 GB, free: 57.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/1.593, allocations: 1.319 MB / 0.5714 GB, free: 56.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.207e-05/1.593, allocations: 52.56 kB / 0.5715 GB, free: 56.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=245): time 6.813e-06/1.593, allocations: 0 / 0.5715 GB, free: 56.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=261): time 0.06787/1.661, allocations: 17.3 MB / 0.5883 GB, free: 40.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001427/1.662, allocations: 1.542 MB / 0.5898 GB, free: 38.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005311/1.667, allocations: 2.464 MB / 0.5923 GB, free: 36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006293/1.668, allocations: 57.7 kB / 0.5923 GB, free: 35.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002133/1.67, allocations: 2.722 MB / 0.595 GB, free: 33.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001488/1.672, allocations: 0.9554 MB / 0.5959 GB, free: 32.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006751/1.672, allocations: 114.6 kB / 0.596 GB, free: 32.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004033/1.673, allocations: 0.5506 MB / 0.5965 GB, free: 31.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005967/1.679, allocations: 2.416 MB / 0.5989 GB, free: 29.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00812/1.687, allocations: 5.425 MB / 0.6042 GB, free: 22.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008169/1.695, allocations: 3.634 MB / 0.6078 GB, free: 18.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.461e-05/1.695, allocations: 32 kB / 0.6078 GB, free: 18.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03162/1.727, allocations: 8.72 MB / 0.6163 GB, free: 9.867 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/1.727, allocations: 52 kB / 0.6163 GB, free: 9.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01866/1.746, allocations: 3.908 MB / 0.6202 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/1.756, allocations: 1.252 MB / 0.6214 GB, free: 4.633 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01028/1.767, allocations: 1.29 MB / 0.6226 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008878/1.776, allocations: 4.171 MB / 0.6267 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009222/1.785, allocations: 395.7 kB / 0.6271 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001825/1.787, allocations: 324 kB / 0.6274 GB, free: 14.21 MB / 426.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): 2 * Torn equation systems: 2 * 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: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.007621/1.795, allocations: 2.103 MB / 0.6295 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008407/1.795, allocations: 280.3 kB / 0.6297 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02048/1.816, allocations: 5.389 MB / 0.635 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01818/1.834, allocations: 4.632 MB / 0.6395 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-05/1.834, allocations: 7.984 kB / 0.6395 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.593e-05/1.834, allocations: 11.92 kB / 0.6395 GB, free: 1.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3634/2.198, allocations: 14.63 MB / 0.6538 GB, free: 95.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.337e-05/2.198, allocations: 12.78 kB / 0.6538 GB, free: 95.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003908/2.202, allocations: 425.9 kB / 0.6542 GB, free: 95.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008213/2.21, allocations: 1.188 MB / 0.6554 GB, free: 95.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007325/2.211, allocations: 63.03 kB / 0.6555 GB, free: 95.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007966/2.219, allocations: 4.536 MB / 0.6599 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001343/2.22, allocations: 1.475 MB / 0.6613 GB, free: 91.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02413/2.244, allocations: 8.843 MB / 0.67 GB, free: 90.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/2.246, allocations: 339.7 kB / 0.6703 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001227/2.247, allocations: 57.91 kB / 0.6703 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003542/2.25, allocations: 198.4 kB / 0.6705 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009328/2.251, allocations: 176 kB / 0.6707 GB, free: 89.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002855/2.252, allocations: 80.83 kB / 0.6708 GB, free: 89.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004143/2.256, allocations: 1.685 MB / 0.6724 GB, free: 89.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.256, allocations: 3.312 kB / 0.6724 GB, free: 89.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007139/2.263, allocations: 1.054 MB / 0.6735 GB, free: 89.81 MB / 426.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.02417/2.287, allocations: 12 MB / 0.6852 GB, free: 83.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01715/2.304, allocations: 6.433 MB / 0.6915 GB, free: 81.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/2.304, allocations: 0 / 0.6915 GB, free: 81.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008756/2.313, allocations: 2.899 MB / 0.6943 GB, free: 80.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/2.317, allocations: 350.3 kB / 0.6946 GB, free: 79.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.104/2.421, allocations: 105.2 MB / 0.7973 GB, free: 52 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008763/2.43, allocations: 3.393 MB / 0.8006 GB, free: 13.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005777/2.435, allocations: 1.859 MB / 0.8024 GB, free: 11.71 MB / 458.7 MB Notification: Performance of SimCode: time 1.242e-06/2.436, allocations: 0 / 0.8024 GB, free: 11.71 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.713/7.149, allocations: 148.8 MB / 0.9477 GB, free: 39.55 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat