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.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.2 MB / 224.8 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006029/0.000603, allocations: 11.94 kB / 282.7 MB, free: 9.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1046, allocations: 48.71 MB / 331.4 MB, free: 8.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4234/0.5281, allocations: 91.64 MB / 423 MB, free: 9.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.5284, allocations: 79.95 kB / 423.1 MB, free: 9.344 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7423/1.271, allocations: 78.83 MB / 0.4901 GB, free: 89.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.916e-06/1.271, allocations: 0 / 0.4901 GB, free: 89.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000265/1.271, allocations: 66.47 kB / 0.4902 GB, free: 89.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01987/1.291, allocations: 3.77 MB / 0.4939 GB, free: 87.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.127e-05/1.291, allocations: 8.688 kB / 0.4939 GB, free: 87.59 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004655/1.296, allocations: 0.6916 MB / 0.4946 GB, free: 87.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04861/1.344, allocations: 4.325 MB / 0.4988 GB, free: 87.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02558/1.37, allocations: 4.381 MB / 0.5031 GB, free: 86.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000797/1.371, allocations: 282.2 kB / 0.5033 GB, free: 86.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003062/1.374, allocations: 374.9 kB / 0.5037 GB, free: 86.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03596/1.41, allocations: 9.107 MB / 0.5126 GB, free: 84.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002493/1.41, allocations: 52.09 kB / 0.5126 GB, free: 84.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001763/1.412, allocations: 184.3 kB / 0.5128 GB, free: 84.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001993/1.414, allocations: 0.8972 MB / 0.5137 GB, free: 84.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02765/1.442, allocations: 7.394 MB / 0.5209 GB, free: 83.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09393/1.536, allocations: 42.65 MB / 0.5626 GB, free: 50.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/1.548, allocations: 2.53 MB / 0.565 GB, free: 49.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000655/1.548, allocations: 333.8 kB / 0.5654 GB, free: 48.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.573e-05/1.548, allocations: 46.84 kB / 0.5654 GB, free: 48.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 8.847e-06/1.549, allocations: 0 / 0.5654 GB, free: 48.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.05173/1.6, allocations: 8.893 MB / 0.5741 GB, free: 44.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/1.6, allocations: 195.5 kB / 0.5743 GB, free: 44.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008048/1.608, allocations: 3.5 MB / 0.5777 GB, free: 42.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002941/1.609, allocations: 41.2 kB / 0.5777 GB, free: 42.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00244/1.611, allocations: 2.914 MB / 0.5806 GB, free: 40.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008246/1.612, allocations: 0.5361 MB / 0.5811 GB, free: 40.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000658/1.613, allocations: 114.9 kB / 0.5812 GB, free: 40.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003921/1.613, allocations: 0.5532 MB / 0.5817 GB, free: 39.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004237/1.617, allocations: 1.637 MB / 0.5833 GB, free: 39.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006638/1.624, allocations: 5.432 MB / 0.5886 GB, free: 32.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006398/1.631, allocations: 2.925 MB / 0.5915 GB, free: 29.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/1.631, allocations: 43.94 kB / 0.5915 GB, free: 29.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01702/1.648, allocations: 6.82 MB / 0.5982 GB, free: 23.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.648, allocations: 66.81 kB / 0.5983 GB, free: 23.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/1.648, allocations: 136 kB / 0.5984 GB, free: 23.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/1.649, allocations: 375.5 kB / 0.5988 GB, free: 23.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007357/1.657, allocations: 1.332 MB / 0.6001 GB, free: 21.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004237/1.661, allocations: 2.775 MB / 0.6028 GB, free: 19.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005825/1.667, allocations: 296.8 kB / 0.6031 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.668, allocations: 374.6 kB / 0.6034 GB, free: 18.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[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],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (715): * Single equations (assignments): 711 * 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.004721/1.673, allocations: 1.927 MB / 0.6053 GB, free: 16.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007859/1.673, allocations: 323.8 kB / 0.6056 GB, free: 16.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004468/1.678, allocations: 1.592 MB / 0.6072 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.311e-05/1.678, allocations: 16 kB / 0.6072 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/1.678, allocations: 7.938 kB / 0.6072 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.518e-05/1.678, allocations: 11.36 kB / 0.6072 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/1.694, allocations: 5.223 MB / 0.6123 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/1.694, allocations: 4 kB / 0.6123 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.696, allocations: 189.7 kB / 0.6125 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007877/1.696, allocations: 164 kB / 0.6126 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/1.697, allocations: 27.38 kB / 0.6127 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003226/1.7, allocations: 2.195 MB / 0.6148 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.7, allocations: 4 kB / 0.6148 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007384/1.707, allocations: 3.574 MB / 0.6183 GB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/1.709, allocations: 0.5239 MB / 0.6188 GB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008289/1.71, allocations: 27.98 kB / 0.6188 GB, free: 4.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/1.712, allocations: 51.47 kB / 0.6189 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/1.713, allocations: 76.39 kB / 0.619 GB, free: 4.043 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/1.713, allocations: 40.06 kB / 0.619 GB, free: 4.004 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005849/1.719, allocations: 2.433 MB / 0.6214 GB, free: 1.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.719, allocations: 0 / 0.6214 GB, free: 1.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006357/1.725, allocations: 0.8476 MB / 0.6222 GB, free: 0.7422 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.01011/1.735, allocations: 4.643 MB / 0.6267 GB, free: 12.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01085/1.746, allocations: 3.987 MB / 0.6306 GB, free: 8.059 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.689e-06/1.746, allocations: 4.062 kB / 0.6306 GB, free: 8.055 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002608/1.749, allocations: 0.97 MB / 0.6316 GB, free: 7.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003167/1.752, allocations: 369.6 kB / 0.6319 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4375/2.189, allocations: 122.7 MB / 0.7518 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007412/2.197, allocations: 3.028 MB / 0.7547 GB, free: 14.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004333/2.201, allocations: 1.675 MB / 0.7564 GB, free: 14.11 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/2.201, allocations: 0.75 kB / 0.7564 GB, free: 14.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.608/6.81, allocations: 87.2 MB / 0.8415 GB, free: 119.9 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat