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.268/2.268, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.925e-05, allocations: 0 / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3937, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1894/0.5832, allocations: 105.6 MB / 470.2 MB, free: 6.867 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.5835, allocations: 75.95 kB / 470.3 MB, free: 6.793 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/1.783, allocations: 248.6 MB / 0.702 GB, free: 5.023 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.783, allocations: 0 / 0.702 GB, free: 5.023 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000988/1.784, allocations: 375.9 kB / 0.7023 GB, free: 4.656 MB / 474.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.9851/2.769, allocations: 15.61 MB / 0.7176 GB, free: 30.48 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/2.769, allocations: 12.81 kB / 0.7176 GB, free: 30.48 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01496/2.784, allocations: 3.064 MB / 0.7206 GB, free: 30.3 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06116/2.845, allocations: 8.293 MB / 0.7287 GB, free: 29.26 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04525/2.89, allocations: 12.41 MB / 0.7408 GB, free: 27.9 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001907/2.892, allocations: 1.498 MB / 0.7422 GB, free: 27.86 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009272/2.902, allocations: 1.972 MB / 0.7442 GB, free: 27.84 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1522/3.054, allocations: 42.29 MB / 0.7855 GB, free: 21.27 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001819/3.056, allocations: 147.5 kB / 0.7856 GB, free: 21.26 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01003/3.066, allocations: 0.8868 MB / 0.7865 GB, free: 20.85 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006677/3.073, allocations: 2.382 MB / 0.7888 GB, free: 20.45 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1167/3.189, allocations: 33.57 MB / 0.8216 GB, free: 9.629 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7402/3.93, allocations: 146.7 MB / 0.9648 GB, free: 28.22 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1078/4.038, allocations: 22.43 MB / 0.9867 GB, free: 25.83 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01256/4.05, allocations: 6.727 MB / 0.9933 GB, free: 25.79 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06409/4.114, allocations: 27.34 MB / 1.02 GB, free: 21 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.747e-05/4.115, allocations: 79.83 kB / 1.02 GB, free: 20.96 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=372): time 9.037e-06/4.115, allocations: 0 / 1.02 GB, free: 20.96 MB / 0.5418 GB Notification: Performance of matching and sorting (n=486): time 1.971/6.085, allocations: 280.7 MB / 1.294 GB, free: 81.59 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/6.086, allocations: 278.6 kB / 1.294 GB, free: 81.26 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02208/6.108, allocations: 8.946 MB / 1.303 GB, free: 72.32 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002759/6.111, allocations: 108.3 kB / 1.303 GB, free: 72.21 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007917/6.118, allocations: 10.59 MB / 1.314 GB, free: 61.63 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004884/6.123, allocations: 1.893 MB / 1.315 GB, free: 59.75 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00457/6.128, allocations: 337.5 kB / 1.316 GB, free: 59.42 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001482/6.13, allocations: 1.035 MB / 1.317 GB, free: 58.38 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4779/6.608, allocations: 15.7 MB / 1.332 GB, free: 128.8 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06134/6.669, allocations: 26.27 MB / 1.358 GB, free: 115.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05811/6.727, allocations: 19.82 MB / 1.377 GB, free: 114.7 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005592/6.728, allocations: 107.5 kB / 1.377 GB, free: 114.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1017/6.829, allocations: 41.4 MB / 1.418 GB, free: 98.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003921/6.83, allocations: 165.2 kB / 1.418 GB, free: 98.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007628/6.831, allocations: 379.8 kB / 1.418 GB, free: 98.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/6.834, allocations: 0.8738 MB / 1.419 GB, free: 98.71 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04052/6.874, allocations: 5.283 MB / 1.424 GB, free: 98.22 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008741/6.883, allocations: 5.673 MB / 1.43 GB, free: 94.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03051/6.914, allocations: 2.152 MB / 1.432 GB, free: 94.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005388/6.919, allocations: 1.024 MB / 1.433 GB, free: 94.06 MB / 0.573 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 () * 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.009475/6.929, allocations: 1.391 MB / 1.434 GB, free: 92.98 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004301/6.933, allocations: 0.8703 MB / 1.435 GB, free: 92.98 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07231/7.005, allocations: 29.98 MB / 1.464 GB, free: 78.67 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002016/7.006, allocations: 91.16 kB / 1.464 GB, free: 78.59 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-05/7.006, allocations: 7.703 kB / 1.464 GB, free: 78.58 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001308/7.006, allocations: 24.64 kB / 1.464 GB, free: 78.58 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6256/7.631, allocations: 74.28 MB / 1.537 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.946e-05/7.632, allocations: 1.125 kB / 1.537 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02459/7.656, allocations: 2.115 MB / 1.539 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001797/7.658, allocations: 323.4 kB / 1.539 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002639/7.661, allocations: 83.89 kB / 1.539 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006715/7.667, allocations: 4.292 MB / 1.544 GB, free: 111 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/7.667, allocations: 3.938 kB / 1.544 GB, free: 111 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.106/7.773, allocations: 50.36 MB / 1.593 GB, free: 103.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01437/7.788, allocations: 3.957 MB / 1.597 GB, free: 101.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004714/7.793, allocations: 73.89 kB / 1.597 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02038/7.813, allocations: 1.635 MB / 1.598 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003569/7.817, allocations: 255.5 kB / 1.599 GB, free: 101.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001522/7.818, allocations: 123.6 kB / 1.599 GB, free: 101.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0161/7.834, allocations: 6.167 MB / 1.605 GB, free: 99.19 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.172e-06/7.834, allocations: 6.219 kB / 1.605 GB, free: 99.19 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0249/7.859, allocations: 4.274 MB / 1.609 GB, free: 98.87 MB / 0.573 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 () * 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.111/7.97, allocations: 51.27 MB / 1.659 GB, free: 76 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.07296/8.044, allocations: 34.77 MB / 1.693 GB, free: 45.78 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/8.044, allocations: 4.625 kB / 1.693 GB, free: 45.77 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.03037/8.074, allocations: 14.83 MB / 1.707 GB, free: 32.15 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01193/8.086, allocations: 1.335 MB / 1.709 GB, free: 31.09 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.58/8.666, allocations: 50.23 MB / 1.758 GB, free: 119.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04106/8.707, allocations: 11.35 MB / 1.769 GB, free: 118.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0388/8.746, allocations: 7.802 MB / 1.777 GB, free: 118.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.163e-06/8.746, allocations: 0 / 1.777 GB, free: 118.6 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.392/18.14, allocations: 487.5 MB / 2.253 GB, free: 103.4 MB / 0.5887 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