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.FreeMotionScalarInit5.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.529/2.529, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.091e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3736, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.175/0.5486, allocations: 97.41 MB / 455.5 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.549, allocations: 75.91 kB / 455.6 MB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.681/1.23, allocations: 92.96 MB / 0.5357 GB, free: 31.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.23, allocations: 4 kB / 0.5357 GB, free: 31.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002729/1.23, allocations: 84 kB / 0.5358 GB, free: 31.71 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.02538/1.256, allocations: 4.49 MB / 0.5402 GB, free: 27.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/1.256, allocations: 12.03 kB / 0.5402 GB, free: 27.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02723/1.283, allocations: 3.597 MB / 0.5437 GB, free: 23.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01822/1.301, allocations: 4.807 MB / 0.5484 GB, free: 18.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/1.302, allocations: 152 kB / 0.5485 GB, free: 18.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002835/1.305, allocations: 272 kB / 0.5488 GB, free: 18.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01886/1.324, allocations: 8.047 MB / 0.5567 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02932/1.353, allocations: 10.57 MB / 0.567 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002921/1.353, allocations: 35.7 kB / 0.567 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002675/1.356, allocations: 12 kB / 0.567 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003208/1.359, allocations: 1.24 MB / 0.5682 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08704/1.446, allocations: 35.71 MB / 0.6031 GB, free: 9.527 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007747/1.454, allocations: 3.813 MB / 0.6068 GB, free: 5.496 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004909/1.459, allocations: 2.081 MB / 0.6089 GB, free: 3.414 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00202/1.461, allocations: 1.315 MB / 0.6102 GB, free: 1.875 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.416e-05/1.461, allocations: 56.55 kB / 0.6102 GB, free: 1.812 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 6.582e-06/1.461, allocations: 4 kB / 0.6102 GB, free: 1.809 MB / 442.7 MB Notification: Performance of matching and sorting (n=273): time 0.04667/1.508, allocations: 11.25 MB / 0.6212 GB, free: 6.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/1.508, allocations: 77.41 kB / 0.6213 GB, free: 6.43 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0068/1.515, allocations: 2.517 MB / 0.6237 GB, free: 3.898 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006396/1.516, allocations: 29.7 kB / 0.6238 GB, free: 3.863 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003522/1.519, allocations: 3.191 MB / 0.6269 GB, free: 0.625 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3337/1.853, allocations: 0.9815 MB / 0.6278 GB, free: 107 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007746/1.854, allocations: 0 / 0.6278 GB, free: 107 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007567/1.855, allocations: 0.5849 MB / 0.6284 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006975/1.862, allocations: 2.351 MB / 0.6307 GB, free: 106.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009223/1.871, allocations: 5.854 MB / 0.6364 GB, free: 102.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008643/1.879, allocations: 3.762 MB / 0.6401 GB, free: 102.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001852/1.88, allocations: 35.44 kB / 0.6401 GB, free: 102.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=846) (initialization): time 0.02629/1.906, allocations: 8.316 MB / 0.6482 GB, free: 101.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/1.906, allocations: 61.34 kB / 0.6483 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001823/1.906, allocations: 127 kB / 0.6484 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006974/1.913, allocations: 1.079 MB / 0.6495 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009433/1.923, allocations: 1.484 MB / 0.6509 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004018/1.927, allocations: 2.402 MB / 0.6533 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006761/1.934, allocations: 210.5 kB / 0.6535 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/1.936, allocations: 383.2 kB / 0.6538 GB, free: 100.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 566 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (793): * Single equations (assignments): 784 * 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.002474/1.938, allocations: 424.5 kB / 0.6542 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01484/1.953, allocations: 4.515 MB / 0.6587 GB, free: 99.87 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.954, allocations: 301.1 kB / 0.6589 GB, free: 99.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/1.971, allocations: 5.14 MB / 0.664 GB, free: 99.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/1.971, allocations: 50.53 kB / 0.664 GB, free: 99.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/1.971, allocations: 3.953 kB / 0.664 GB, free: 99.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.469e-05/1.971, allocations: 9.609 kB / 0.664 GB, free: 99.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0341/2.005, allocations: 10.82 MB / 0.6746 GB, free: 96.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.664e-05/2.005, allocations: 9.844 kB / 0.6746 GB, free: 96.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004255/2.009, allocations: 450.9 kB / 0.675 GB, free: 96.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006383/2.016, allocations: 0.9089 MB / 0.6759 GB, free: 96.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007652/2.017, allocations: 36.7 kB / 0.676 GB, free: 96.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003358/2.02, allocations: 2.21 MB / 0.6781 GB, free: 94.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-05/2.02, allocations: 11.38 kB / 0.6781 GB, free: 94.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01971/2.04, allocations: 8.337 MB / 0.6863 GB, free: 89.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009863/2.041, allocations: 333 kB / 0.6866 GB, free: 89.41 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/2.042, allocations: 19.38 kB / 0.6866 GB, free: 89.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003365/2.046, allocations: 103.8 kB / 0.6867 GB, free: 89.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008885/2.047, allocations: 177.6 kB / 0.6869 GB, free: 89.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003253/2.047, allocations: 85.72 kB / 0.6869 GB, free: 89.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003977/2.051, allocations: 1.652 MB / 0.6886 GB, free: 87.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.492e-06/2.051, allocations: 0 / 0.6886 GB, free: 87.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007779/2.059, allocations: 0.9223 MB / 0.6895 GB, free: 86.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 215 * 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.02334/2.082, allocations: 10.98 MB / 0.7002 GB, free: 76.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02531/2.108, allocations: 6.177 MB / 0.7062 GB, free: 71.06 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.166e-05/2.108, allocations: 0 / 0.7062 GB, free: 71.06 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01152/2.119, allocations: 2.627 MB / 0.7088 GB, free: 68.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005484/2.125, allocations: 356.4 kB / 0.7091 GB, free: 68.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0553/2.18, allocations: 11.66 MB / 0.7205 GB, free: 58.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01253/2.193, allocations: 3.77 MB / 0.7242 GB, free: 55.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008084/2.201, allocations: 2.158 MB / 0.7263 GB, free: 53.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.624e-06/2.201, allocations: 4 kB / 0.7263 GB, free: 53.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.203/7.404, allocations: 147.2 MB / 0.87 GB, free: 110.9 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat