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.FreeMotionScalarInit4.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.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.416/2.416, allocations: 235 MB / 248 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/3.995e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.3995, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2385/0.6381, allocations: 101.6 MB / 466.3 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.6385, allocations: 77.17 kB / 466.3 MB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.714/1.353, allocations: 97.96 MB / 0.5511 GB, free: 107.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.766e-06/1.353, allocations: 0 / 0.5511 GB, free: 107.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002086/1.353, allocations: 97.86 kB / 0.5512 GB, free: 107.3 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02399/1.377, allocations: 4.656 MB / 0.5557 GB, free: 105.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/1.377, allocations: 10.03 kB / 0.5557 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004153/1.381, allocations: 0.9474 MB / 0.5567 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02705/1.408, allocations: 3.618 MB / 0.5602 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01897/1.427, allocations: 4.906 MB / 0.565 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004876/1.428, allocations: 386 kB / 0.5653 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003262/1.431, allocations: 494 kB / 0.5658 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03655/1.468, allocations: 12.15 MB / 0.5777 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003519/1.468, allocations: 36.11 kB / 0.5777 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002872/1.471, allocations: 224.8 kB / 0.5779 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002922/1.474, allocations: 1.316 MB / 0.5792 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03302/1.507, allocations: 11.37 MB / 0.5903 GB, free: 96.85 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1267/1.634, allocations: 41.99 MB / 0.6313 GB, free: 58.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02388/1.658, allocations: 4.843 MB / 0.636 GB, free: 53.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007436/1.665, allocations: 2.358 MB / 0.6383 GB, free: 51.47 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02397/1.689, allocations: 6.582 MB / 0.6448 GB, free: 44.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/1.689, allocations: 56.56 kB / 0.6448 GB, free: 44.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=231): time 8.737e-06/1.689, allocations: 0 / 0.6448 GB, free: 44.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.1072/1.796, allocations: 16.09 MB / 0.6605 GB, free: 28.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/1.797, allocations: 77.34 kB / 0.6606 GB, free: 28.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005984/1.803, allocations: 2.809 MB / 0.6634 GB, free: 25.52 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005406/1.803, allocations: 60.75 kB / 0.6634 GB, free: 25.46 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002339/1.806, allocations: 3.276 MB / 0.6666 GB, free: 22.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/1.807, allocations: 0.9399 MB / 0.6675 GB, free: 21.24 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007593/1.808, allocations: 127.8 kB / 0.6677 GB, free: 21.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004668/1.808, allocations: 0.5713 MB / 0.6682 GB, free: 20.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005874/1.814, allocations: 2.406 MB / 0.6706 GB, free: 18.13 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00813/1.822, allocations: 5.775 MB / 0.6762 GB, free: 10.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008373/1.831, allocations: 3.769 MB / 0.6799 GB, free: 6.918 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/1.831, allocations: 35.95 kB / 0.6799 GB, free: 6.883 MB / 458.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03376/1.865, allocations: 9.882 MB / 0.6896 GB, free: 13.01 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/1.865, allocations: 56 kB / 0.6896 GB, free: 12.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002125/1.865, allocations: 120 kB / 0.6897 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01705/1.882, allocations: 2.341 MB / 0.692 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008988/1.891, allocations: 1.361 MB / 0.6933 GB, free: 9.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3661/2.257, allocations: 10.61 MB / 0.7037 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006478/2.264, allocations: 335.1 kB / 0.704 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001571/2.265, allocations: 357.2 kB / 0.7044 GB, free: 105 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 (733): * Single equations (assignments): 725 * 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: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.001945/2.267, allocations: 0.5439 MB / 0.7049 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000815/2.268, allocations: 305.9 kB / 0.7052 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/2.283, allocations: 4.586 MB / 0.7097 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001306/2.283, allocations: 47.14 kB / 0.7097 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.481e-05/2.283, allocations: 1.938 kB / 0.7097 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-05/2.283, allocations: 10.73 kB / 0.7097 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03488/2.318, allocations: 10.79 MB / 0.7203 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-05/2.318, allocations: 7.062 kB / 0.7203 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003863/2.322, allocations: 415.9 kB / 0.7207 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003535/2.325, allocations: 0.6952 MB / 0.7214 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005618/2.326, allocations: 56.61 kB / 0.7214 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003828/2.33, allocations: 2.412 MB / 0.7238 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/2.33, allocations: 3.5 kB / 0.7238 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/2.347, allocations: 7.397 MB / 0.731 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/2.348, allocations: 354.5 kB / 0.7313 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/2.349, allocations: 42.56 kB / 0.7314 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002887/2.352, allocations: 141.2 kB / 0.7315 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005748/2.352, allocations: 144.5 kB / 0.7316 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002554/2.353, allocations: 66.7 kB / 0.7317 GB, free: 101 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004291/2.357, allocations: 1.898 MB / 0.7336 GB, free: 100.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.357, allocations: 0 / 0.7336 GB, free: 100.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007077/2.364, allocations: 1.137 MB / 0.7347 GB, free: 100.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * 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.01734/2.382, allocations: 9.012 MB / 0.7435 GB, free: 95.79 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01439/2.396, allocations: 6.063 MB / 0.7494 GB, free: 94.04 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/2.396, allocations: 0 / 0.7494 GB, free: 94.04 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006999/2.403, allocations: 2.504 MB / 0.7518 GB, free: 93.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003608/2.407, allocations: 415.5 kB / 0.7522 GB, free: 92.94 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0367/2.443, allocations: 11.63 MB / 0.7636 GB, free: 88.83 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008863/2.452, allocations: 3.874 MB / 0.7674 GB, free: 87.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005583/2.458, allocations: 2.18 MB / 0.7695 GB, free: 85.67 MB / 474.7 MB Notification: Performance of SimCode: time 1.563e-06/2.458, allocations: 0 / 0.7695 GB, free: 85.67 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.993/7.451, allocations: 142.2 MB / 0.9084 GB, free: 121.6 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat