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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.884/1.884, allocations: 209.4 MB / 217.3 MB, free: 4.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.391e-05/1.409e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2652, allocations: 48.69 MB / 320 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4008, allocations: 90.87 MB / 410.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4011, allocations: 75.95 kB / 411 MB, free: 5.391 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4992/0.9003, allocations: 77.37 MB / 488.3 MB, free: 83.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.93e-06/0.9004, allocations: 4 kB / 488.3 MB, free: 83.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001458/0.9005, allocations: 68 kB / 488.4 MB, free: 83.38 MB / 378.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.009162/0.9097, allocations: 3.531 MB / 491.9 MB, free: 79.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.9098, allocations: 8.031 kB / 491.9 MB, free: 79.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02169/0.9315, allocations: 4.321 MB / 496.2 MB, free: 75.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/0.9436, allocations: 4.359 MB / 0.4889 GB, free: 71.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.9438, allocations: 123.9 kB / 0.489 GB, free: 70.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.9449, allocations: 212 kB / 0.4892 GB, free: 70.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009965/0.9549, allocations: 5.219 MB / 0.4943 GB, free: 65.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/0.9693, allocations: 8.323 MB / 0.5024 GB, free: 56.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/0.9695, allocations: 63.41 kB / 0.5025 GB, free: 56.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005782/0.9701, allocations: 31.98 kB / 0.5025 GB, free: 56.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001361/0.9714, allocations: 0.8884 MB / 0.5034 GB, free: 55.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04032/1.012, allocations: 40.78 MB / 0.5432 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003062/1.015, allocations: 2.417 MB / 0.5456 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/1.016, allocations: 1.057 MB / 0.5466 GB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003463/1.017, allocations: 329.8 kB / 0.5469 GB, free: 9.336 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/1.017, allocations: 63.05 kB / 0.547 GB, free: 9.266 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 5.101e-06/1.017, allocations: 0 / 0.547 GB, free: 9.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.02097/1.038, allocations: 9.584 MB / 0.5563 GB, free: 15.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/1.038, allocations: 200.6 kB / 0.5565 GB, free: 15.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005899/1.044, allocations: 3.006 MB / 0.5595 GB, free: 12.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002127/1.044, allocations: 25.7 kB / 0.5595 GB, free: 12.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002778/1.047, allocations: 3.025 MB / 0.5624 GB, free: 9.254 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007476/1.048, allocations: 0.5479 MB / 0.563 GB, free: 8.699 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003227/1.048, allocations: 0 / 0.563 GB, free: 8.699 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005347/1.049, allocations: 0.5708 MB / 0.5635 GB, free: 8.117 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00335/1.052, allocations: 1.554 MB / 0.565 GB, free: 6.559 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006997/1.059, allocations: 5.517 MB / 0.5704 GB, free: 15.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00606/1.065, allocations: 2.94 MB / 0.5733 GB, free: 12.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/1.065, allocations: 40 kB / 0.5733 GB, free: 12.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01569/1.081, allocations: 6.211 MB / 0.5794 GB, free: 5.828 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.081, allocations: 68 kB / 0.5795 GB, free: 5.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002069/1.081, allocations: 140.3 kB / 0.5796 GB, free: 5.625 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/1.082, allocations: 368.7 kB / 0.58 GB, free: 5.262 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005616/1.088, allocations: 1.4 MB / 0.5813 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/1.092, allocations: 2.644 MB / 0.5839 GB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005361/1.098, allocations: 187.6 kB / 0.5841 GB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.099, allocations: 388 kB / 0.5845 GB, free: 0.5391 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * 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 (755): * Single equations (assignments): 751 * 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.001021/1.1, allocations: 448.5 kB / 0.5849 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007007/1.101, allocations: 300.1 kB / 0.5852 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003634/1.104, allocations: 1.549 MB / 0.5867 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.491e-05/1.104, allocations: 19.95 kB / 0.5867 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.104, allocations: 4 kB / 0.5867 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.07e-05/1.104, allocations: 3.984 kB / 0.5867 GB, free: 14.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/1.117, allocations: 4.716 MB / 0.5913 GB, free: 9.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/1.117, allocations: 4 kB / 0.5913 GB, free: 9.406 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/1.118, allocations: 211.7 kB / 0.5915 GB, free: 9.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006656/1.119, allocations: 156.8 kB / 0.5917 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/1.119, allocations: 8 kB / 0.5917 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/1.122, allocations: 2.049 MB / 0.5937 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.789e-06/1.122, allocations: 0 / 0.5937 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006415/1.128, allocations: 3.511 MB / 0.5971 GB, free: 3.273 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/1.13, allocations: 0.497 MB / 0.5976 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004174/1.13, allocations: 4 kB / 0.5976 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/1.132, allocations: 35.94 kB / 0.5976 GB, free: 2.715 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/1.132, allocations: 84.62 kB / 0.5977 GB, free: 2.629 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.132, allocations: 36 kB / 0.5977 GB, free: 2.594 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004294/1.137, allocations: 1.992 MB / 0.5997 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.151e-06/1.137, allocations: 0 / 0.5997 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.2754/1.412, allocations: 0.7223 MB / 0.6004 GB, free: 116.1 MB / 426.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 (109): * Single equations (assignments): 105 * 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.000739/1.413, allocations: 129.7 kB / 0.6005 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01265/1.426, allocations: 3.774 MB / 0.6042 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.761e-06/1.426, allocations: 3.719 kB / 0.6042 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002736/1.428, allocations: 0.9536 MB / 0.6051 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/1.432, allocations: 292.6 kB / 0.6054 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/1.453, allocations: 6.611 MB / 0.6119 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006786/1.46, allocations: 3.031 MB / 0.6148 GB, free: 113.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/1.462, allocations: 262.7 kB / 0.6151 GB, free: 113.6 MB / 426.7 MB Notification: Performance of SimCode: time 4.089e-06/1.462, allocations: 0 / 0.6151 GB, free: 113.6 MB / 426.7 MB Notification: Performance of Templates: time 0.1201/1.582, allocations: 62.56 MB / 0.6762 GB, free: 76.14 MB / 426.7 MB