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.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.521/2.521, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004507, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3666, allocations: 48.7 MB / 331.4 MB, free: 6.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1793/0.546, allocations: 94.98 MB / 426.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.5464, allocations: 75.97 kB / 426.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6669/1.213, allocations: 97.42 MB / 0.5116 GB, free: 84.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.213, allocations: 0 / 0.5116 GB, free: 84.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002099/1.214, allocations: 92.34 kB / 0.5117 GB, free: 84.33 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02491/1.238, allocations: 4.79 MB / 0.5163 GB, free: 80.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/1.239, allocations: 12.03 kB / 0.5163 GB, free: 80.86 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006693/1.245, allocations: 0.948 MB / 0.5173 GB, free: 79.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04223/1.288, allocations: 3.624 MB / 0.5208 GB, free: 76.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02786/1.315, allocations: 4.901 MB / 0.5256 GB, free: 71.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007208/1.316, allocations: 375.5 kB / 0.5259 GB, free: 71.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004409/1.321, allocations: 0.4927 MB / 0.5264 GB, free: 70.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05413/1.375, allocations: 12.2 MB / 0.5383 GB, free: 57.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003967/1.375, allocations: 35.69 kB / 0.5384 GB, free: 57.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003794/1.379, allocations: 223.8 kB / 0.5386 GB, free: 57.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004512/1.384, allocations: 1.318 MB / 0.5399 GB, free: 56.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05005/1.434, allocations: 11.52 MB / 0.5511 GB, free: 44.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1253/1.559, allocations: 41.88 MB / 0.592 GB, free: 1.949 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02591/1.585, allocations: 4.955 MB / 0.5969 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02623/1.612, allocations: 6.55 MB / 0.6033 GB, free: 5.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.556e-05/1.612, allocations: 60.55 kB / 0.6033 GB, free: 5.832 MB / 410.7 MB Notification: Performance of pre-optimization done (n=228): time 1.016e-05/1.612, allocations: 0 / 0.6033 GB, free: 5.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.1084/1.72, allocations: 16.77 MB / 0.6197 GB, free: 4.797 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.458e-05/1.72, allocations: 73.41 kB / 0.6198 GB, free: 4.711 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/1.732, allocations: 2.839 MB / 0.6225 GB, free: 1.863 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007716/1.733, allocations: 57.7 kB / 0.6226 GB, free: 1.801 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.4068/2.14, allocations: 3.257 MB / 0.6258 GB, free: 107.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002148/2.142, allocations: 0.8951 MB / 0.6266 GB, free: 107 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/2.143, allocations: 115.6 kB / 0.6268 GB, free: 107 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007954/2.144, allocations: 0.5677 MB / 0.6273 GB, free: 106.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006887/2.151, allocations: 2.378 MB / 0.6296 GB, free: 106.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009686/2.161, allocations: 5.741 MB / 0.6352 GB, free: 102.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008987/2.17, allocations: 3.688 MB / 0.6388 GB, free: 102.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002138/2.17, allocations: 33.38 kB / 0.6389 GB, free: 102.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.0271/2.197, allocations: 8.844 MB / 0.6475 GB, free: 101.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/2.197, allocations: 53.09 kB / 0.6476 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001996/2.197, allocations: 121 kB / 0.6477 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006268/2.204, allocations: 1.159 MB / 0.6488 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008584/2.212, allocations: 1.376 MB / 0.6502 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008832/2.221, allocations: 4.663 MB / 0.6547 GB, free: 99.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006977/2.228, allocations: 324.8 kB / 0.655 GB, free: 99.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001999/2.23, allocations: 352.1 kB / 0.6554 GB, free: 99.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (742): * Single equations (assignments): 734 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.007898/2.238, allocations: 2.411 MB / 0.6577 GB, free: 98.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007264/2.239, allocations: 293.9 kB / 0.658 GB, free: 98.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/2.251, allocations: 4.443 MB / 0.6623 GB, free: 96.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001007/2.252, allocations: 49.91 kB / 0.6624 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/2.252, allocations: 6.562 kB / 0.6624 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.678e-05/2.252, allocations: 7.875 kB / 0.6624 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/2.281, allocations: 10.45 MB / 0.6726 GB, free: 93.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.208e-05/2.281, allocations: 7.906 kB / 0.6726 GB, free: 93.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003495/2.285, allocations: 390 kB / 0.673 GB, free: 93.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003456/2.288, allocations: 0.6654 MB / 0.6736 GB, free: 92.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006619/2.289, allocations: 50.34 kB / 0.6737 GB, free: 92.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004189/2.293, allocations: 2.447 MB / 0.6761 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/2.293, allocations: 7.094 kB / 0.6761 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/2.31, allocations: 7.182 MB / 0.6831 GB, free: 87.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009244/2.311, allocations: 350.5 kB / 0.6834 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001097/2.312, allocations: 48.64 kB / 0.6835 GB, free: 87.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002774/2.314, allocations: 140.4 kB / 0.6836 GB, free: 87.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006387/2.315, allocations: 131 kB / 0.6837 GB, free: 87.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002445/2.315, allocations: 66.14 kB / 0.6838 GB, free: 87.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004577/2.32, allocations: 1.925 MB / 0.6857 GB, free: 85.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.32, allocations: 4 kB / 0.6857 GB, free: 85.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006979/2.327, allocations: 1.067 MB / 0.6867 GB, free: 84.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],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 (191): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01678/2.344, allocations: 8.985 MB / 0.6955 GB, free: 76.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01393/2.358, allocations: 5.811 MB / 0.7012 GB, free: 71.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/2.358, allocations: 0.625 kB / 0.7012 GB, free: 71.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0068/2.365, allocations: 2.421 MB / 0.7035 GB, free: 69.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003337/2.368, allocations: 421.8 kB / 0.7039 GB, free: 68.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4264/2.795, allocations: 116.1 MB / 0.8173 GB, free: 96.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01384/2.808, allocations: 3.844 MB / 0.8211 GB, free: 95.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00823/2.817, allocations: 2.161 MB / 0.8232 GB, free: 95.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.864e-06/2.817, allocations: 0 / 0.8232 GB, free: 95.56 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.167/7.984, allocations: 139.5 MB / 0.9594 GB, free: 124.9 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat