Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.909/1.909, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000435/0.0004352, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3504, allocations: 48.69 MB / 331.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1754/0.5259, allocations: 98.8 MB / 430.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.5262, allocations: 75.97 kB / 430.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.501/2.028, allocations: 248.1 MB / 0.6624 GB, free: 33.63 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.755e-06/2.028, allocations: 3.125 kB / 0.6624 GB, free: 33.63 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008199/2.028, allocations: 370.3 kB / 0.6628 GB, free: 33.62 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.06284/2.091, allocations: 16.15 MB / 0.6785 GB, free: 28.22 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/2.091, allocations: 11.14 kB / 0.6785 GB, free: 28.22 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01378/2.105, allocations: 3.068 MB / 0.6815 GB, free: 28.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05824/2.163, allocations: 8.282 MB / 0.6896 GB, free: 27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04099/2.204, allocations: 12.44 MB / 0.7018 GB, free: 25.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00175/2.206, allocations: 1.496 MB / 0.7032 GB, free: 25.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009171/2.215, allocations: 1.966 MB / 0.7052 GB, free: 25.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.145/2.36, allocations: 42.65 MB / 0.7468 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00147/2.362, allocations: 151.3 kB / 0.7469 GB, free: 13.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01016/2.372, allocations: 0.8829 MB / 0.7478 GB, free: 13.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006271/2.379, allocations: 2.392 MB / 0.7501 GB, free: 12.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.207/2.586, allocations: 35.37 MB / 0.7847 GB, free: 7.32 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6502/3.236, allocations: 146.7 MB / 0.928 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.11/3.346, allocations: 22.52 MB / 0.95 GB, free: 5.258 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06649/3.412, allocations: 27.35 MB / 0.9767 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000108/3.413, allocations: 72.14 kB / 0.9768 GB, free: 7.762 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=372): time 8.125e-06/3.413, allocations: 1.812 kB / 0.9768 GB, free: 7.762 MB / 0.5105 GB Notification: Performance of matching and sorting (n=486): time 2.593/6.006, allocations: 300.6 MB / 1.27 GB, free: 89.54 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/6.006, allocations: 287 kB / 1.271 GB, free: 89.25 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02351/6.03, allocations: 9.033 MB / 1.279 GB, free: 86.04 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002679/6.032, allocations: 108.1 kB / 1.279 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008579/6.041, allocations: 10.58 MB / 1.29 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004944/6.046, allocations: 1.891 MB / 1.292 GB, free: 76.47 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004211/6.05, allocations: 343.3 kB / 1.292 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001527/6.052, allocations: 1.033 MB / 1.293 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03452/6.086, allocations: 15.92 MB / 1.309 GB, free: 68.89 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0418/6.128, allocations: 26.49 MB / 1.334 GB, free: 45.37 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4454/6.574, allocations: 20.13 MB / 1.354 GB, free: 88.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004655/6.574, allocations: 107.2 kB / 1.354 GB, free: 88.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.104/6.678, allocations: 41.85 MB / 1.395 GB, free: 87.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002676/6.678, allocations: 167.9 kB / 1.395 GB, free: 87.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006525/6.679, allocations: 376.9 kB / 1.396 GB, free: 87.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/6.682, allocations: 0.8688 MB / 1.396 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03904/6.721, allocations: 5.289 MB / 1.402 GB, free: 86.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008941/6.73, allocations: 5.755 MB / 1.407 GB, free: 84.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03038/6.76, allocations: 2.154 MB / 1.409 GB, free: 84.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005585/6.766, allocations: 1.022 MB / 1.41 GB, free: 84.1 MB / 0.5105 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.02513/6.791, allocations: 7.833 MB / 1.418 GB, free: 81.69 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004291/6.795, allocations: 0.8857 MB / 1.419 GB, free: 81.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07271/6.868, allocations: 30.25 MB / 1.448 GB, free: 67.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001951/6.868, allocations: 94.17 kB / 1.448 GB, free: 67.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/6.868, allocations: 6.844 kB / 1.448 GB, free: 67.69 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001473/6.869, allocations: 24.78 kB / 1.448 GB, free: 67.69 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1699/7.038, allocations: 72.44 MB / 1.519 GB, free: 17.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.254e-05/7.039, allocations: 3.688 kB / 1.519 GB, free: 17.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0257/7.064, allocations: 2.11 MB / 1.521 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/7.067, allocations: 318.8 kB / 1.522 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00433/7.071, allocations: 84.41 kB / 1.522 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007896/7.079, allocations: 4.402 MB / 1.526 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/7.079, allocations: 0 / 1.526 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.52/7.599, allocations: 51.47 MB / 1.576 GB, free: 87.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01304/7.613, allocations: 3.951 MB / 1.58 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005526/7.618, allocations: 78.59 kB / 1.58 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02092/7.639, allocations: 1.632 MB / 1.582 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003952/7.643, allocations: 256.7 kB / 1.582 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002497/7.646, allocations: 126.9 kB / 1.582 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01751/7.663, allocations: 6.245 MB / 1.588 GB, free: 86.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.705e-06/7.663, allocations: 0 / 1.588 GB, free: 86.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02924/7.692, allocations: 4.28 MB / 1.592 GB, free: 85.95 MB / 0.5105 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.1567/7.849, allocations: 51.7 MB / 1.643 GB, free: 62.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.07354/7.923, allocations: 35.14 MB / 1.677 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/7.923, allocations: 0.625 kB / 1.677 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03021/7.953, allocations: 14.98 MB / 1.692 GB, free: 28.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/7.965, allocations: 1.338 MB / 1.693 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.265/9.23, allocations: 434.6 MB / 2.118 GB, free: 47.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4782/9.708, allocations: 11.39 MB / 2.129 GB, free: 192.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03186/9.74, allocations: 7.804 MB / 2.136 GB, free: 192.3 MB / 0.6198 GB Notification: Performance of SimCode: time 1.503e-06/9.74, allocations: 0 / 2.136 GB, free: 192.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.739/19.48, allocations: 485.5 MB / 2.61 GB, free: 174.9 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat