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.553/2.553, allocations: 235 MB / 248 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.906e-05/3.92e-05, allocations: 7.984 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4133, allocations: 54.84 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1841/0.5975, allocations: 95.94 MB / 460.6 MB, free: 428 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.5978, allocations: 75.97 kB / 460.6 MB, free: 352 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6968/1.295, allocations: 86.6 MB / 0.5344 GB, free: 109.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.295, allocations: 0 / 0.5344 GB, free: 109.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002284/1.295, allocations: 71.64 kB / 0.5345 GB, free: 109.9 MB / 458.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.01648/1.311, allocations: 3.707 MB / 0.5381 GB, free: 108.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.646e-05/1.311, allocations: 9.062 kB / 0.5381 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004087/1.316, allocations: 0.782 MB / 0.5389 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02959/1.345, allocations: 3.647 MB / 0.5424 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/1.364, allocations: 4.926 MB / 0.5472 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005291/1.365, allocations: 294.7 kB / 0.5475 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002894/1.368, allocations: 390.1 kB / 0.5479 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02984/1.398, allocations: 10.27 MB / 0.5579 GB, free: 106 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002063/1.398, allocations: 35.91 kB / 0.558 GB, free: 106 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001389/1.4, allocations: 182.2 kB / 0.5581 GB, free: 106 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002326/1.402, allocations: 1.184 MB / 0.5593 GB, free: 106 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02683/1.429, allocations: 10 MB / 0.5691 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07495/1.504, allocations: 36.47 MB / 0.6047 GB, free: 81.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/1.516, allocations: 4.366 MB / 0.6089 GB, free: 77.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004551/1.52, allocations: 2.165 MB / 0.6111 GB, free: 75.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001548/1.522, allocations: 1.32 MB / 0.6123 GB, free: 73.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/1.522, allocations: 52.56 kB / 0.6124 GB, free: 73.86 MB / 458.7 MB Notification: Performance of pre-optimization done (n=245): time 6.101e-06/1.522, allocations: 4 kB / 0.6124 GB, free: 73.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=261): time 0.05778/1.58, allocations: 14.3 MB / 0.6264 GB, free: 61.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001354/1.581, allocations: 1.526 MB / 0.6279 GB, free: 60.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00501/1.586, allocations: 2.443 MB / 0.6302 GB, free: 57.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006076/1.587, allocations: 65.45 kB / 0.6303 GB, free: 57.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00207/1.589, allocations: 2.717 MB / 0.633 GB, free: 55.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001515/1.591, allocations: 0.9619 MB / 0.6339 GB, free: 54.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006835/1.591, allocations: 104 kB / 0.634 GB, free: 54.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004379/1.592, allocations: 0.5588 MB / 0.6345 GB, free: 53.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005914/1.598, allocations: 2.379 MB / 0.6369 GB, free: 51.74 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007852/1.606, allocations: 5.39 MB / 0.6421 GB, free: 44.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008101/1.614, allocations: 3.628 MB / 0.6457 GB, free: 41.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.637e-05/1.614, allocations: 32 kB / 0.6457 GB, free: 41.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03575/1.65, allocations: 9.301 MB / 0.6548 GB, free: 31.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.591e-05/1.65, allocations: 51.98 kB / 0.6548 GB, free: 31.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02278/1.673, allocations: 4.535 MB / 0.6593 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01944/1.692, allocations: 2.058 MB / 0.6613 GB, free: 25.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008433/1.701, allocations: 1.291 MB / 0.6625 GB, free: 23.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/1.711, allocations: 4.954 MB / 0.6674 GB, free: 18.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006631/1.718, allocations: 391.6 kB / 0.6677 GB, free: 18.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/1.72, allocations: 324 kB / 0.6681 GB, free: 18.03 MB / 458.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 () * 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.001824/1.721, allocations: 0.5082 MB / 0.6685 GB, free: 17.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007002/1.722, allocations: 276.3 kB / 0.6688 GB, free: 17.24 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01769/1.74, allocations: 5.342 MB / 0.674 GB, free: 11.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01568/1.756, allocations: 4.59 MB / 0.6785 GB, free: 7.191 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/1.756, allocations: 4 kB / 0.6785 GB, free: 7.188 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.165e-05/1.756, allocations: 15.95 kB / 0.6785 GB, free: 7.172 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04678/1.802, allocations: 14.61 MB / 0.6928 GB, free: 8.352 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.026e-05/1.803, allocations: 11.95 kB / 0.6928 GB, free: 8.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004134/1.807, allocations: 423.3 kB / 0.6932 GB, free: 7.926 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008481/1.815, allocations: 1.194 MB / 0.6944 GB, free: 6.719 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006485/1.816, allocations: 55.97 kB / 0.6944 GB, free: 6.664 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009181/1.825, allocations: 4.452 MB / 0.6988 GB, free: 1.949 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001889/1.827, allocations: 1.463 MB / 0.7002 GB, free: 356 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.365/2.192, allocations: 8.763 MB / 0.7088 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/2.193, allocations: 338.8 kB / 0.7091 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001144/2.195, allocations: 61.45 kB / 0.7091 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003722/2.198, allocations: 196.5 kB / 0.7093 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009132/2.199, allocations: 169 kB / 0.7095 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000361/2.2, allocations: 78.8 kB / 0.7096 GB, free: 111.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004941/2.205, allocations: 1.667 MB / 0.7112 GB, free: 110.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.92e-07/2.205, allocations: 0 / 0.7112 GB, free: 110.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007323/2.212, allocations: 1.065 MB / 0.7122 GB, free: 110.9 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 () * 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.02478/2.237, allocations: 11.92 MB / 0.7239 GB, free: 106.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01595/2.253, allocations: 6.398 MB / 0.7301 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/2.253, allocations: 3.406 kB / 0.7301 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008282/2.261, allocations: 2.87 MB / 0.7329 GB, free: 105.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003179/2.264, allocations: 344.6 kB / 0.7333 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03222/2.297, allocations: 11.04 MB / 0.744 GB, free: 101.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0063/2.303, allocations: 3.392 MB / 0.7473 GB, free: 99.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004467/2.307, allocations: 1.854 MB / 0.7492 GB, free: 98.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.353e-06/2.308, allocations: 0 / 0.7492 GB, free: 98.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.856/7.163, allocations: 150.1 MB / 0.8957 GB, free: 124.4 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