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.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.29/2.29, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.902e-05/3.922e-05, allocations: 3.984 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.417, allocations: 54.85 MB / 364.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1829/0.6, allocations: 98.93 MB / 463.5 MB, free: 13.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.6003, allocations: 73.56 kB / 463.6 MB, free: 13.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3535/0.9538, allocations: 72.97 MB / 0.524 GB, free: 3.902 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.9539, allocations: 0 / 0.524 GB, free: 3.902 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.9541, allocations: 60 kB / 0.5241 GB, free: 3.844 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01317/0.9673, allocations: 3.274 MB / 0.5273 GB, free: 0.5078 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/0.9674, allocations: 8.031 kB / 0.5273 GB, free: 0.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3128/1.28, allocations: 0.6123 MB / 0.5279 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03294/1.313, allocations: 4.242 MB / 0.532 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01694/1.33, allocations: 4.208 MB / 0.5361 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004336/1.331, allocations: 244.2 kB / 0.5364 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002032/1.333, allocations: 328.8 kB / 0.5367 GB, free: 109.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/1.356, allocations: 8.212 MB / 0.5447 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002408/1.356, allocations: 61.02 kB / 0.5448 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001302/1.358, allocations: 163.3 kB / 0.5449 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001889/1.359, allocations: 0.8226 MB / 0.5457 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01789/1.377, allocations: 6.58 MB / 0.5521 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05143/1.429, allocations: 39.76 MB / 0.591 GB, free: 76.15 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007268/1.436, allocations: 2.257 MB / 0.5932 GB, free: 75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002179/1.438, allocations: 1.06 MB / 0.5942 GB, free: 74.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005134/1.439, allocations: 330.7 kB / 0.5945 GB, free: 74.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/1.439, allocations: 45.52 kB / 0.5946 GB, free: 74.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 5.771e-06/1.439, allocations: 0 / 0.5946 GB, free: 74.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.04197/1.481, allocations: 9.405 MB / 0.6037 GB, free: 70.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/1.481, allocations: 196.2 kB / 0.6039 GB, free: 70.22 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006346/1.488, allocations: 3.255 MB / 0.6071 GB, free: 69.01 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003/1.488, allocations: 45.33 kB / 0.6072 GB, free: 68.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001986/1.49, allocations: 2.638 MB / 0.6097 GB, free: 66.86 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007165/1.491, allocations: 0.5615 MB / 0.6103 GB, free: 66.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003845/1.491, allocations: 105.7 kB / 0.6104 GB, free: 66.38 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003121/1.491, allocations: 0.5343 MB / 0.6109 GB, free: 65.97 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00363/1.495, allocations: 1.589 MB / 0.6125 GB, free: 65.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005534/1.501, allocations: 5.005 MB / 0.6173 GB, free: 60.15 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005912/1.507, allocations: 2.832 MB / 0.6201 GB, free: 58.94 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.717e-05/1.507, allocations: 32 kB / 0.6201 GB, free: 58.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01596/1.523, allocations: 6.432 MB / 0.6264 GB, free: 53.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.219e-05/1.523, allocations: 60 kB / 0.6265 GB, free: 53.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/1.523, allocations: 124.2 kB / 0.6266 GB, free: 53.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/1.524, allocations: 349.3 kB / 0.6269 GB, free: 52.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007118/1.531, allocations: 1.239 MB / 0.6281 GB, free: 51.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/1.535, allocations: 2.704 MB / 0.6308 GB, free: 49.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005677/1.541, allocations: 291.8 kB / 0.6311 GB, free: 48.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/1.542, allocations: 338.7 kB / 0.6314 GB, free: 48.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009918/1.543, allocations: 0.5197 MB / 0.6319 GB, free: 47.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007561/1.544, allocations: 308 kB / 0.6322 GB, free: 47.63 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004512/1.548, allocations: 1.688 MB / 0.6338 GB, free: 46.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-05/1.548, allocations: 16 kB / 0.6338 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/1.548, allocations: 8 kB / 0.6338 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/1.549, allocations: 7.312 kB / 0.6339 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01948/1.568, allocations: 5.371 MB / 0.6391 GB, free: 41.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/1.568, allocations: 4.062 kB / 0.6391 GB, free: 41.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002801/1.571, allocations: 210.5 kB / 0.6393 GB, free: 41.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001066/1.572, allocations: 166.7 kB / 0.6395 GB, free: 41.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002866/1.572, allocations: 26.73 kB / 0.6395 GB, free: 41.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004228/1.577, allocations: 2.151 MB / 0.6416 GB, free: 39.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/1.577, allocations: 0 / 0.6416 GB, free: 39.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/1.587, allocations: 3.764 MB / 0.6453 GB, free: 35.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002431/1.59, allocations: 0.5305 MB / 0.6458 GB, free: 35.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009116/1.591, allocations: 24 kB / 0.6458 GB, free: 35.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003139/1.594, allocations: 70.05 kB / 0.6459 GB, free: 35.28 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004339/1.594, allocations: 74.52 kB / 0.6459 GB, free: 35.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002025/1.594, allocations: 36 kB / 0.646 GB, free: 35.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007423/1.602, allocations: 2.271 MB / 0.6482 GB, free: 33.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.232e-06/1.602, allocations: 0 / 0.6482 GB, free: 33.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008481/1.61, allocations: 0.8073 MB / 0.649 GB, free: 32.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01123/1.622, allocations: 4.684 MB / 0.6536 GB, free: 28.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01166/1.633, allocations: 3.91 MB / 0.6574 GB, free: 24.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.634, allocations: 5.312 kB / 0.6574 GB, free: 24.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002376/1.636, allocations: 1.069 MB / 0.6584 GB, free: 23.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/1.639, allocations: 334.1 kB / 0.6587 GB, free: 23.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/1.662, allocations: 7.412 MB / 0.666 GB, free: 16.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005461/1.668, allocations: 2.824 MB / 0.6687 GB, free: 13.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003801/1.672, allocations: 1.538 MB / 0.6702 GB, free: 11.88 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/1.672, allocations: 0 / 0.6702 GB, free: 11.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.335/6.007, allocations: 81.6 MB / 0.7499 GB, free: 106.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat