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.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.45/2.45, allocations: 234.9 MB / 250.5 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006105/0.0006108, allocations: 12 kB / 314.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3952, allocations: 54.85 MB / 369.4 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1919/0.5872, allocations: 102.9 MB / 472.3 MB, free: 5.715 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.5875, allocations: 83.89 kB / 472.3 MB, free: 5.633 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8019/1.389, allocations: 118.4 MB / 0.5769 GB, free: 57.01 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.389, allocations: 0 / 0.5769 GB, free: 57.01 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004202/1.39, allocations: 120 kB / 0.577 GB, free: 56.89 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.026/1.416, allocations: 6.433 MB / 0.5833 GB, free: 50.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/1.416, allocations: 12.03 kB / 0.5833 GB, free: 50.37 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004442/1.42, allocations: 1.018 MB / 0.5843 GB, free: 49.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04927/1.47, allocations: 6.985 MB / 0.5911 GB, free: 42.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0256/1.495, allocations: 7.842 MB / 0.5988 GB, free: 34.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005343/1.496, allocations: 439.5 kB / 0.5992 GB, free: 33.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00314/1.499, allocations: 0.5778 MB / 0.5997 GB, free: 33.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04066/1.54, allocations: 13.93 MB / 0.6133 GB, free: 18.28 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004634/1.54, allocations: 87.14 kB / 0.6134 GB, free: 18.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00279/1.543, allocations: 275.9 kB / 0.6137 GB, free: 17.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002758/1.546, allocations: 1.314 MB / 0.615 GB, free: 16.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03537/1.581, allocations: 11.7 MB / 0.6264 GB, free: 4.891 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4966/2.078, allocations: 62.08 MB / 0.687 GB, free: 66.93 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0325/2.111, allocations: 5.769 MB / 0.6926 GB, free: 66.25 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001222/2.112, allocations: 0.6923 MB / 0.6933 GB, free: 65.69 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.405e-05/2.112, allocations: 59.08 kB / 0.6934 GB, free: 65.65 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 8.987e-06/2.112, allocations: 3.781 kB / 0.6934 GB, free: 65.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.1618/2.274, allocations: 34.21 MB / 0.7268 GB, free: 61.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/2.274, allocations: 268.2 kB / 0.7271 GB, free: 60.77 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01154/2.286, allocations: 4.669 MB / 0.7316 GB, free: 60.38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009253/2.287, allocations: 74.67 kB / 0.7317 GB, free: 60.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003606/2.29, allocations: 3.873 MB / 0.7355 GB, free: 58.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002066/2.292, allocations: 1.19 MB / 0.7366 GB, free: 57.41 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001164/2.294, allocations: 151.9 kB / 0.7368 GB, free: 57.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005929/2.294, allocations: 0.64 MB / 0.7374 GB, free: 56.84 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008436/2.303, allocations: 3.318 MB / 0.7406 GB, free: 55.67 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0116/2.314, allocations: 7.557 MB / 0.748 GB, free: 48.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/2.326, allocations: 4.933 MB / 0.7528 GB, free: 47.07 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001556/2.326, allocations: 42.41 kB / 0.7529 GB, free: 47.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03638/2.362, allocations: 12.39 MB / 0.765 GB, free: 40.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/2.363, allocations: 70.44 kB / 0.765 GB, free: 39.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/2.363, allocations: 148 kB / 0.7652 GB, free: 39.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009059/2.372, allocations: 2.141 MB / 0.7673 GB, free: 38.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01123/2.383, allocations: 1.758 MB / 0.769 GB, free: 36.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02839/2.412, allocations: 14.81 MB / 0.7835 GB, free: 23.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009441/2.421, allocations: 460.4 kB / 0.7839 GB, free: 23.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001882/2.423, allocations: 451.2 kB / 0.7843 GB, free: 22.72 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * 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: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008344/2.431, allocations: 2.816 MB / 0.7871 GB, free: 20.24 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001586/2.433, allocations: 497.5 kB / 0.7875 GB, free: 19.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02192/2.455, allocations: 7.088 MB / 0.7945 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.859e-05/2.455, allocations: 32 kB / 0.7945 GB, free: 13.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.709e-05/2.455, allocations: 12 kB / 0.7945 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.753e-05/2.455, allocations: 17.3 kB / 0.7945 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04576/2.501, allocations: 16.08 MB / 0.8102 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.885e-05/2.501, allocations: 4 kB / 0.8102 GB, free: 0.8164 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004789/2.506, allocations: 0.5076 MB / 0.8107 GB, free: 408 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0101/2.516, allocations: 1.954 MB / 0.8126 GB, free: 14.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000931/2.517, allocations: 59.72 kB / 0.8127 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03343/2.551, allocations: 13.31 MB / 0.8257 GB, free: 1.289 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/2.551, allocations: 7.938 kB / 0.8257 GB, free: 1.281 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03403/2.585, allocations: 12.19 MB / 0.8376 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004792/2.59, allocations: 1.053 MB / 0.8386 GB, free: 3.691 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002469/2.592, allocations: 55.98 kB / 0.8387 GB, free: 3.637 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005549/2.598, allocations: 219.7 kB / 0.8389 GB, free: 3.422 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/2.599, allocations: 197.6 kB / 0.8391 GB, free: 3.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005089/2.6, allocations: 87.98 kB / 0.8392 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01022/2.61, allocations: 3.318 MB / 0.8424 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.665e-06/2.61, allocations: 4 kB / 0.8424 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01097/2.621, allocations: 1.496 MB / 0.8439 GB, free: 14.36 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (259): * Single equations (assignments): 254 * Array equations: 3 * 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: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03652/2.657, allocations: 14.17 MB / 0.8577 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02319/2.681, allocations: 8.279 MB / 0.8658 GB, free: 7.602 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/2.681, allocations: 4 kB / 0.8658 GB, free: 7.598 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01967/2.7, allocations: 3.93 MB / 0.8696 GB, free: 3.641 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008652/2.709, allocations: 0.6211 MB / 0.8702 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6216/3.331, allocations: 157 MB / 1.024 GB, free: 36.67 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01095/3.342, allocations: 4.516 MB / 1.028 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007567/3.349, allocations: 2.847 MB / 1.031 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of SimCode: time 2.835e-06/3.349, allocations: 0 / 1.031 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.699/9.048, allocations: 167.1 MB / 1.194 GB, free: 93.3 MB / 0.5261 GB