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/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.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.258/2.258, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.562e-05/2.586e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3443, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1909/0.5353, allocations: 104.9 MB / 463 MB, free: 5.801 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5356, allocations: 79.97 kB / 463.1 MB, free: 5.723 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.69/2.226, allocations: 239.9 MB / 0.6865 GB, free: 25.03 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.184e-06/2.226, allocations: 4 kB / 0.6865 GB, free: 25.03 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009533/2.227, allocations: 371.1 kB / 0.6868 GB, free: 25.02 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.06464/2.292, allocations: 15.62 MB / 0.7021 GB, free: 19.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/2.292, allocations: 8.312 kB / 0.7021 GB, free: 19.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06639/2.358, allocations: 8.295 MB / 0.7102 GB, free: 18.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04252/2.401, allocations: 12.4 MB / 0.7223 GB, free: 17.29 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001129/2.402, allocations: 0.6462 MB / 0.723 GB, free: 17.29 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008632/2.411, allocations: 1.157 MB / 0.7241 GB, free: 17.28 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06315/2.474, allocations: 22.93 MB / 0.7465 GB, free: 17.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0968/2.571, allocations: 33.57 MB / 0.7793 GB, free: 12.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001195/2.572, allocations: 149.1 kB / 0.7794 GB, free: 12.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007756/2.58, allocations: 72 kB / 0.7795 GB, free: 12.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005545/2.585, allocations: 2.388 MB / 0.7818 GB, free: 10.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6444/3.23, allocations: 141.4 MB / 0.9199 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/3.245, allocations: 9.903 MB / 0.9296 GB, free: 39.95 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0111/3.256, allocations: 6.605 MB / 0.936 GB, free: 39.9 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003851/3.26, allocations: 2.582 MB / 0.9385 GB, free: 37.89 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.623e-05/3.26, allocations: 79.17 kB / 0.9386 GB, free: 37.85 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=409): time 9.678e-06/3.26, allocations: 0 / 0.9386 GB, free: 37.85 MB / 0.5573 GB Notification: Performance of matching and sorting (n=523): time 1.54/4.8, allocations: 233.5 MB / 1.167 GB, free: 102.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/4.801, allocations: 294.5 kB / 1.167 GB, free: 102.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02432/4.825, allocations: 7.848 MB / 1.175 GB, free: 100.7 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.003858/4.829, allocations: 30.55 kB / 1.175 GB, free: 100.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01203/4.841, allocations: 10.67 MB / 1.185 GB, free: 92.49 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.006462/4.847, allocations: 1.951 MB / 1.187 GB, free: 91.07 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005472/4.853, allocations: 0 / 1.187 GB, free: 91.07 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.003188/4.856, allocations: 1.061 MB / 1.188 GB, free: 90.43 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04837/4.905, allocations: 15.52 MB / 1.203 GB, free: 83.69 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0505/4.955, allocations: 26.2 MB / 1.229 GB, free: 56.8 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04011/4.995, allocations: 19.68 MB / 1.248 GB, free: 40.22 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.4364/5.432, allocations: 133.7 kB / 1.248 GB, free: 96.02 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2273) (initialization): time 0.09472/5.527, allocations: 39.52 MB / 1.287 GB, free: 95.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002768/5.527, allocations: 174.1 kB / 1.287 GB, free: 95.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006006/5.528, allocations: 381.2 kB / 1.287 GB, free: 95.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002751/5.53, allocations: 0.9168 MB / 1.288 GB, free: 95.28 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04097/5.571, allocations: 5.392 MB / 1.293 GB, free: 94.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009209/5.581, allocations: 5.984 MB / 1.299 GB, free: 92.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03038/5.611, allocations: 1.827 MB / 1.301 GB, free: 92.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005414/5.617, allocations: 1.049 MB / 1.302 GB, free: 92.21 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1748 * 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 (2211): * Single equations (assignments): 2201 * 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%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008754/5.625, allocations: 1.011 MB / 1.303 GB, free: 91.58 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05945/5.685, allocations: 27.6 MB / 1.33 GB, free: 87.9 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004401/5.689, allocations: 0.8291 MB / 1.331 GB, free: 87.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07048/5.76, allocations: 30.19 MB / 1.36 GB, free: 74.37 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002495/5.76, allocations: 99.58 kB / 1.36 GB, free: 74.36 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.508e-05/5.76, allocations: 6.188 kB / 1.36 GB, free: 74.36 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001403/5.76, allocations: 27.08 kB / 1.36 GB, free: 74.36 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.142/5.902, allocations: 69.8 MB / 1.428 GB, free: 22.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.639e-05/5.902, allocations: 6.5 kB / 1.429 GB, free: 22.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02474/5.927, allocations: 2.167 MB / 1.431 GB, free: 20.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/5.929, allocations: 320.5 kB / 1.431 GB, free: 20.47 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002591/5.931, allocations: 15.52 kB / 1.431 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006035/5.938, allocations: 4.111 MB / 1.435 GB, free: 16.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/5.938, allocations: 4 kB / 1.435 GB, free: 16.52 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5193/6.457, allocations: 51.31 MB / 1.485 GB, free: 91.23 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0137/6.471, allocations: 3.907 MB / 1.489 GB, free: 91.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005013/6.476, allocations: 4.219 kB / 1.489 GB, free: 91.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02123/6.497, allocations: 1.562 MB / 1.49 GB, free: 91.14 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003858/6.501, allocations: 282.5 kB / 1.491 GB, free: 91.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002448/6.503, allocations: 140.2 kB / 1.491 GB, free: 91.13 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01407/6.518, allocations: 5.207 MB / 1.496 GB, free: 90.88 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.342e-06/6.518, allocations: 0 / 1.496 GB, free: 90.88 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02616/6.544, allocations: 3.881 MB / 1.5 GB, free: 90.88 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (479): * Single equations (assignments): 469 * 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.1026/6.646, allocations: 51.96 MB / 1.55 GB, free: 71.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0664/6.713, allocations: 34.24 MB / 1.584 GB, free: 57.68 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/6.713, allocations: 0.625 kB / 1.584 GB, free: 57.68 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02786/6.741, allocations: 14.86 MB / 1.598 GB, free: 46 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01121/6.752, allocations: 1.154 MB / 1.6 GB, free: 45.09 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1452/6.897, allocations: 49.26 MB / 1.648 GB, free: 2.031 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4336/7.331, allocations: 11.42 MB / 1.659 GB, free: 91.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02934/7.36, allocations: 7.998 MB / 1.667 GB, free: 91.21 MB / 0.5573 GB Notification: Performance of SimCode: time 1.502e-06/7.36, allocations: 1.781 kB / 1.667 GB, free: 91.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.468/16.83, allocations: 482 MB / 2.137 GB, free: 129.1 MB / 0.6042 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