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.302/2.302, allocations: 235 MB / 248.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.871e-05/2.888e-05, allocations: 0 / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3887, allocations: 54.85 MB / 364.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1832/0.572, allocations: 98.37 MB / 463 MB, free: 13.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5724, allocations: 71.97 kB / 463.1 MB, free: 13.92 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6498/1.222, allocations: 78.95 MB / 0.5293 GB, free: 106.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.222, allocations: 0 / 0.5293 GB, free: 106.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003053/1.223, allocations: 66.59 kB / 0.5294 GB, free: 106.5 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: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01851/1.241, allocations: 3.534 MB / 0.5328 GB, free: 105.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.543e-05/1.241, allocations: 9.281 kB / 0.5328 GB, free: 105.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003816/1.245, allocations: 0.6916 MB / 0.5335 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03728/1.282, allocations: 4.321 MB / 0.5377 GB, free: 105.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01784/1.3, allocations: 4.365 MB / 0.542 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004875/1.301, allocations: 279.6 kB / 0.5423 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/1.303, allocations: 367.1 kB / 0.5426 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02514/1.328, allocations: 9.037 MB / 0.5514 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002727/1.329, allocations: 63.95 kB / 0.5515 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001698/1.33, allocations: 186.5 kB / 0.5517 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002049/1.332, allocations: 0.8929 MB / 0.5525 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01957/1.352, allocations: 7.255 MB / 0.5596 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05637/1.408, allocations: 42.66 MB / 0.6013 GB, free: 69.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007586/1.416, allocations: 2.497 MB / 0.6037 GB, free: 67.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002117/1.418, allocations: 1.062 MB / 0.6048 GB, free: 67.33 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000458/1.419, allocations: 331 kB / 0.6051 GB, free: 67.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/1.419, allocations: 50.56 kB / 0.6051 GB, free: 66.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 5.269e-06/1.419, allocations: 0.75 kB / 0.6051 GB, free: 66.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.02957/1.448, allocations: 7.464 MB / 0.6124 GB, free: 63.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/1.449, allocations: 201.6 kB / 0.6126 GB, free: 63.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007642/1.456, allocations: 3.46 MB / 0.616 GB, free: 62.01 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002855/1.457, allocations: 45.55 kB / 0.616 GB, free: 61.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002364/1.459, allocations: 2.905 MB / 0.6189 GB, free: 59.65 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000773/1.46, allocations: 0.5456 MB / 0.6194 GB, free: 59.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005242/1.46, allocations: 117 kB / 0.6195 GB, free: 59.18 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003418/1.461, allocations: 0.547 MB / 0.62 GB, free: 58.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003677/1.464, allocations: 1.599 MB / 0.6216 GB, free: 58.24 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006195/1.471, allocations: 5.384 MB / 0.6269 GB, free: 51.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006219/1.477, allocations: 2.932 MB / 0.6297 GB, free: 49.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/1.477, allocations: 40 kB / 0.6298 GB, free: 49.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01683/1.494, allocations: 6.723 MB / 0.6363 GB, free: 43.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.809e-05/1.494, allocations: 64.97 kB / 0.6364 GB, free: 43.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/1.494, allocations: 135.9 kB / 0.6365 GB, free: 42.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/1.495, allocations: 371.8 kB / 0.6369 GB, free: 42.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007489/1.503, allocations: 1.33 MB / 0.6382 GB, free: 41.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00413/1.507, allocations: 2.735 MB / 0.6408 GB, free: 38.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005989/1.513, allocations: 300.9 kB / 0.6411 GB, free: 38.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001191/1.514, allocations: 371 kB / 0.6415 GB, free: 38.23 MB / 458.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 () * 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.001144/1.515, allocations: 0.5472 MB / 0.642 GB, free: 37.69 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007883/1.516, allocations: 327.7 kB / 0.6423 GB, free: 37.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004123/1.52, allocations: 1.561 MB / 0.6438 GB, free: 36.04 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.48e-05/1.52, allocations: 19.94 kB / 0.6439 GB, free: 36.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.52, allocations: 4 kB / 0.6439 GB, free: 36.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/1.52, allocations: 3.328 kB / 0.6439 GB, free: 36.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/1.535, allocations: 5.21 MB / 0.649 GB, free: 31.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.535, allocations: 0 / 0.649 GB, free: 31.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/1.537, allocations: 194.6 kB / 0.6491 GB, free: 31.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007875/1.538, allocations: 162.7 kB / 0.6493 GB, free: 31.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002423/1.538, allocations: 27.94 kB / 0.6493 GB, free: 31.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003335/1.541, allocations: 2.148 MB / 0.6514 GB, free: 29.34 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.541, allocations: 4 kB / 0.6514 GB, free: 29.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006556/1.548, allocations: 3.521 MB / 0.6549 GB, free: 26.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/1.55, allocations: 0.5217 MB / 0.6554 GB, free: 25.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005634/1.55, allocations: 23.7 kB / 0.6554 GB, free: 25.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/1.552, allocations: 61.7 kB / 0.6555 GB, free: 25.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002944/1.553, allocations: 68.5 kB / 0.6555 GB, free: 25.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/1.553, allocations: 43 kB / 0.6556 GB, free: 25.42 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005397/1.558, allocations: 2.396 MB / 0.6579 GB, free: 23.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.558, allocations: 0 / 0.6579 GB, free: 23.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006099/1.564, allocations: 0.8433 MB / 0.6587 GB, free: 22.48 MB / 458.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 () * 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.007145/1.572, allocations: 4.607 MB / 0.6632 GB, free: 18.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008484/1.58, allocations: 3.923 MB / 0.6671 GB, free: 14.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/1.58, allocations: 256 / 0.6671 GB, free: 14.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/1.582, allocations: 0.9557 MB / 0.668 GB, free: 13.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/1.585, allocations: 365.9 kB / 0.6683 GB, free: 13.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0227/1.608, allocations: 7.854 MB / 0.676 GB, free: 5.539 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004932/1.613, allocations: 3.031 MB / 0.679 GB, free: 2.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003584/1.616, allocations: 1.679 MB / 0.6806 GB, free: 0.8203 MB / 458.7 MB Notification: Performance of SimCode: time 1.452e-06/1.616, allocations: 0 / 0.6806 GB, free: 0.8203 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.46/6.077, allocations: 86.97 MB / 0.7655 GB, free: 109.5 MB / 490.7 MB 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