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.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000447/0.0004472, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3419, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1811/0.5231, allocations: 101.7 MB / 471.1 MB, free: 4.762 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5235, allocations: 87.89 kB / 471.1 MB, free: 4.676 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6551/1.179, allocations: 97.44 MB / 0.5553 GB, free: 16.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.179, allocations: 3.938 kB / 0.5553 GB, free: 16.07 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000207/1.179, allocations: 84 kB / 0.5553 GB, free: 15.99 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.02352/1.202, allocations: 4.791 MB / 0.56 GB, free: 11.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/1.202, allocations: 8.031 kB / 0.56 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004302/1.207, allocations: 0.9433 MB / 0.561 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0266/1.233, allocations: 3.616 MB / 0.5645 GB, free: 6.531 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0181/1.252, allocations: 4.917 MB / 0.5693 GB, free: 1.562 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004485/1.252, allocations: 377.8 kB / 0.5696 GB, free: 1.191 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002953/1.255, allocations: 495.8 kB / 0.5701 GB, free: 0.707 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03888/1.294, allocations: 12.21 MB / 0.582 GB, free: 3.957 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000234/1.294, allocations: 31.66 kB / 0.5821 GB, free: 3.926 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00206/1.296, allocations: 219.9 kB / 0.5823 GB, free: 3.711 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003067/1.299, allocations: 1.322 MB / 0.5836 GB, free: 2.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03643/1.336, allocations: 11.51 MB / 0.5948 GB, free: 6.859 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09295/1.429, allocations: 41.88 MB / 0.6357 GB, free: 11.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0173/1.446, allocations: 4.958 MB / 0.6406 GB, free: 6.762 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3426/1.789, allocations: 6.564 MB / 0.647 GB, free: 115 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.881e-05/1.789, allocations: 52.27 kB / 0.647 GB, free: 115 MB / 474.7 MB Notification: Performance of pre-optimization done (n=228): time 6.893e-06/1.789, allocations: 0.7188 kB / 0.647 GB, free: 115 MB / 474.7 MB Notification: Performance of matching and sorting (n=237): time 0.06474/1.854, allocations: 16.76 MB / 0.6634 GB, free: 113 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/1.854, allocations: 71.06 kB / 0.6634 GB, free: 112.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005976/1.86, allocations: 2.841 MB / 0.6662 GB, free: 112.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005622/1.861, allocations: 52.3 kB / 0.6663 GB, free: 112.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002825/1.863, allocations: 3.274 MB / 0.6695 GB, free: 110.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001409/1.865, allocations: 0.8819 MB / 0.6703 GB, free: 110.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006606/1.866, allocations: 118 kB / 0.6704 GB, free: 110.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003975/1.866, allocations: 0.5734 MB / 0.671 GB, free: 109.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00567/1.872, allocations: 2.377 MB / 0.6733 GB, free: 109.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008176/1.88, allocations: 5.744 MB / 0.6789 GB, free: 105.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008269/1.888, allocations: 3.689 MB / 0.6825 GB, free: 105.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/1.888, allocations: 34.31 kB / 0.6826 GB, free: 105.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02502/1.913, allocations: 8.84 MB / 0.6912 GB, free: 103.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/1.914, allocations: 55.84 kB / 0.6913 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/1.914, allocations: 117.9 kB / 0.6914 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006078/1.92, allocations: 1.166 MB / 0.6925 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008293/1.928, allocations: 1.376 MB / 0.6938 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008535/1.937, allocations: 4.656 MB / 0.6984 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006169/1.943, allocations: 332 kB / 0.6987 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001405/1.944, allocations: 351.3 kB / 0.699 GB, free: 100.6 MB / 474.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.006722/1.951, allocations: 2.414 MB / 0.7014 GB, free: 99.51 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008107/1.952, allocations: 302.6 kB / 0.7017 GB, free: 99.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/1.964, allocations: 4.437 MB / 0.706 GB, free: 97.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.46e-05/1.964, allocations: 47.03 kB / 0.7061 GB, free: 97.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/1.964, allocations: 0 / 0.7061 GB, free: 97.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-05/1.964, allocations: 11.34 kB / 0.7061 GB, free: 97.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02669/1.991, allocations: 10.44 MB / 0.7163 GB, free: 91.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/1.991, allocations: 4 kB / 0.7163 GB, free: 91.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003365/1.994, allocations: 385.8 kB / 0.7166 GB, free: 91.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003305/1.998, allocations: 0.6812 MB / 0.7173 GB, free: 90.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003984/1.998, allocations: 44.64 kB / 0.7174 GB, free: 90.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00368/2.002, allocations: 2.439 MB / 0.7197 GB, free: 88.31 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/2.002, allocations: 8.562 kB / 0.7197 GB, free: 88.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01493/2.017, allocations: 7.197 MB / 0.7268 GB, free: 81.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009555/2.018, allocations: 347 kB / 0.7271 GB, free: 81.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008087/2.019, allocations: 49.42 kB / 0.7271 GB, free: 81.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0024/2.021, allocations: 135.7 kB / 0.7273 GB, free: 81.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005237/2.022, allocations: 131.8 kB / 0.7274 GB, free: 81.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002345/2.022, allocations: 76.08 kB / 0.7275 GB, free: 81.12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003969/2.026, allocations: 1.919 MB / 0.7293 GB, free: 79.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.253e-06/2.026, allocations: 0 / 0.7293 GB, free: 79.55 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006384/2.032, allocations: 1.075 MB / 0.7304 GB, free: 78.48 MB / 474.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.01576/2.048, allocations: 8.98 MB / 0.7392 GB, free: 70.24 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/2.061, allocations: 5.812 MB / 0.7448 GB, free: 65.18 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/2.062, allocations: 6.234 kB / 0.7448 GB, free: 65.17 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006321/2.068, allocations: 2.412 MB / 0.7472 GB, free: 63.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003205/2.071, allocations: 420.4 kB / 0.7476 GB, free: 62.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4631/2.534, allocations: 116.1 MB / 0.861 GB, free: 99.22 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008521/2.543, allocations: 3.843 MB / 0.8648 GB, free: 98.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006658/2.55, allocations: 2.156 MB / 0.8669 GB, free: 98.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.663e-06/2.55, allocations: 3.562 kB / 0.8669 GB, free: 98.41 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.511/7.06, allocations: 139.5 MB / 1.003 GB, free: 7.168 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat