Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004315, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3485, allocations: 54.85 MB / 369.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1962/0.5448, allocations: 105.7 MB / 475 MB, free: 0.8047 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.5452, allocations: 83.89 kB / 475.1 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553/2.098, allocations: 248.2 MB / 0.7063 GB, free: 31.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.375e-06/2.098, allocations: 0 / 0.7063 GB, free: 31.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008655/2.099, allocations: 368.4 kB / 0.7066 GB, free: 31.41 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: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.06775/2.167, allocations: 16.16 MB / 0.7224 GB, free: 25.92 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/2.167, allocations: 7.25 kB / 0.7224 GB, free: 25.92 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01439/2.181, allocations: 3.066 MB / 0.7254 GB, free: 25.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05876/2.24, allocations: 8.285 MB / 0.7335 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04199/2.282, allocations: 12.46 MB / 0.7457 GB, free: 23.22 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001754/2.284, allocations: 1.497 MB / 0.7471 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009741/2.294, allocations: 1.966 MB / 0.7491 GB, free: 22.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1593/2.453, allocations: 43.44 MB / 0.7915 GB, free: 2.262 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00131/2.455, allocations: 153.8 kB / 0.7916 GB, free: 2.113 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008809/2.463, allocations: 0.8823 MB / 0.7925 GB, free: 1.273 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005631/2.469, allocations: 2.383 MB / 0.7948 GB, free: 14.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.54/3.009, allocations: 34.02 MB / 0.828 GB, free: 62.55 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2527/3.262, allocations: 146.7 MB / 0.9713 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1045/3.367, allocations: 22.52 MB / 0.9933 GB, free: 7.035 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06458/3.431, allocations: 27.43 MB / 1.02 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.438e-05/3.431, allocations: 83.44 kB / 1.02 GB, free: 9.66 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=372): time 1.09e-05/3.431, allocations: 0 / 1.02 GB, free: 9.66 MB / 0.5417 GB Notification: Performance of matching and sorting (n=486): time 2.712/6.143, allocations: 299.6 MB / 1.313 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/6.143, allocations: 282.7 kB / 1.313 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02373/6.167, allocations: 9.043 MB / 1.322 GB, free: 97.57 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002806/6.17, allocations: 101.3 kB / 1.322 GB, free: 97.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.008486/6.179, allocations: 10.59 MB / 1.332 GB, free: 89.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.005015/6.184, allocations: 1.89 MB / 1.334 GB, free: 87.99 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004345/6.188, allocations: 336.7 kB / 1.334 GB, free: 87.73 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00229/6.19, allocations: 1.035 MB / 1.335 GB, free: 87.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0356/6.226, allocations: 15.92 MB / 1.351 GB, free: 80.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04267/6.269, allocations: 26.48 MB / 1.377 GB, free: 56.43 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04219/6.311, allocations: 19.94 MB / 1.396 GB, free: 39 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004148/6.311, allocations: 108 kB / 1.396 GB, free: 38.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.5855/6.897, allocations: 43.22 MB / 1.439 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003647/6.897, allocations: 163.2 kB / 1.439 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008016/6.898, allocations: 375.2 kB / 1.439 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002977/6.901, allocations: 0.8747 MB / 1.44 GB, free: 95.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03868/6.94, allocations: 5.287 MB / 1.445 GB, free: 95.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008789/6.949, allocations: 5.757 MB / 1.451 GB, free: 92.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03034/6.979, allocations: 2.154 MB / 1.453 GB, free: 92.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005664/6.985, allocations: 1.022 MB / 1.454 GB, free: 92.54 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1714 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2150): * Single equations (assignments): 2140 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02505/7.01, allocations: 7.838 MB / 1.462 GB, free: 92.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00445/7.014, allocations: 0.868 MB / 1.462 GB, free: 92.24 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07569/7.09, allocations: 30.26 MB / 1.492 GB, free: 87.67 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002198/7.09, allocations: 90.16 kB / 1.492 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-05/7.091, allocations: 6.516 kB / 1.492 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000157/7.091, allocations: 29.44 kB / 1.492 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1564/7.247, allocations: 72.44 MB / 1.563 GB, free: 47.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.054e-05/7.247, allocations: 6.5 kB / 1.563 GB, free: 47.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02266/7.27, allocations: 2.109 MB / 1.565 GB, free: 47.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/7.272, allocations: 327 kB / 1.565 GB, free: 47.02 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002494/7.274, allocations: 83.05 kB / 1.565 GB, free: 46.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006693/7.281, allocations: 4.388 MB / 1.57 GB, free: 42.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/7.281, allocations: 0 / 1.57 GB, free: 42.72 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1258/7.407, allocations: 51.61 MB / 1.62 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01409/7.421, allocations: 3.95 MB / 1.624 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005478/7.426, allocations: 78.84 kB / 1.624 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02084/7.447, allocations: 1.632 MB / 1.625 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004043/7.451, allocations: 259.6 kB / 1.626 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002604/7.454, allocations: 128.5 kB / 1.626 GB, free: 11.47 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.02071/7.475, allocations: 6.25 MB / 1.632 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.082e-06/7.475, allocations: 3.484 kB / 1.632 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.5052/7.98, allocations: 4.834 MB / 1.637 GB, free: 119.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * 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 (444): * Single equations (assignments): 434 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1154/8.095, allocations: 51.69 MB / 1.687 GB, free: 111.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.07634/8.172, allocations: 35.14 MB / 1.721 GB, free: 97.55 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/8.172, allocations: 4.438 kB / 1.721 GB, free: 97.55 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.03208/8.204, allocations: 14.98 MB / 1.736 GB, free: 90.64 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01505/8.219, allocations: 1.333 MB / 1.737 GB, free: 90.16 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.53/9.749, allocations: 434.7 MB / 2.162 GB, free: 188.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03303/9.782, allocations: 11.34 MB / 2.173 GB, free: 185.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03165/9.814, allocations: 7.806 MB / 2.181 GB, free: 178.7 MB / 0.698 GB Notification: Performance of SimCode: time 1.723e-06/9.814, allocations: 0 / 2.181 GB, free: 178.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.557/19.37, allocations: 485.6 MB / 2.655 GB, free: 137.3 MB / 0.698 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat