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.FreeMotionScalarInit5.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.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.13/2.13, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006481/0.0006481, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3702, allocations: 48.7 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1668/0.537, allocations: 91.45 MB / 422.8 MB, free: 2.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5374, allocations: 79.95 kB / 422.9 MB, free: 2.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6557/1.193, allocations: 94.58 MB / 0.5053 GB, free: 88.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.398e-06/1.193, allocations: 0 / 0.5053 GB, free: 88.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002127/1.193, allocations: 94.31 kB / 0.5054 GB, free: 88.24 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: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.02464/1.218, allocations: 4.651 MB / 0.51 GB, free: 85.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/1.218, allocations: 7.156 kB / 0.51 GB, free: 85.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004664/1.223, allocations: 0.906 MB / 0.5109 GB, free: 84.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02703/1.25, allocations: 3.592 MB / 0.5144 GB, free: 82.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01867/1.269, allocations: 4.836 MB / 0.5191 GB, free: 77.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005006/1.269, allocations: 355.8 kB / 0.5194 GB, free: 77.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003405/1.273, allocations: 468.6 kB / 0.5199 GB, free: 77.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03508/1.308, allocations: 11.46 MB / 0.5311 GB, free: 65.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000289/1.308, allocations: 27.72 kB / 0.5311 GB, free: 65.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002955/1.311, allocations: 210.1 kB / 0.5313 GB, free: 64.99 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002781/1.314, allocations: 1.246 MB / 0.5325 GB, free: 63.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03057/1.344, allocations: 10.96 MB / 0.5432 GB, free: 52.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.078/1.422, allocations: 38.45 MB / 0.5808 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01211/1.435, allocations: 4.394 MB / 0.5851 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001487/1.436, allocations: 1.319 MB / 0.5864 GB, free: 7.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/1.436, allocations: 52.56 kB / 0.5864 GB, free: 7.371 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 6.282e-06/1.436, allocations: 0 / 0.5864 GB, free: 7.371 MB / 394.7 MB Notification: Performance of matching and sorting (n=265): time 0.06992/1.506, allocations: 14.31 MB / 0.6004 GB, free: 8.871 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/1.506, allocations: 77.41 kB / 0.6005 GB, free: 8.781 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006779/1.513, allocations: 2.638 MB / 0.603 GB, free: 6.129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006107/1.514, allocations: 57.7 kB / 0.6031 GB, free: 6.066 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003317/1.517, allocations: 3.083 MB / 0.6061 GB, free: 2.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001776/1.519, allocations: 0.979 MB / 0.6071 GB, free: 1.949 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000767/1.52, allocations: 120 kB / 0.6072 GB, free: 1.832 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000665/1.52, allocations: 0.5709 MB / 0.6077 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006833/1.527, allocations: 2.362 MB / 0.61 GB, free: 14.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/1.538, allocations: 5.629 MB / 0.6155 GB, free: 7.637 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009584/1.547, allocations: 3.653 MB / 0.6191 GB, free: 3.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/1.547, allocations: 36 kB / 0.6191 GB, free: 3.945 MB / 426.7 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.3324/1.88, allocations: 8.639 MB / 0.6276 GB, free: 103.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/1.88, allocations: 56.97 kB / 0.6276 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002684/1.88, allocations: 113.7 kB / 0.6277 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006798/1.887, allocations: 1.058 MB / 0.6288 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008801/1.896, allocations: 1.374 MB / 0.6301 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/1.9, allocations: 2.497 MB / 0.6325 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005993/1.906, allocations: 321.6 kB / 0.6328 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.908, allocations: 347.6 kB / 0.6332 GB, free: 101.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 521 * Number of states: 0 () * Number of discrete variables: 24 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (740): * Single equations (assignments): 731 * 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 prepare postOptimizeDAE: time 0.006607/1.914, allocations: 2.36 MB / 0.6355 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007305/1.915, allocations: 296 kB / 0.6358 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.93, allocations: 5.091 MB / 0.6407 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001095/1.93, allocations: 44.56 kB / 0.6408 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/1.93, allocations: 3.5 kB / 0.6408 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.708e-05/1.931, allocations: 9.141 kB / 0.6408 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03292/1.963, allocations: 11.81 MB / 0.6523 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.754e-05/1.964, allocations: 7.375 kB / 0.6523 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003669/1.967, allocations: 431.1 kB / 0.6527 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005987/1.973, allocations: 0.8999 MB / 0.6536 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006115/1.974, allocations: 65.42 kB / 0.6537 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003451/1.977, allocations: 2.302 MB / 0.6559 GB, free: 98.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.868e-06/1.977, allocations: 13.12 kB / 0.6559 GB, free: 98.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01967/1.997, allocations: 8.202 MB / 0.664 GB, free: 94.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000905/1.998, allocations: 340.8 kB / 0.6643 GB, free: 94.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009446/1.999, allocations: 53.72 kB / 0.6643 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002727/2.002, allocations: 139.8 kB / 0.6645 GB, free: 94.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000675/2.002, allocations: 162.9 kB / 0.6646 GB, free: 94.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/2.003, allocations: 79.09 kB / 0.6647 GB, free: 94.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003911/2.007, allocations: 1.799 MB / 0.6665 GB, free: 93.97 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.007, allocations: 0 / 0.6665 GB, free: 93.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006797/2.014, allocations: 1.045 MB / 0.6675 GB, free: 93.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (216): * Single equations (assignments): 207 * 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.02136/2.035, allocations: 10.77 MB / 0.678 GB, free: 87.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01585/2.051, allocations: 6.218 MB / 0.6841 GB, free: 83.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/2.051, allocations: 4 kB / 0.6841 GB, free: 83.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007466/2.058, allocations: 2.595 MB / 0.6866 GB, free: 80.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/2.062, allocations: 462.1 kB / 0.687 GB, free: 80.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3956/2.458, allocations: 113.1 MB / 0.7975 GB, free: 139.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0095/2.468, allocations: 3.762 MB / 0.8011 GB, free: 138.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00555/2.473, allocations: 2.124 MB / 0.8032 GB, free: 138.8 MB / 458.7 MB Notification: Performance of SimCode: time 2.384e-06/2.473, allocations: 0.7656 kB / 0.8032 GB, free: 138.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.043/7.517, allocations: 146.5 MB / 0.9463 GB, free: 27.41 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat