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.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.691/2.691, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.341e-05/3.355e-05, allocations: 4 kB / 309.8 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4086/0.4087, allocations: 54.86 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1786/0.5873, allocations: 97.9 MB / 462.5 MB, free: 14.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.5877, allocations: 75.95 kB / 462.6 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7128/1.3, allocations: 91 MB / 0.5406 GB, free: 107.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.301, allocations: 3.5 kB / 0.5406 GB, free: 107.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002582/1.301, allocations: 80.41 kB / 0.5407 GB, free: 107.6 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.02552/1.326, allocations: 4.304 MB / 0.5449 GB, free: 105.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/1.326, allocations: 9.312 kB / 0.5449 GB, free: 105.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004341/1.331, allocations: 0.8639 MB / 0.5458 GB, free: 105.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02761/1.358, allocations: 3.578 MB / 0.5493 GB, free: 105.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/1.378, allocations: 4.696 MB / 0.5538 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004577/1.379, allocations: 339.6 kB / 0.5542 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003016/1.382, allocations: 445.4 kB / 0.5546 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03513/1.417, allocations: 11.4 MB / 0.5657 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002843/1.417, allocations: 29.94 kB / 0.5657 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002719/1.42, allocations: 206 kB / 0.5659 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002759/1.423, allocations: 1.25 MB / 0.5672 GB, free: 103.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03124/1.454, allocations: 10.94 MB / 0.5778 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.075/1.529, allocations: 38.03 MB / 0.615 GB, free: 72.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01305/1.542, allocations: 4.647 MB / 0.6195 GB, free: 68.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004513/1.547, allocations: 2.223 MB / 0.6217 GB, free: 66.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001549/1.548, allocations: 1.324 MB / 0.623 GB, free: 65.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/1.548, allocations: 52.66 kB / 0.623 GB, free: 65.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.163e-06/1.548, allocations: 3.938 kB / 0.623 GB, free: 65.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.05517/1.604, allocations: 11.28 MB / 0.634 GB, free: 55.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/1.604, allocations: 73.41 kB / 0.6341 GB, free: 55.05 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004761/1.608, allocations: 2.486 MB / 0.6365 GB, free: 52.55 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005374/1.609, allocations: 57.7 kB / 0.6366 GB, free: 52.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/1.611, allocations: 2.957 MB / 0.6395 GB, free: 49.53 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/1.612, allocations: 0.9433 MB / 0.6404 GB, free: 48.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/1.613, allocations: 114.6 kB / 0.6405 GB, free: 48.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003583/1.613, allocations: 0.5586 MB / 0.6411 GB, free: 47.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004973/1.618, allocations: 2.229 MB / 0.6432 GB, free: 45.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006876/1.625, allocations: 5.363 MB / 0.6485 GB, free: 38.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007305/1.632, allocations: 3.5 MB / 0.6519 GB, free: 35.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-05/1.633, allocations: 32 kB / 0.6519 GB, free: 35.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02321/1.656, allocations: 8.23 MB / 0.66 GB, free: 27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.604e-05/1.656, allocations: 52.97 kB / 0.66 GB, free: 26.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/1.656, allocations: 108 kB / 0.6601 GB, free: 26.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00715/1.663, allocations: 1.036 MB / 0.6611 GB, free: 25.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008148/1.671, allocations: 1.31 MB / 0.6624 GB, free: 24.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/1.675, allocations: 2.466 MB / 0.6648 GB, free: 21.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005704/1.681, allocations: 319.6 kB / 0.6651 GB, free: 21.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/1.682, allocations: 330.9 kB / 0.6654 GB, free: 21.24 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * Number of states: 0 () * Number of discrete variables: 21 (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 (710): * Single equations (assignments): 701 * 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 {(3,100.0%),(2,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.001256/1.683, allocations: 0.5198 MB / 0.6659 GB, free: 20.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006522/1.684, allocations: 280.3 kB / 0.6662 GB, free: 20.44 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/1.698, allocations: 4.857 MB / 0.671 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.755e-05/1.699, allocations: 43.94 kB / 0.671 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/1.699, allocations: 0 / 0.671 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.704e-05/1.699, allocations: 11.95 kB / 0.671 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03163/1.73, allocations: 11.47 MB / 0.6822 GB, free: 3.863 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/1.73, allocations: 8 kB / 0.6822 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003639/1.734, allocations: 411.3 kB / 0.6826 GB, free: 3.453 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005175/1.739, allocations: 0.6231 MB / 0.6832 GB, free: 2.824 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005216/1.74, allocations: 55.98 kB / 0.6833 GB, free: 2.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003082/1.743, allocations: 2.061 MB / 0.6853 GB, free: 0.5781 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.819e-06/1.743, allocations: 11.94 kB / 0.6853 GB, free: 0.5664 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01976/1.763, allocations: 7.663 MB / 0.6928 GB, free: 8.516 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/1.764, allocations: 329.3 kB / 0.6931 GB, free: 8.172 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007664/1.765, allocations: 51.98 kB / 0.6931 GB, free: 8.121 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002293/1.767, allocations: 129.8 kB / 0.6933 GB, free: 7.996 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005169/1.767, allocations: 160.7 kB / 0.6934 GB, free: 7.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/1.768, allocations: 79.05 kB / 0.6935 GB, free: 7.766 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004089/1.772, allocations: 1.682 MB / 0.6951 GB, free: 6.074 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.772, allocations: 4 kB / 0.6951 GB, free: 6.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006278/1.778, allocations: 0.9951 MB / 0.6961 GB, free: 5.078 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * 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.3937/2.172, allocations: 10.61 MB / 0.7065 GB, free: 109.8 MB / 474.7 MB [/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 $DER.freeMotionScalarInit.angle_2 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02468/2.197, allocations: 5.891 MB / 0.7122 GB, free: 109.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.105e-05/2.197, allocations: 1.406 kB / 0.7122 GB, free: 109.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01097/2.208, allocations: 2.36 MB / 0.7145 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004927/2.213, allocations: 391.4 kB / 0.7149 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0496/2.262, allocations: 11.26 MB / 0.7259 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0114/2.274, allocations: 3.623 MB / 0.7294 GB, free: 106.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00736/2.281, allocations: 1.989 MB / 0.7314 GB, free: 105.6 MB / 474.7 MB Notification: Performance of SimCode: time 2.234e-06/2.281, allocations: 0 / 0.7314 GB, free: 105.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.465/6.746, allocations: 139.7 MB / 0.8678 GB, free: 13.8 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat