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/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.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.255/2.255, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004287/0.0004287, allocations: 12 kB / 314.5 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3651, allocations: 54.87 MB / 369.4 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.5386, allocations: 98.16 MB / 467.5 MB, free: 10.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.5389, allocations: 83.91 kB / 467.6 MB, free: 10.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6827/1.222, allocations: 94.62 MB / 0.549 GB, free: 84.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.222, allocations: 0 / 0.549 GB, free: 84.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002081/1.222, allocations: 88 kB / 0.5491 GB, free: 84.63 MB / 426.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.02362/1.246, allocations: 4.654 MB / 0.5537 GB, free: 79.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.246, allocations: 12.03 kB / 0.5537 GB, free: 79.9 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00439/1.25, allocations: 0.8943 MB / 0.5545 GB, free: 79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0263/1.276, allocations: 3.597 MB / 0.5581 GB, free: 75.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01774/1.294, allocations: 4.823 MB / 0.5628 GB, free: 70.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004352/1.295, allocations: 357.3 kB / 0.5631 GB, free: 70.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002898/1.298, allocations: 472.3 kB / 0.5636 GB, free: 69.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03202/1.33, allocations: 11.47 MB / 0.5748 GB, free: 57.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002768/1.33, allocations: 31.66 kB / 0.5748 GB, free: 57.72 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002723/1.333, allocations: 207.9 kB / 0.575 GB, free: 57.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002534/1.335, allocations: 1.248 MB / 0.5762 GB, free: 56.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02933/1.365, allocations: 10.96 MB / 0.5869 GB, free: 45.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07667/1.441, allocations: 38.45 MB / 0.6245 GB, free: 5.961 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/1.453, allocations: 4.385 MB / 0.6287 GB, free: 1.352 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001607/1.455, allocations: 1.323 MB / 0.63 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.294e-05/1.455, allocations: 60.52 kB / 0.6301 GB, free: 15.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=244): time 7.684e-06/1.455, allocations: 7.875 kB / 0.6301 GB, free: 15.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=265): time 0.07572/1.531, allocations: 14.29 MB / 0.6441 GB, free: 1.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/1.531, allocations: 81.41 kB / 0.6441 GB, free: 1.156 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007217/1.538, allocations: 2.634 MB / 0.6467 GB, free: 14.51 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005726/1.539, allocations: 61.7 kB / 0.6468 GB, free: 14.44 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003643/1.543, allocations: 3.091 MB / 0.6498 GB, free: 11.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001888/1.545, allocations: 0.9752 MB / 0.6507 GB, free: 10.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007875/1.545, allocations: 116 kB / 0.6508 GB, free: 10.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007138/1.546, allocations: 0.567 MB / 0.6514 GB, free: 9.629 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007149/1.553, allocations: 2.366 MB / 0.6537 GB, free: 7.258 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01089/1.564, allocations: 5.629 MB / 0.6592 GB, free: 16 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009827/1.574, allocations: 3.653 MB / 0.6628 GB, free: 12.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/1.574, allocations: 36 kB / 0.6628 GB, free: 12.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.02894/1.603, allocations: 8.644 MB / 0.6713 GB, free: 3.656 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.603, allocations: 60.06 kB / 0.6713 GB, free: 3.598 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/1.604, allocations: 112 kB / 0.6714 GB, free: 3.488 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006789/1.61, allocations: 1.067 MB / 0.6725 GB, free: 2.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008889/1.619, allocations: 1.365 MB / 0.6738 GB, free: 1.043 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4291/2.049, allocations: 2.497 MB / 0.6762 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009264/2.058, allocations: 314.4 kB / 0.6765 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/2.06, allocations: 346 kB / 0.6769 GB, free: 117 MB / 474.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.009236/2.07, allocations: 2.369 MB / 0.6792 GB, free: 116.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/2.071, allocations: 299.3 kB / 0.6795 GB, free: 116.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02018/2.091, allocations: 5.08 MB / 0.6844 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/2.091, allocations: 51.44 kB / 0.6845 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/2.091, allocations: 3.844 kB / 0.6845 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.348e-05/2.091, allocations: 19.03 kB / 0.6845 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03366/2.125, allocations: 11.79 MB / 0.696 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-05/2.125, allocations: 12.02 kB / 0.696 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003714/2.129, allocations: 425.4 kB / 0.6964 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005855/2.135, allocations: 0.9111 MB / 0.6973 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006023/2.135, allocations: 62.36 kB / 0.6974 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/2.139, allocations: 2.292 MB / 0.6996 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/2.139, allocations: 14.34 kB / 0.6996 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01996/2.159, allocations: 8.199 MB / 0.7076 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008854/2.16, allocations: 348.9 kB / 0.708 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001156/2.161, allocations: 58.11 kB / 0.708 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/2.164, allocations: 138.9 kB / 0.7081 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008058/2.165, allocations: 157.2 kB / 0.7083 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002715/2.165, allocations: 81.91 kB / 0.7084 GB, free: 111.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00443/2.169, allocations: 1.798 MB / 0.7101 GB, free: 110.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.169, allocations: 0 / 0.7101 GB, free: 110.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006801/2.176, allocations: 1.049 MB / 0.7112 GB, free: 110.4 MB / 474.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.02102/2.197, allocations: 10.77 MB / 0.7217 GB, free: 104.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01576/2.213, allocations: 6.218 MB / 0.7277 GB, free: 102.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/2.213, allocations: 2.156 kB / 0.7277 GB, free: 102.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007203/2.22, allocations: 2.591 MB / 0.7303 GB, free: 101.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003892/2.224, allocations: 463.4 kB / 0.7307 GB, free: 100.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0989/2.323, allocations: 113 MB / 0.8411 GB, free: 4.234 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009399/2.333, allocations: 3.758 MB / 0.8448 GB, free: 1.363 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009161/2.342, allocations: 2.279 MB / 0.847 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of SimCode: time 1.403e-06/2.342, allocations: 6.406 kB / 0.847 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.999/7.341, allocations: 146.5 MB / 0.9901 GB, free: 60.71 MB / 0.4948 GB 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