Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 1.971/1.971, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.0004711, allocations: 11.98 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2872, allocations: 48.7 MB / 331.2 MB, free: 6.465 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.04494/0.3322, allocations: 33.96 MB / 365.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02344/0.3557, allocations: 8.523 MB / 373.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007788/0.3635, allocations: 159.6 kB / 373.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005693/0.3692, allocations: 1.703 MB / 375.5 MB, free: 2.082 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01804/0.3873, allocations: 5.03 MB / 380.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002755/0.3901, allocations: 0.5108 MB / 381.1 MB, free: 12.53 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02053/0.4107, allocations: 9.399 MB / 390.5 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005899/0.4166, allocations: 3.02 MB / 393.5 MB, free: 44 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002013/0.4187, allocations: 0.8876 MB / 394.4 MB, free: 15.15 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002474/0.4212, allocations: 1.25 MB / 395.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006672/0.4219, allocations: 128 kB / 395.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002528/0.4244, allocations: 0.9518 MB / 396.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002259/0.4267, allocations: 1.399 MB / 398.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.428, allocations: 0.7298 MB / 398.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00783/0.4359, allocations: 5.039 MB / 403.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.334e-06/0.4359, allocations: 0 / 403.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.809e-06/0.436, allocations: 0 / 403.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001279/0.4361, allocations: 0 / 403.9 MB, free: 5.629 MB / 330.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.01054/0.4467, allocations: 3.692 MB / 407.6 MB, free: 1.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.4467, allocations: 11.97 kB / 407.6 MB, free: 1.859 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09628/0.543, allocations: 8.312 MB / 415.9 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007047/0.5501, allocations: 2.561 MB / 418.5 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002665/0.5504, allocations: 200.9 kB / 418.7 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.5514, allocations: 259.8 kB / 418.9 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01912/0.5706, allocations: 8.736 MB / 427.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.5708, allocations: 51.53 kB / 427.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000596/0.5714, allocations: 119.9 kB / 427.8 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003772/0.5752, allocations: 1.778 MB / 429.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/0.5939, allocations: 7.351 MB / 436.9 MB, free: 3.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05516/0.6491, allocations: 33.95 MB / 470.9 MB, free: 0.7812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007222/0.6563, allocations: 2.535 MB / 473.4 MB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005241/0.6569, allocations: 323.8 kB / 473.7 MB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/0.657, allocations: 51.05 kB / 473.8 MB, free: 13.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.715e-06/0.657, allocations: 0 / 473.8 MB, free: 13.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.03235/0.6893, allocations: 9.175 MB / 483 MB, free: 4.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.6895, allocations: 204.5 kB / 483.2 MB, free: 4.094 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008711/0.6983, allocations: 4.05 MB / 487.2 MB, free: 60 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002364/0.6985, allocations: 41.7 kB / 487.3 MB, free: 12 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2289/0.9274, allocations: 2.893 MB / 490.1 MB, free: 130.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006906/0.9281, allocations: 0.5413 MB / 490.7 MB, free: 130.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.9285, allocations: 112.4 kB / 490.8 MB, free: 130.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003925/0.9289, allocations: 0.5552 MB / 491.4 MB, free: 129.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003798/0.9328, allocations: 1.674 MB / 493 MB, free: 129.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005619/0.9384, allocations: 5.466 MB / 498.5 MB, free: 123.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005779/0.9442, allocations: 2.964 MB / 0.4897 GB, free: 122.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001747/0.9444, allocations: 42.78 kB / 0.4897 GB, free: 122.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.01617/0.9606, allocations: 6.912 MB / 0.4965 GB, free: 120 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.9608, allocations: 62.88 kB / 0.4966 GB, free: 120 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/0.961, allocations: 133.7 kB / 0.4967 GB, free: 120 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.9622, allocations: 437 kB / 0.4971 GB, free: 119.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005226/0.9674, allocations: 1.318 MB / 0.4984 GB, free: 119.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004305/0.9718, allocations: 3.17 MB / 0.5015 GB, free: 117.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005256/0.9771, allocations: 308.1 kB / 0.5018 GB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008893/0.978, allocations: 364.5 kB / 0.5021 GB, free: 117.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * 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 (713): * Single equations (assignments): 709 * 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.003776/0.9818, allocations: 1.937 MB / 0.504 GB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006252/0.9824, allocations: 327.7 kB / 0.5043 GB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.9861, allocations: 1.692 MB / 0.506 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.47e-05/0.9862, allocations: 18.39 kB / 0.506 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.9863, allocations: 6.281 kB / 0.506 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.122e-05/0.9863, allocations: 4.734 kB / 0.506 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/0.9981, allocations: 5.439 MB / 0.5113 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/0.9981, allocations: 3.953 kB / 0.5113 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.9993, allocations: 191.7 kB / 0.5115 GB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008257/1, allocations: 221.9 kB / 0.5117 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/1, allocations: 28 kB / 0.5117 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/1.003, allocations: 2.563 MB / 0.5142 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.955e-06/1.003, allocations: 4 kB / 0.5143 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005948/1.009, allocations: 3.523 MB / 0.5177 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001375/1.011, allocations: 0.5435 MB / 0.5182 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005638/1.011, allocations: 22.2 kB / 0.5182 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/1.013, allocations: 59.92 kB / 0.5183 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/1.013, allocations: 76.53 kB / 0.5184 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/1.014, allocations: 32 kB / 0.5184 GB, free: 103.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004854/1.018, allocations: 2.546 MB / 0.5209 GB, free: 100.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.455e-06/1.018, allocations: 0 / 0.5209 GB, free: 100.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005692/1.024, allocations: 0.8651 MB / 0.5217 GB, free: 99.98 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.0005457/1.025, allocations: 168.5 kB / 0.5219 GB, free: 99.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007724/1.032, allocations: 4.046 MB / 0.5258 GB, free: 95.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.436e-06/1.032, allocations: 3.938 kB / 0.5259 GB, free: 95.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001796/1.034, allocations: 1.009 MB / 0.5268 GB, free: 94.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/1.037, allocations: 373.3 kB / 0.5272 GB, free: 94.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.053, allocations: 9.579 MB / 0.5365 GB, free: 84.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004923/1.058, allocations: 3.022 MB / 0.5395 GB, free: 81.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009952/1.059, allocations: 275.4 kB / 0.5398 GB, free: 81.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.749e-06/1.059, allocations: 0 / 0.5398 GB, free: 81.44 MB / 410.7 MB Notification: Performance of Templates: time 0.08971/1.149, allocations: 64.97 MB / 0.6032 GB, free: 16.42 MB / 410.7 MB