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/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.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.636/2.636, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.351e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3722, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1771/0.5493, allocations: 94.57 MB / 452.7 MB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.5496, allocations: 75.95 kB / 452.8 MB, free: 68 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6438/1.193, allocations: 81.29 MB / 0.5215 GB, free: 46.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.194, allocations: 4 kB / 0.5215 GB, free: 46.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001893/1.194, allocations: 67.94 kB / 0.5216 GB, free: 46.55 MB / 394.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.02119/1.215, allocations: 3.852 MB / 0.5254 GB, free: 42.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/1.215, allocations: 12.03 kB / 0.5254 GB, free: 42.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04102/1.256, allocations: 5.875 MB / 0.5311 GB, free: 36.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02079/1.277, allocations: 5.282 MB / 0.5363 GB, free: 31.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002674/1.277, allocations: 120.5 kB / 0.5364 GB, free: 31.29 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002713/1.28, allocations: 212 kB / 0.5366 GB, free: 31.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01628/1.296, allocations: 6.895 MB / 0.5433 GB, free: 24.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0253/1.322, allocations: 9.18 MB / 0.5523 GB, free: 14.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/1.322, allocations: 43.64 kB / 0.5523 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001927/1.324, allocations: 16 kB / 0.5524 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00237/1.326, allocations: 1.144 MB / 0.5535 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0768/1.403, allocations: 35.03 MB / 0.5877 GB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008867/1.412, allocations: 4.079 MB / 0.5917 GB, free: 5.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005621/1.418, allocations: 2.268 MB / 0.5939 GB, free: 2.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003187/1.421, allocations: 1.884 MB / 0.5957 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.794e-05/1.421, allocations: 48.56 kB / 0.5958 GB, free: 0.707 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 7.845e-06/1.421, allocations: 0 / 0.5958 GB, free: 0.707 MB / 426.7 MB Notification: Performance of matching and sorting (n=233): time 0.04746/1.469, allocations: 11.82 MB / 0.6073 GB, free: 4.809 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/1.469, allocations: 73.36 kB / 0.6074 GB, free: 4.727 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006986/1.476, allocations: 2.383 MB / 0.6097 GB, free: 2.332 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006695/1.476, allocations: 25.7 kB / 0.6097 GB, free: 2.301 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003351/1.48, allocations: 2.757 MB / 0.6124 GB, free: 15.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001727/1.482, allocations: 0.8401 MB / 0.6132 GB, free: 14.65 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007933/1.482, allocations: 0 / 0.6132 GB, free: 14.65 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007216/1.483, allocations: 0.5587 MB / 0.6138 GB, free: 14.08 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00704/1.49, allocations: 2.534 MB / 0.6163 GB, free: 11.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01068/1.501, allocations: 5.713 MB / 0.6218 GB, free: 4.223 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.511, allocations: 3.822 MB / 0.6256 GB, free: 408 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001714/1.511, allocations: 32 kB / 0.6256 GB, free: 376 kB / 458.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.4845/1.996, allocations: 18.43 MB / 0.6436 GB, free: 114.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000101/1.996, allocations: 56.16 kB / 0.6436 GB, free: 114.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09196/2.088, allocations: 11.89 MB / 0.6553 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09522/2.183, allocations: 10.31 MB / 0.6653 GB, free: 112.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00836/2.192, allocations: 1.32 MB / 0.6666 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05339/2.245, allocations: 15.11 MB / 0.6814 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/2.255, allocations: 343.5 kB / 0.6817 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0018/2.257, allocations: 332.9 kB / 0.682 GB, free: 101.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * 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 (693): * Single equations (assignments): 682 * 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.002205/2.26, allocations: 399.8 kB / 0.6824 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01811/2.278, allocations: 4.468 MB / 0.6868 GB, free: 96.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/2.279, allocations: 273.2 kB / 0.687 GB, free: 96.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01761/2.297, allocations: 4.968 MB / 0.6919 GB, free: 91.69 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01298/2.31, allocations: 4.285 MB / 0.6961 GB, free: 87.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/2.31, allocations: 0 / 0.6961 GB, free: 87.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.04e-05/2.31, allocations: 11.36 kB / 0.6961 GB, free: 87.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03337/2.343, allocations: 11.96 MB / 0.7077 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-05/2.343, allocations: 8 kB / 0.7078 GB, free: 75.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003656/2.347, allocations: 419.1 kB / 0.7082 GB, free: 74.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005237/2.352, allocations: 0.9244 MB / 0.7091 GB, free: 74.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006019/2.353, allocations: 23.97 kB / 0.7091 GB, free: 73.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009548/2.363, allocations: 5.292 MB / 0.7142 GB, free: 68.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001162/2.364, allocations: 1.4 MB / 0.7156 GB, free: 66.96 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/2.382, allocations: 8.257 MB / 0.7237 GB, free: 58.42 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009781/2.383, allocations: 325.5 kB / 0.724 GB, free: 58.08 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001196/2.385, allocations: 15.98 kB / 0.724 GB, free: 58.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003573/2.388, allocations: 178.7 kB / 0.7242 GB, free: 57.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008977/2.389, allocations: 147.5 kB / 0.7243 GB, free: 57.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003299/2.39, allocations: 68.92 kB / 0.7244 GB, free: 57.69 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004017/2.394, allocations: 1.564 MB / 0.7259 GB, free: 56.12 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.252e-06/2.394, allocations: 0 / 0.7259 GB, free: 56.12 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009953/2.404, allocations: 1.005 MB / 0.7269 GB, free: 55.12 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (172): * Single equations (assignments): 163 * 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.02654/2.43, allocations: 10.93 MB / 0.7376 GB, free: 43.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01641/2.447, allocations: 6.342 MB / 0.7438 GB, free: 37.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-05/2.447, allocations: 3.938 kB / 0.7438 GB, free: 37.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006093/2.453, allocations: 2.459 MB / 0.7462 GB, free: 35.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002794/2.456, allocations: 240.3 kB / 0.7464 GB, free: 34.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03195/2.488, allocations: 10.12 MB / 0.7563 GB, free: 24.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006989/2.495, allocations: 3.251 MB / 0.7594 GB, free: 21.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004807/2.5, allocations: 1.718 MB / 0.7611 GB, free: 19.79 MB / 458.7 MB Notification: Performance of SimCode: time 1.663e-06/2.5, allocations: 0 / 0.7611 GB, free: 19.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.873/7.373, allocations: 128.8 MB / 0.8869 GB, free: 93.07 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