Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.31/2.31, allocations: 209.2 MB / 224.8 MB, free: 1.227 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004925/0.0004924, allocations: 12 kB / 282.7 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 48.7 MB / 331.4 MB, free: 8.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4811/0.5942, allocations: 91.25 MB / 422.6 MB, free: 9.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.5946, allocations: 79.97 kB / 422.7 MB, free: 9.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7039/1.298, allocations: 90.56 MB / 0.5012 GB, free: 89.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.299, allocations: 0 / 0.5012 GB, free: 89.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002606/1.299, allocations: 83.89 kB / 0.5013 GB, free: 89.59 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.02642/1.325, allocations: 4.399 MB / 0.5056 GB, free: 87.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.074e-05/1.325, allocations: 8.625 kB / 0.5056 GB, free: 87.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005959/1.331, allocations: 0.8582 MB / 0.5064 GB, free: 87.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02901/1.36, allocations: 3.553 MB / 0.5099 GB, free: 87.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01903/1.38, allocations: 4.694 MB / 0.5145 GB, free: 86.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005063/1.38, allocations: 331.4 kB / 0.5148 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003408/1.384, allocations: 441.9 kB / 0.5152 GB, free: 86.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03711/1.421, allocations: 11.03 MB / 0.526 GB, free: 85.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002972/1.421, allocations: 31.53 kB / 0.526 GB, free: 85.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00287/1.424, allocations: 198.9 kB / 0.5262 GB, free: 85.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002902/1.427, allocations: 1.224 MB / 0.5274 GB, free: 85.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03086/1.458, allocations: 10.67 MB / 0.5378 GB, free: 81.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07936/1.537, allocations: 37.33 MB / 0.5743 GB, free: 54.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/1.55, allocations: 4.397 MB / 0.5786 GB, free: 50.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001561/1.551, allocations: 1.319 MB / 0.5799 GB, free: 49.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/1.552, allocations: 52.56 kB / 0.5799 GB, free: 48.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=244): time 8.135e-06/1.552, allocations: 0 / 0.5799 GB, free: 48.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=265): time 0.06736/1.619, allocations: 14.28 MB / 0.5939 GB, free: 34.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/1.619, allocations: 81.34 kB / 0.594 GB, free: 34.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004746/1.624, allocations: 2.505 MB / 0.5964 GB, free: 31.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006003/1.624, allocations: 61.7 kB / 0.5965 GB, free: 31.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001861/1.626, allocations: 2.92 MB / 0.5993 GB, free: 28.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001368/1.628, allocations: 0.9784 MB / 0.6003 GB, free: 27.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004463/1.628, allocations: 112 kB / 0.6004 GB, free: 27.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003647/1.629, allocations: 0.5588 MB / 0.6009 GB, free: 27.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005176/1.634, allocations: 2.33 MB / 0.6032 GB, free: 24.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007057/1.641, allocations: 5.472 MB / 0.6085 GB, free: 17.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00837/1.649, allocations: 3.587 MB / 0.612 GB, free: 14.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/1.649, allocations: 32 kB / 0.6121 GB, free: 14.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02564/1.675, allocations: 8.472 MB / 0.6203 GB, free: 5.867 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.07e-05/1.675, allocations: 52 kB / 0.6204 GB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/1.675, allocations: 108 kB / 0.6205 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006503/1.682, allocations: 1.052 MB / 0.6215 GB, free: 4.648 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008397/1.69, allocations: 1.33 MB / 0.6228 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003962/1.694, allocations: 2.501 MB / 0.6253 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006031/1.7, allocations: 315.7 kB / 0.6256 GB, free: 384 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.702, allocations: 339.8 kB / 0.6259 GB, free: 48 kB / 410.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 () * Number of clocked 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.0073/1.709, allocations: 2.254 MB / 0.6281 GB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008003/1.71, allocations: 284.3 kB / 0.6284 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01748/1.728, allocations: 5.055 MB / 0.6333 GB, free: 8.375 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/1.728, allocations: 55.98 kB / 0.6334 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/1.728, allocations: 0 / 0.6334 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.731e-05/1.728, allocations: 15.91 kB / 0.6334 GB, free: 8.305 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3606/2.089, allocations: 11.61 MB / 0.6447 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.394e-05/2.089, allocations: 7.719 kB / 0.6447 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004067/2.093, allocations: 427.9 kB / 0.6451 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006667/2.099, allocations: 0.9037 MB / 0.646 GB, free: 92.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008302/2.1, allocations: 60.11 kB / 0.6461 GB, free: 92.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/2.105, allocations: 2.313 MB / 0.6483 GB, free: 91.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.738e-05/2.105, allocations: 9.344 kB / 0.6483 GB, free: 91.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02419/2.129, allocations: 8.161 MB / 0.6563 GB, free: 89.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009483/2.13, allocations: 327 kB / 0.6566 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009079/2.131, allocations: 55.27 kB / 0.6567 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002394/2.134, allocations: 136 kB / 0.6568 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005836/2.134, allocations: 166 kB / 0.657 GB, free: 89.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002974/2.135, allocations: 74.05 kB / 0.657 GB, free: 89.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004289/2.139, allocations: 1.71 MB / 0.6587 GB, free: 89.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.139, allocations: 0 / 0.6587 GB, free: 89.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006889/2.146, allocations: 1.01 MB / 0.6597 GB, free: 89.73 MB / 426.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 () * Number of clocked 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.02099/2.167, allocations: 10.76 MB / 0.6702 GB, free: 85.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01546/2.183, allocations: 6.134 MB / 0.6762 GB, free: 85.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/2.183, allocations: 0 / 0.6762 GB, free: 85.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007568/2.19, allocations: 2.604 MB / 0.6787 GB, free: 84.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003458/2.194, allocations: 396.2 kB / 0.6791 GB, free: 84.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09792/2.292, allocations: 108.4 MB / 0.785 GB, free: 5.504 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00863/2.3, allocations: 3.599 MB / 0.7885 GB, free: 4.152 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006109/2.307, allocations: 2.02 MB / 0.7905 GB, free: 2.527 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/2.307, allocations: 0 / 0.7905 GB, free: 2.527 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.28/7.586, allocations: 139.4 MB / 0.9266 GB, free: 56.32 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat