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.5/2.5, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.619e-05/3.635e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3975, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1876/0.5852, allocations: 101.6 MB / 466.2 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5856, allocations: 75.95 kB / 466.3 MB, free: 10.76 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7419/1.328, allocations: 97.53 MB / 0.5506 GB, free: 107.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.305e-06/1.328, allocations: 3.719 kB / 0.5506 GB, free: 107.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002037/1.328, allocations: 97.19 kB / 0.5507 GB, free: 107.7 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02399/1.352, allocations: 4.649 MB / 0.5553 GB, free: 105.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/1.352, allocations: 7.344 kB / 0.5553 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004762/1.357, allocations: 0.9401 MB / 0.5562 GB, free: 105.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02734/1.384, allocations: 3.62 MB / 0.5597 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.019/1.403, allocations: 4.895 MB / 0.5645 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004512/1.404, allocations: 377.6 kB / 0.5649 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003206/1.407, allocations: 494.6 kB / 0.5653 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03869/1.446, allocations: 12.11 MB / 0.5772 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002995/1.446, allocations: 38.16 kB / 0.5772 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002812/1.449, allocations: 222.2 kB / 0.5774 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002798/1.452, allocations: 1.313 MB / 0.5787 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03275/1.484, allocations: 11.35 MB / 0.5898 GB, free: 97.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08201/1.566, allocations: 41.88 MB / 0.6307 GB, free: 59.56 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01546/1.582, allocations: 4.913 MB / 0.6355 GB, free: 54.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004895/1.587, allocations: 2.362 MB / 0.6378 GB, free: 52.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01545/1.602, allocations: 6.552 MB / 0.6442 GB, free: 45.22 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/1.602, allocations: 56.52 kB / 0.6442 GB, free: 45.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=228): time 6.192e-06/1.602, allocations: 0 / 0.6442 GB, free: 45.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=237): time 0.05462/1.657, allocations: 13.61 MB / 0.6575 GB, free: 31.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/1.657, allocations: 73.39 kB / 0.6576 GB, free: 31.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006048/1.663, allocations: 2.813 MB / 0.6603 GB, free: 28.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005316/1.664, allocations: 57.61 kB / 0.6604 GB, free: 28.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002476/1.666, allocations: 3.255 MB / 0.6636 GB, free: 25.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001364/1.668, allocations: 0.8939 MB / 0.6644 GB, free: 24.37 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007837/1.669, allocations: 120 kB / 0.6646 GB, free: 24.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004614/1.669, allocations: 0.5671 MB / 0.6651 GB, free: 23.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005797/1.675, allocations: 2.335 MB / 0.6674 GB, free: 21.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007741/1.683, allocations: 5.692 MB / 0.673 GB, free: 13.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007864/1.691, allocations: 3.676 MB / 0.6765 GB, free: 10.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.778e-05/1.691, allocations: 39.95 kB / 0.6766 GB, free: 10.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02728/1.718, allocations: 8.757 MB / 0.6851 GB, free: 1.504 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/1.718, allocations: 56 kB / 0.6852 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002149/1.718, allocations: 120 kB / 0.6853 GB, free: 1.332 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008834/1.727, allocations: 1.161 MB / 0.6864 GB, free: 176 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01224/1.74, allocations: 1.372 MB / 0.6878 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01363/1.753, allocations: 4.583 MB / 0.6923 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009248/1.763, allocations: 319.8 kB / 0.6926 GB, free: 9.738 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/1.764, allocations: 355.8 kB / 0.6929 GB, free: 9.395 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 () * 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.001723/1.766, allocations: 0.54 MB / 0.6934 GB, free: 8.844 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/1.767, allocations: 300.1 kB / 0.6937 GB, free: 8.547 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01773/1.785, allocations: 4.394 MB / 0.698 GB, free: 4.129 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001517/1.785, allocations: 47.95 kB / 0.698 GB, free: 4.082 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.805e-05/1.785, allocations: 3.984 kB / 0.698 GB, free: 4.078 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-05/1.785, allocations: 7.969 kB / 0.6981 GB, free: 4.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3606/2.146, allocations: 10.4 MB / 0.7082 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.644e-05/2.146, allocations: 3.938 kB / 0.7082 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003834/2.15, allocations: 388.8 kB / 0.7086 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003882/2.154, allocations: 0.6692 MB / 0.7092 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000607/2.154, allocations: 47.92 kB / 0.7093 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004459/2.159, allocations: 2.411 MB / 0.7116 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.406e-05/2.159, allocations: 12.66 kB / 0.7117 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/2.177, allocations: 7.124 MB / 0.7186 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/2.179, allocations: 347.2 kB / 0.7189 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/2.18, allocations: 42.72 kB / 0.719 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/2.183, allocations: 141 kB / 0.7191 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008217/2.184, allocations: 132.3 kB / 0.7192 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003163/2.185, allocations: 65.27 kB / 0.7193 GB, free: 106.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005028/2.19, allocations: 1.904 MB / 0.7212 GB, free: 105.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.11e-07/2.19, allocations: 0 / 0.7212 GB, free: 105.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00677/2.196, allocations: 1.076 MB / 0.7222 GB, free: 105.9 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 () * 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.01665/2.213, allocations: 8.903 MB / 0.7309 GB, free: 103.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01396/2.227, allocations: 5.739 MB / 0.7365 GB, free: 102 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/2.227, allocations: 1.031 kB / 0.7365 GB, free: 102 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006944/2.234, allocations: 2.402 MB / 0.7389 GB, free: 101 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003738/2.238, allocations: 413.3 kB / 0.7393 GB, free: 100.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03779/2.276, allocations: 11.6 MB / 0.7506 GB, free: 96.77 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009165/2.285, allocations: 3.832 MB / 0.7543 GB, free: 95.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005739/2.291, allocations: 2.159 MB / 0.7564 GB, free: 93.62 MB / 474.7 MB Notification: Performance of SimCode: time 1.493e-06/2.291, allocations: 0 / 0.7564 GB, free: 93.62 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.056/7.346, allocations: 140 MB / 0.8932 GB, free: 115.4 MB / 490.7 MB 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