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.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.475/2.475, allocations: 235.1 MB / 243 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.514e-05/2.543e-05, allocations: 4 kB / 303.3 MB, free: 3.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4058, allocations: 54.87 MB / 358.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1852/0.5911, allocations: 97.23 MB / 455.4 MB, free: 14.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.5914, allocations: 79.97 kB / 455.4 MB, free: 14.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8048/1.396, allocations: 89.06 MB / 0.5317 GB, free: 66.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.396, allocations: 0 / 0.5317 GB, free: 66.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002887/1.397, allocations: 79.28 kB / 0.5318 GB, free: 66.88 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.0249/1.422, allocations: 4.261 MB / 0.536 GB, free: 62.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/1.422, allocations: 8.031 kB / 0.536 GB, free: 62.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02697/1.449, allocations: 3.554 MB / 0.5394 GB, free: 58.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01778/1.466, allocations: 4.674 MB / 0.544 GB, free: 54.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/1.467, allocations: 144 kB / 0.5442 GB, free: 54.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00299/1.47, allocations: 248 kB / 0.5444 GB, free: 53.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01841/1.488, allocations: 7.78 MB / 0.552 GB, free: 46.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/1.516, allocations: 10.19 MB / 0.5619 GB, free: 35.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001825/1.516, allocations: 39.64 kB / 0.562 GB, free: 35.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001344/1.517, allocations: 12 kB / 0.562 GB, free: 35.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002493/1.52, allocations: 1.228 MB / 0.5632 GB, free: 34.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07035/1.59, allocations: 34.67 MB / 0.597 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00793/1.598, allocations: 4.01 MB / 0.601 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004755/1.603, allocations: 2.081 MB / 0.603 GB, free: 8.535 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001944/1.605, allocations: 1.331 MB / 0.6043 GB, free: 6.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.931e-05/1.605, allocations: 52.56 kB / 0.6043 GB, free: 6.922 MB / 426.7 MB Notification: Performance of pre-optimization done (n=246): time 7.454e-06/1.605, allocations: 0 / 0.6043 GB, free: 6.922 MB / 426.7 MB Notification: Performance of matching and sorting (n=266): time 0.0471/1.652, allocations: 12.01 MB / 0.6161 GB, free: 10.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/1.652, allocations: 73.41 kB / 0.6161 GB, free: 10.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005293/1.658, allocations: 2.4 MB / 0.6185 GB, free: 8.414 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006205/1.658, allocations: 25.7 kB / 0.6185 GB, free: 8.383 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003185/1.662, allocations: 3.028 MB / 0.6215 GB, free: 5.312 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.664, allocations: 0.9556 MB / 0.6224 GB, free: 4.344 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006717/1.664, allocations: 7.938 kB / 0.6224 GB, free: 4.336 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005797/1.665, allocations: 0.5753 MB / 0.623 GB, free: 3.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005854/1.671, allocations: 2.257 MB / 0.6252 GB, free: 1.488 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009341/1.68, allocations: 5.629 MB / 0.6307 GB, free: 10.17 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009138/1.689, allocations: 3.615 MB / 0.6342 GB, free: 6.559 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000132/1.689, allocations: 32 kB / 0.6342 GB, free: 6.527 MB / 458.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02814/1.718, allocations: 8.008 MB / 0.6421 GB, free: 14.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/1.718, allocations: 58.72 kB / 0.6421 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/1.718, allocations: 124 kB / 0.6422 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007073/1.725, allocations: 1.067 MB / 0.6433 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009319/1.734, allocations: 1.427 MB / 0.6447 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004297/1.739, allocations: 2.383 MB / 0.647 GB, free: 9.312 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006083/1.745, allocations: 215.7 kB / 0.6472 GB, free: 9.102 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/1.747, allocations: 364 kB / 0.6475 GB, free: 8.746 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * 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 (765): * Single equations (assignments): 756 * 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.00172/1.748, allocations: 412 kB / 0.6479 GB, free: 8.332 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0214/1.77, allocations: 4.355 MB / 0.6522 GB, free: 3.926 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001566/1.771, allocations: 288.3 kB / 0.6525 GB, free: 3.641 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3604/2.132, allocations: 4.925 MB / 0.6573 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001478/2.132, allocations: 48.86 kB / 0.6573 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.222e-05/2.132, allocations: 5.531 kB / 0.6573 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.509e-05/2.132, allocations: 10.31 kB / 0.6573 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03113/2.163, allocations: 10.44 MB / 0.6675 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.135e-05/2.163, allocations: 7.469 kB / 0.6675 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003826/2.167, allocations: 436.7 kB / 0.668 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006099/2.173, allocations: 0.8979 MB / 0.6688 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006511/2.174, allocations: 38.97 kB / 0.6689 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003259/2.177, allocations: 2.186 MB / 0.671 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.389e-05/2.177, allocations: 16.98 kB / 0.671 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01887/2.196, allocations: 8.053 MB / 0.6789 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009121/2.197, allocations: 328.8 kB / 0.6792 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009833/2.198, allocations: 18.31 kB / 0.6792 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002748/2.201, allocations: 101.9 kB / 0.6793 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006677/2.202, allocations: 162.4 kB / 0.6795 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002675/2.202, allocations: 84.97 kB / 0.6796 GB, free: 121.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003423/2.206, allocations: 1.57 MB / 0.6811 GB, free: 121 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.206, allocations: 0 / 0.6811 GB, free: 121 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00679/2.212, allocations: 0.8717 MB / 0.6819 GB, free: 121 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (217): * Single equations (assignments): 208 * 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.02022/2.233, allocations: 10.74 MB / 0.6924 GB, free: 116.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01644/2.249, allocations: 5.944 MB / 0.6982 GB, free: 114.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.303e-05/2.249, allocations: 0 / 0.6982 GB, free: 114.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01113/2.26, allocations: 2.562 MB / 0.7007 GB, free: 113.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004493/2.265, allocations: 285.6 kB / 0.701 GB, free: 113.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04994/2.315, allocations: 11.12 MB / 0.7119 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01109/2.326, allocations: 3.594 MB / 0.7154 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006567/2.333, allocations: 2.017 MB / 0.7173 GB, free: 103.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.914e-06/2.333, allocations: 0 / 0.7173 GB, free: 103.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.095/7.428, allocations: 138.9 MB / 0.853 GB, free: 140.8 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat