Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.205/2.205, allocations: 234.9 MB / 250.5 MB, free: 10.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004383, allocations: 8 kB / 314.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2783, allocations: 54.87 MB / 369.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03898/0.3173, allocations: 27.76 MB / 396.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01794/0.3353, allocations: 7.336 MB / 404.3 MB, free: 7.66 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004939/0.3403, allocations: 135.7 kB / 404.4 MB, free: 7.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004312/0.3447, allocations: 1.369 MB / 405.8 MB, free: 6.152 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01405/0.3587, allocations: 4.165 MB / 409.9 MB, free: 1.977 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.3612, allocations: 475.2 kB / 410.4 MB, free: 1.512 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01986/0.3811, allocations: 9.291 MB / 419.7 MB, free: 8.211 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005032/0.3862, allocations: 2.652 MB / 422.3 MB, free: 5.512 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.3878, allocations: 0.8175 MB / 423.2 MB, free: 4.691 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00206/0.3899, allocations: 1.149 MB / 424.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004732/0.3904, allocations: 112 kB / 424.4 MB, free: 3.43 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.3927, allocations: 0.9324 MB / 425.3 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001849/0.3946, allocations: 1.262 MB / 426.6 MB, free: 1.23 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000927/0.3955, allocations: 0.6675 MB / 427.3 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0069/0.4024, allocations: 4.548 MB / 431.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.292e-06/0.4025, allocations: 0 / 431.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.852e-06/0.4025, allocations: 0 / 431.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.997e-05/0.4026, allocations: 0 / 431.8 MB, free: 11.99 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.009507/0.4121, allocations: 3.416 MB / 435.2 MB, free: 8.512 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.4122, allocations: 8.031 kB / 435.2 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09392/0.5061, allocations: 8.231 MB / 443.5 MB, free: 264 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006583/0.5127, allocations: 2.447 MB / 445.9 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002312/0.513, allocations: 172.3 kB / 446.1 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008257/0.5139, allocations: 227.8 kB / 446.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01649/0.5304, allocations: 7.882 MB / 454.2 MB, free: 4.852 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001318/0.5305, allocations: 39.58 kB / 454.2 MB, free: 4.812 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004621/0.531, allocations: 111.9 kB / 454.3 MB, free: 4.703 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/0.5344, allocations: 1.609 MB / 456 MB, free: 3.082 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.5508, allocations: 6.653 MB / 462.6 MB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2943/0.8452, allocations: 31.18 MB / 493.8 MB, free: 70.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006054/0.8513, allocations: 2.277 MB / 496.1 MB, free: 69.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004081/0.8517, allocations: 328.3 kB / 496.4 MB, free: 68.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.8518, allocations: 49.31 kB / 496.4 MB, free: 68.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 5.486e-06/0.8518, allocations: 0 / 496.4 MB, free: 68.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.04261/0.8944, allocations: 11.68 MB / 0.4962 GB, free: 63.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.8945, allocations: 199.2 kB / 0.4964 GB, free: 63.26 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/0.9002, allocations: 3.822 MB / 0.5001 GB, free: 59.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002217/0.9004, allocations: 45.7 kB / 0.5002 GB, free: 59.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.9018, allocations: 2.618 MB / 0.5027 GB, free: 56.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004994/0.9024, allocations: 0.5597 MB / 0.5033 GB, free: 56.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.9026, allocations: 111.5 kB / 0.5034 GB, free: 56.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002782/0.9029, allocations: 0.534 MB / 0.5039 GB, free: 55.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/0.9058, allocations: 1.673 MB / 0.5055 GB, free: 53.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004385/0.9102, allocations: 5.094 MB / 0.5105 GB, free: 47.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005168/0.9154, allocations: 2.861 MB / 0.5133 GB, free: 44.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.587e-05/0.9155, allocations: 40.19 kB / 0.5133 GB, free: 44.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01309/0.9287, allocations: 6.622 MB / 0.5198 GB, free: 37.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.868e-05/0.9288, allocations: 60 kB / 0.5199 GB, free: 37.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.9289, allocations: 120 kB / 0.52 GB, free: 37.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.9301, allocations: 424.7 kB / 0.5204 GB, free: 37.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004564/0.9346, allocations: 1.228 MB / 0.5216 GB, free: 35.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004002/0.9387, allocations: 3.136 MB / 0.5247 GB, free: 32.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004665/0.9434, allocations: 299.4 kB / 0.5249 GB, free: 32.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006593/0.9441, allocations: 336.9 kB / 0.5253 GB, free: 31.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (662): * Single equations (assignments): 658 * 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.002913/0.947, allocations: 1.767 MB / 0.527 GB, free: 30.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006053/0.9476, allocations: 312 kB / 0.5273 GB, free: 29.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003741/0.9514, allocations: 1.851 MB / 0.5291 GB, free: 27.99 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/0.9515, allocations: 16 kB / 0.5291 GB, free: 27.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.76e-06/0.9515, allocations: 4 kB / 0.5291 GB, free: 27.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.9515, allocations: 7.969 kB / 0.5291 GB, free: 27.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.9624, allocations: 5.61 MB / 0.5346 GB, free: 22.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/0.9625, allocations: 4 kB / 0.5346 GB, free: 22.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.9638, allocations: 215.7 kB / 0.5348 GB, free: 22.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008303/0.9646, allocations: 228.7 kB / 0.535 GB, free: 21.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/0.9648, allocations: 29.34 kB / 0.5351 GB, free: 21.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/0.968, allocations: 2.578 MB / 0.5376 GB, free: 19.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.477e-06/0.9681, allocations: 4.031 kB / 0.5376 GB, free: 19.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006273/0.9744, allocations: 3.868 MB / 0.5414 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/0.9757, allocations: 0.5477 MB / 0.5419 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004518/0.9762, allocations: 20 kB / 0.5419 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/0.9777, allocations: 69.2 kB / 0.542 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.978, allocations: 84.55 kB / 0.5421 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.9781, allocations: 45.55 kB / 0.5421 GB, free: 14.45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003933/0.982, allocations: 2.412 MB / 0.5445 GB, free: 12.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.225e-06/0.9821, allocations: 0 / 0.5445 GB, free: 12.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004978/0.9871, allocations: 0.8255 MB / 0.5453 GB, free: 11.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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.0004698/0.9876, allocations: 163 kB / 0.5454 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007378/0.995, allocations: 4.059 MB / 0.5494 GB, free: 7.016 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.827e-06/0.995, allocations: 0 / 0.5494 GB, free: 7.016 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002101/0.9971, allocations: 1.144 MB / 0.5505 GB, free: 5.863 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/0.9991, allocations: 344.6 kB / 0.5508 GB, free: 5.523 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/1.015, allocations: 9 MB / 0.5596 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004702/1.02, allocations: 2.819 MB / 0.5624 GB, free: 9.633 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/1.021, allocations: 263.4 kB / 0.5626 GB, free: 9.375 MB / 410.7 MB Notification: Performance of SimCode: time 2.129e-06/1.021, allocations: 0 / 0.5626 GB, free: 9.375 MB / 410.7 MB Notification: Performance of Templates: time 0.1087/1.13, allocations: 61.38 MB / 0.6226 GB, free: 11.93 MB / 474.7 MB