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.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.467/2.467, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004433, allocations: 8 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.3742, allocations: 54.86 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2033/0.5776, allocations: 98.45 MB / 467.8 MB, free: 8.121 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/0.578, allocations: 79.8 kB / 467.9 MB, free: 8.047 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6195/1.198, allocations: 78.9 MB / 0.534 GB, free: 38.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.198, allocations: 0 / 0.534 GB, free: 38.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000228/1.198, allocations: 68 kB / 0.534 GB, free: 38.06 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01461/1.212, allocations: 3.779 MB / 0.5377 GB, free: 34.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/1.213, allocations: 8.031 kB / 0.5377 GB, free: 34.21 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003162/1.216, allocations: 0.6845 MB / 0.5384 GB, free: 33.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03174/1.248, allocations: 4.324 MB / 0.5426 GB, free: 29.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/1.263, allocations: 4.377 MB / 0.5469 GB, free: 24.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/1.263, allocations: 283.3 kB / 0.5472 GB, free: 24.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00198/1.265, allocations: 375.7 kB / 0.5475 GB, free: 24.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02298/1.288, allocations: 9.104 MB / 0.5564 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002226/1.289, allocations: 67.45 kB / 0.5565 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001492/1.29, allocations: 183.9 kB / 0.5567 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/1.292, allocations: 0.8961 MB / 0.5575 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01963/1.312, allocations: 7.4 MB / 0.5648 GB, free: 5.441 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06724/1.379, allocations: 42.64 MB / 0.6064 GB, free: 9.359 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008861/1.388, allocations: 2.527 MB / 0.6089 GB, free: 6.684 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/1.389, allocations: 343.5 kB / 0.6092 GB, free: 6.293 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/1.389, allocations: 51.02 kB / 0.6092 GB, free: 6.234 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 5.851e-06/1.389, allocations: 0 / 0.6092 GB, free: 6.234 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.0374/1.426, allocations: 8.899 MB / 0.6179 GB, free: 13.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/1.426, allocations: 196.5 kB / 0.6181 GB, free: 12.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008831/1.435, allocations: 3.486 MB / 0.6215 GB, free: 9.461 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003066/1.435, allocations: 53.64 kB / 0.6216 GB, free: 9.402 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003411/1.439, allocations: 2.921 MB / 0.6244 GB, free: 6.441 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009875/1.44, allocations: 0.5287 MB / 0.6249 GB, free: 5.906 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007117/1.441, allocations: 120 kB / 0.6251 GB, free: 5.789 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005146/1.441, allocations: 0.5467 MB / 0.6256 GB, free: 5.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004972/1.446, allocations: 1.639 MB / 0.6272 GB, free: 3.586 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008694/1.455, allocations: 5.422 MB / 0.6325 GB, free: 12.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007627/1.463, allocations: 2.94 MB / 0.6354 GB, free: 9.297 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001237/1.463, allocations: 36 kB / 0.6354 GB, free: 9.262 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02088/1.484, allocations: 6.82 MB / 0.6421 GB, free: 2.434 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/1.484, allocations: 69.52 kB / 0.6421 GB, free: 2.367 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002243/1.484, allocations: 136 kB / 0.6423 GB, free: 2.234 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/1.485, allocations: 360.7 kB / 0.6426 GB, free: 1.879 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007953/1.493, allocations: 1.33 MB / 0.6439 GB, free: 0.5469 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3429/1.836, allocations: 2.773 MB / 0.6466 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0063/1.843, allocations: 295 kB / 0.6469 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/1.844, allocations: 369.8 kB / 0.6472 GB, free: 114.5 MB / 474.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.005946/1.85, allocations: 1.939 MB / 0.6491 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008539/1.851, allocations: 328.1 kB / 0.6494 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005128/1.856, allocations: 1.589 MB / 0.651 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.046e-05/1.856, allocations: 14.06 kB / 0.651 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/1.856, allocations: 3.531 kB / 0.651 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.769e-05/1.856, allocations: 3.797 kB / 0.651 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/1.872, allocations: 5.246 MB / 0.6561 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/1.872, allocations: 7.312 kB / 0.6561 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001835/1.874, allocations: 193.9 kB / 0.6563 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008185/1.875, allocations: 152.8 kB / 0.6565 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002562/1.875, allocations: 26.27 kB / 0.6565 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/1.879, allocations: 2.195 MB / 0.6586 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/1.879, allocations: 5.75 kB / 0.6586 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008076/1.887, allocations: 3.576 MB / 0.6621 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/1.889, allocations: 0.5257 MB / 0.6627 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006806/1.89, allocations: 22.28 kB / 0.6627 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002011/1.892, allocations: 58.89 kB / 0.6627 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/1.892, allocations: 68.98 kB / 0.6628 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/1.892, allocations: 38.94 kB / 0.6628 GB, free: 111.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005963/1.898, allocations: 2.433 MB / 0.6652 GB, free: 111.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.898, allocations: 2.781 kB / 0.6652 GB, free: 111.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006526/1.905, allocations: 0.8417 MB / 0.666 GB, free: 111.5 MB / 474.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.008112/1.913, allocations: 4.653 MB / 0.6706 GB, free: 109.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009407/1.922, allocations: 3.992 MB / 0.6745 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/1.922, allocations: 0 / 0.6745 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002249/1.925, allocations: 0.9744 MB / 0.6754 GB, free: 108.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/1.928, allocations: 363.8 kB / 0.6758 GB, free: 108.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08681/2.015, allocations: 122.7 MB / 0.7956 GB, free: 11.38 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006342/2.021, allocations: 3.027 MB / 0.7986 GB, free: 10.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004348/2.026, allocations: 1.682 MB / 0.8002 GB, free: 8.848 MB / 490.7 MB Notification: Performance of SimCode: time 1.703e-06/2.026, allocations: 0 / 0.8002 GB, free: 8.848 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.731/6.756, allocations: 87.23 MB / 0.8854 GB, free: 133.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat