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/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.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.379/2.379, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.94e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3565, allocations: 54.86 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.209/0.5656, allocations: 101 MB / 459.1 MB, free: 9.828 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5659, allocations: 75.95 kB / 459.2 MB, free: 9.754 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6837/1.25, allocations: 96.12 MB / 0.5423 GB, free: 25.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.25, allocations: 3.938 kB / 0.5423 GB, free: 25.56 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001963/1.25, allocations: 92 kB / 0.5424 GB, free: 25.47 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02547/1.275, allocations: 4.647 MB / 0.5469 GB, free: 20.76 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/1.276, allocations: 15.97 kB / 0.5469 GB, free: 20.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.027/1.303, allocations: 3.62 MB / 0.5505 GB, free: 17.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01984/1.322, allocations: 4.894 MB / 0.5552 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/1.323, allocations: 160.3 kB / 0.5554 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003076/1.326, allocations: 295.8 kB / 0.5557 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0199/1.346, allocations: 8.443 MB / 0.5639 GB, free: 3.266 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03389/1.38, allocations: 11.15 MB / 0.5748 GB, free: 7.586 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002779/1.38, allocations: 35.66 kB / 0.5748 GB, free: 7.551 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002208/1.382, allocations: 16 kB / 0.5749 GB, free: 7.535 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003347/1.386, allocations: 1.318 MB / 0.5761 GB, free: 6.211 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09574/1.481, allocations: 39.47 MB / 0.6147 GB, free: 13.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/1.494, allocations: 4.313 MB / 0.6189 GB, free: 9.387 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00716/1.501, allocations: 2.285 MB / 0.6211 GB, free: 7.094 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002674/1.504, allocations: 1.331 MB / 0.6224 GB, free: 5.543 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.593e-05/1.504, allocations: 60.55 kB / 0.6225 GB, free: 5.473 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 9.558e-06/1.504, allocations: 0 / 0.6225 GB, free: 5.473 MB / 458.7 MB Notification: Performance of matching and sorting (n=285): time 0.4245/1.929, allocations: 18.02 MB / 0.6401 GB, free: 103.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/1.929, allocations: 101.4 kB / 0.6402 GB, free: 103.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005764/1.935, allocations: 2.578 MB / 0.6427 GB, free: 102.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007112/1.935, allocations: 25.7 kB / 0.6427 GB, free: 102.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002752/1.938, allocations: 3.298 MB / 0.6459 GB, free: 100.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001709/1.94, allocations: 1.025 MB / 0.6469 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007332/1.941, allocations: 3.969 kB / 0.6469 GB, free: 100.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005133/1.941, allocations: 0.6009 MB / 0.6475 GB, free: 99.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005757/1.947, allocations: 2.414 MB / 0.6499 GB, free: 99.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008494/1.956, allocations: 6.03 MB / 0.6558 GB, free: 95.22 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008719/1.964, allocations: 3.865 MB / 0.6596 GB, free: 95.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001542/1.965, allocations: 33.88 kB / 0.6596 GB, free: 95.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.03427/1.999, allocations: 9.555 MB / 0.6689 GB, free: 94.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/1.999, allocations: 66.11 kB / 0.669 GB, free: 94.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001928/1.999, allocations: 128.2 kB / 0.6691 GB, free: 94.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01653/2.016, allocations: 2.337 MB / 0.6714 GB, free: 94.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009145/2.025, allocations: 1.466 MB / 0.6728 GB, free: 93.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02589/2.051, allocations: 9.854 MB / 0.6824 GB, free: 89.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006802/2.058, allocations: 215.1 kB / 0.6826 GB, free: 89.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/2.06, allocations: 393.3 kB / 0.683 GB, free: 89.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (794): * Single equations (assignments): 786 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.001486/2.061, allocations: 426.8 kB / 0.6834 GB, free: 89.04 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01175/2.073, allocations: 4.378 MB / 0.6877 GB, free: 87.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/2.074, allocations: 308.9 kB / 0.688 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/2.089, allocations: 5.001 MB / 0.6929 GB, free: 84.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001281/2.089, allocations: 49.33 kB / 0.6929 GB, free: 84.35 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/2.089, allocations: 3.75 kB / 0.6929 GB, free: 84.35 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.75e-05/2.089, allocations: 10.5 kB / 0.6929 GB, free: 84.35 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03032/2.12, allocations: 10.96 MB / 0.7036 GB, free: 75.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.306e-05/2.12, allocations: 8 kB / 0.7037 GB, free: 75.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004215/2.124, allocations: 483.8 kB / 0.7041 GB, free: 74.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003655/2.128, allocations: 0.6918 MB / 0.7048 GB, free: 74.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006381/2.128, allocations: 35.78 kB / 0.7048 GB, free: 74.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003597/2.132, allocations: 2.329 MB / 0.7071 GB, free: 72.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.389e-05/2.132, allocations: 15.94 kB / 0.7071 GB, free: 72.15 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0212/2.153, allocations: 8.292 MB / 0.7152 GB, free: 64.33 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/2.155, allocations: 343.8 kB / 0.7155 GB, free: 63.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001856/2.157, allocations: 27.23 kB / 0.7156 GB, free: 63.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005034/2.162, allocations: 112.2 kB / 0.7157 GB, free: 63.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001285/2.163, allocations: 175.3 kB / 0.7158 GB, free: 63.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004489/2.164, allocations: 86.42 kB / 0.7159 GB, free: 63.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004506/2.168, allocations: 1.686 MB / 0.7176 GB, free: 62.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.168, allocations: 0 / 0.7176 GB, free: 62.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008006/2.176, allocations: 0.9957 MB / 0.7185 GB, free: 61.26 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (236): * Single equations (assignments): 227 * 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.01848/2.195, allocations: 11.02 MB / 0.7293 GB, free: 50.86 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.01408/2.209, allocations: 6.06 MB / 0.7352 GB, free: 45.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.209, allocations: 3.312 kB / 0.7352 GB, free: 45.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007319/2.216, allocations: 2.65 MB / 0.7378 GB, free: 43.01 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/2.219, allocations: 311.2 kB / 0.7381 GB, free: 42.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03523/2.255, allocations: 11.86 MB / 0.7497 GB, free: 32.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007799/2.263, allocations: 3.883 MB / 0.7535 GB, free: 29.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005413/2.268, allocations: 2.224 MB / 0.7557 GB, free: 27.35 MB / 458.7 MB Notification: Performance of SimCode: time 1.282e-06/2.268, allocations: 0 / 0.7557 GB, free: 27.35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.187/7.455, allocations: 141.6 MB / 0.8939 GB, free: 79.05 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