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.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.581/2.581, allocations: 235 MB / 248 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.634e-05, allocations: 7.984 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4047, allocations: 54.85 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.5904, allocations: 95.25 MB / 459.9 MB, free: 1.117 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.5907, allocations: 71.97 kB / 459.9 MB, free: 1.047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7478/1.339, allocations: 82.7 MB / 0.5299 GB, free: 111 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.339, allocations: 0 / 0.5299 GB, free: 111 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002288/1.339, allocations: 72.36 kB / 0.53 GB, free: 111 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.02403/1.363, allocations: 3.846 MB / 0.5337 GB, free: 110 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.365e-05/1.363, allocations: 9.625 kB / 0.5337 GB, free: 110 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004261/1.367, allocations: 0.7537 MB / 0.5345 GB, free: 109.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04403/1.411, allocations: 5.875 MB / 0.5402 GB, free: 109.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02387/1.435, allocations: 5.303 MB / 0.5454 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005532/1.436, allocations: 281.3 kB / 0.5457 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003071/1.439, allocations: 371.5 kB / 0.546 GB, free: 109.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03441/1.473, allocations: 10.34 MB / 0.5561 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002786/1.474, allocations: 33.53 kB / 0.5561 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002447/1.476, allocations: 176.7 kB / 0.5563 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00271/1.479, allocations: 1.156 MB / 0.5574 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03031/1.509, allocations: 9.966 MB / 0.5672 GB, free: 106.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07862/1.588, allocations: 37.32 MB / 0.6036 GB, free: 82.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01887/1.607, allocations: 5.57 MB / 0.6091 GB, free: 77.53 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005112/1.612, allocations: 2.306 MB / 0.6113 GB, free: 75.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002339/1.615, allocations: 1.881 MB / 0.6132 GB, free: 73.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/1.615, allocations: 61.91 kB / 0.6132 GB, free: 73.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 8.226e-06/1.615, allocations: 3.656 kB / 0.6132 GB, free: 73.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.05096/1.666, allocations: 12.4 MB / 0.6253 GB, free: 62.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001397/1.667, allocations: 1.523 MB / 0.6268 GB, free: 61.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005694/1.673, allocations: 2.461 MB / 0.6292 GB, free: 58.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006611/1.674, allocations: 57.7 kB / 0.6293 GB, free: 58.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/1.676, allocations: 2.663 MB / 0.6319 GB, free: 56.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.677, allocations: 0.8549 MB / 0.6327 GB, free: 55.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000748/1.678, allocations: 104 kB / 0.6328 GB, free: 55.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004148/1.678, allocations: 0.5501 MB / 0.6333 GB, free: 54.54 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006125/1.685, allocations: 2.553 MB / 0.6358 GB, free: 51.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008315/1.693, allocations: 5.52 MB / 0.6412 GB, free: 44.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008357/1.701, allocations: 3.773 MB / 0.6449 GB, free: 41.22 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-05/1.702, allocations: 28 kB / 0.6449 GB, free: 41.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1181/1.82, allocations: 18.79 MB / 0.6633 GB, free: 22.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.721e-05/1.82, allocations: 51.56 kB / 0.6633 GB, free: 22.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09033/1.91, allocations: 11.97 MB / 0.675 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09366/2.004, allocations: 10.31 MB / 0.6851 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008543/2.012, allocations: 1.244 MB / 0.6863 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3788/2.391, allocations: 15.86 MB / 0.7018 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007071/2.398, allocations: 442.6 kB / 0.7022 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001645/2.4, allocations: 316.8 kB / 0.7025 GB, free: 112.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * 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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (649): * Single equations (assignments): 638 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.002214/2.402, allocations: 494.9 kB / 0.703 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007853/2.403, allocations: 269.8 kB / 0.7032 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01738/2.421, allocations: 5.075 MB / 0.7082 GB, free: 112.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01469/2.435, allocations: 4.356 MB / 0.7125 GB, free: 112.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.22e-05/2.435, allocations: 1.25 kB / 0.7125 GB, free: 112.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.176e-05/2.435, allocations: 14.88 kB / 0.7125 GB, free: 112.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03706/2.473, allocations: 12.94 MB / 0.7251 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-05/2.473, allocations: 7.719 kB / 0.7251 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003575/2.476, allocations: 406.3 kB / 0.7255 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005353/2.482, allocations: 0.9383 MB / 0.7264 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005613/2.482, allocations: 54.53 kB / 0.7265 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009215/2.491, allocations: 5.424 MB / 0.7318 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001149/2.493, allocations: 1.46 MB / 0.7332 GB, free: 106.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01833/2.511, allocations: 8.288 MB / 0.7413 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009721/2.512, allocations: 326.2 kB / 0.7416 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007863/2.513, allocations: 47.89 kB / 0.7416 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002944/2.516, allocations: 193.1 kB / 0.7418 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005807/2.516, allocations: 148.8 kB / 0.742 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002664/2.517, allocations: 65.33 kB / 0.742 GB, free: 103 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003406/2.52, allocations: 1.678 MB / 0.7437 GB, free: 102.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.52, allocations: 0 / 0.7437 GB, free: 102.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006586/2.527, allocations: 1.107 MB / 0.7447 GB, free: 102.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * 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): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01953/2.546, allocations: 10.88 MB / 0.7554 GB, free: 96.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01694/2.563, allocations: 6.469 MB / 0.7617 GB, free: 94.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/2.563, allocations: 0 / 0.7617 GB, free: 94.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006143/2.57, allocations: 2.508 MB / 0.7641 GB, free: 93.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/2.572, allocations: 337.8 kB / 0.7645 GB, free: 93.17 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02888/2.601, allocations: 10.3 MB / 0.7745 GB, free: 87.21 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005057/2.606, allocations: 3.257 MB / 0.7777 GB, free: 84.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003917/2.61, allocations: 1.701 MB / 0.7794 GB, free: 83.14 MB / 474.7 MB Notification: Performance of SimCode: time 1.714e-06/2.61, allocations: 0 / 0.7794 GB, free: 83.14 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.77/7.38, allocations: 129.8 MB / 0.9061 GB, free: 122.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat