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/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.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.546/2.546, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.339e-05/4.353e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4614/0.4615, allocations: 54.86 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2111/0.6727, allocations: 97.9 MB / 462.5 MB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000322/0.6731, allocations: 75.95 kB / 462.6 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7334/1.406, allocations: 90.65 MB / 0.5403 GB, free: 108 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.444e-06/1.407, allocations: 7.062 kB / 0.5403 GB, free: 108 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002206/1.407, allocations: 76.38 kB / 0.5404 GB, free: 108 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.02471/1.432, allocations: 4.262 MB / 0.5445 GB, free: 106.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.703e-05/1.432, allocations: 9.562 kB / 0.5445 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004682/1.436, allocations: 0.8564 MB / 0.5454 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02998/1.466, allocations: 3.561 MB / 0.5488 GB, free: 105.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02517/1.492, allocations: 4.67 MB / 0.5534 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005791/1.492, allocations: 331.8 kB / 0.5537 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003843/1.496, allocations: 439.7 kB / 0.5541 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04427/1.54, allocations: 10.95 MB / 0.5648 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003256/1.541, allocations: 25.84 kB / 0.5649 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003382/1.544, allocations: 205.4 kB / 0.5651 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003458/1.548, allocations: 1.224 MB / 0.5663 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03065/1.578, allocations: 10.52 MB / 0.5765 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07731/1.656, allocations: 37.32 MB / 0.613 GB, free: 74.87 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/1.668, allocations: 4.364 MB / 0.6172 GB, free: 70.78 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004685/1.673, allocations: 2.125 MB / 0.6193 GB, free: 68.83 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001634/1.675, allocations: 1.321 MB / 0.6206 GB, free: 67.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/1.675, allocations: 64.45 kB / 0.6207 GB, free: 67.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.203e-06/1.675, allocations: 0 / 0.6207 GB, free: 67.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.06107/1.736, allocations: 11.17 MB / 0.6316 GB, free: 57.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/1.736, allocations: 73.41 kB / 0.6316 GB, free: 57.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005126/1.741, allocations: 2.482 MB / 0.6341 GB, free: 55.11 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006042/1.742, allocations: 57.7 kB / 0.6341 GB, free: 55.05 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.744, allocations: 2.925 MB / 0.637 GB, free: 52.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001472/1.746, allocations: 0.9762 MB / 0.6379 GB, free: 51.16 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007402/1.746, allocations: 116 kB / 0.638 GB, free: 51.05 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004368/1.747, allocations: 0.5588 MB / 0.6386 GB, free: 50.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005696/1.752, allocations: 2.284 MB / 0.6408 GB, free: 48.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008/1.761, allocations: 5.418 MB / 0.6461 GB, free: 41.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00812/1.769, allocations: 3.57 MB / 0.6496 GB, free: 37.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/1.769, allocations: 32 kB / 0.6496 GB, free: 37.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02519/1.794, allocations: 8.375 MB / 0.6578 GB, free: 29.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.053e-05/1.794, allocations: 52 kB / 0.6579 GB, free: 29.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/1.794, allocations: 112 kB / 0.658 GB, free: 29.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00671/1.801, allocations: 1.064 MB / 0.659 GB, free: 28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00897/1.81, allocations: 1.326 MB / 0.6603 GB, free: 26.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003941/1.814, allocations: 2.462 MB / 0.6627 GB, free: 24.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006121/1.82, allocations: 323.5 kB / 0.663 GB, free: 23.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00137/1.822, allocations: 339.7 kB / 0.6633 GB, free: 23.43 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 (719): * Single equations (assignments): 710 * 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.001644/1.823, allocations: 0.5158 MB / 0.6638 GB, free: 22.91 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007395/1.824, allocations: 280.3 kB / 0.6641 GB, free: 22.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01561/1.84, allocations: 5.027 MB / 0.669 GB, free: 17.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/1.84, allocations: 47.98 kB / 0.6691 GB, free: 17.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/1.84, allocations: 0 / 0.6691 GB, free: 17.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.816e-05/1.84, allocations: 11.95 kB / 0.6691 GB, free: 17.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03317/1.873, allocations: 11.56 MB / 0.6804 GB, free: 5.801 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.776e-05/1.873, allocations: 12.19 kB / 0.6804 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003972/1.877, allocations: 431.2 kB / 0.6808 GB, free: 5.371 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006308/1.884, allocations: 0.8995 MB / 0.6817 GB, free: 4.461 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006217/1.884, allocations: 66.62 kB / 0.6817 GB, free: 4.398 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/1.888, allocations: 2.28 MB / 0.684 GB, free: 1.992 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/1.888, allocations: 8 kB / 0.684 GB, free: 1.984 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02273/1.911, allocations: 8.082 MB / 0.6919 GB, free: 9.562 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/1.912, allocations: 337.3 kB / 0.6922 GB, free: 9.211 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/1.913, allocations: 55.94 kB / 0.6922 GB, free: 9.156 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003237/1.916, allocations: 131.8 kB / 0.6924 GB, free: 9.027 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008849/1.917, allocations: 157.7 kB / 0.6925 GB, free: 8.875 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003269/1.918, allocations: 79.8 kB / 0.6926 GB, free: 8.801 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004847/1.923, allocations: 1.69 MB / 0.6942 GB, free: 7.102 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.463e-06/1.923, allocations: 0 / 0.6942 GB, free: 7.102 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00734/1.93, allocations: 1.015 MB / 0.6952 GB, free: 6.09 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (216): * Single equations (assignments): 207 * 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.3602/2.29, allocations: 10.67 MB / 0.7056 GB, free: 109.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.018/2.308, allocations: 6.065 MB / 0.7116 GB, free: 109.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/2.308, allocations: 1.219 kB / 0.7116 GB, free: 109.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008629/2.317, allocations: 2.581 MB / 0.7141 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003453/2.32, allocations: 385.9 kB / 0.7145 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0339/2.354, allocations: 11.31 MB / 0.7255 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007402/2.362, allocations: 3.599 MB / 0.729 GB, free: 106.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005041/2.367, allocations: 2.023 MB / 0.731 GB, free: 105.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.463e-06/2.367, allocations: 4.781 kB / 0.731 GB, free: 105.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.42/6.787, allocations: 140 MB / 0.8677 GB, free: 13.91 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