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.Distance.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.295/2.295, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.233e-05/2.253e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.344, allocations: 54.86 MB / 358.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.5243, allocations: 98.26 MB / 456.4 MB, free: 12.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.5246, allocations: 75.97 kB / 456.5 MB, free: 12.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5898/1.114, allocations: 71.64 MB / 0.5157 GB, free: 53 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.115, allocations: 0 / 0.5157 GB, free: 53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000184/1.115, allocations: 68 kB / 0.5158 GB, free: 52.93 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01301/1.128, allocations: 3.263 MB / 0.519 GB, free: 49.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/1.128, allocations: 8.031 kB / 0.519 GB, free: 49.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03017/1.158, allocations: 4.243 MB / 0.5231 GB, free: 45.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0151/1.173, allocations: 4.216 MB / 0.5272 GB, free: 41.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/1.173, allocations: 104 kB / 0.5273 GB, free: 40.97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001599/1.175, allocations: 192 kB / 0.5275 GB, free: 40.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01032/1.185, allocations: 4.659 MB / 0.5321 GB, free: 36.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/1.201, allocations: 7.582 MB / 0.5395 GB, free: 27.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001831/1.201, allocations: 55.47 kB / 0.5395 GB, free: 27.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006853/1.202, allocations: 28 kB / 0.5395 GB, free: 27.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001523/1.204, allocations: 0.8173 MB / 0.5403 GB, free: 26.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04956/1.253, allocations: 38.11 MB / 0.5776 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00452/1.258, allocations: 2.326 MB / 0.5798 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002293/1.26, allocations: 1.057 MB / 0.5809 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005866/1.261, allocations: 327.9 kB / 0.5812 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/1.261, allocations: 59.05 kB / 0.5812 GB, free: 15.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=120): time 5.1e-06/1.261, allocations: 0 / 0.5812 GB, free: 15.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.04041/1.301, allocations: 10.49 MB / 0.5915 GB, free: 4.738 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/1.301, allocations: 200.7 kB / 0.5917 GB, free: 4.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006424/1.308, allocations: 2.785 MB / 0.5944 GB, free: 1.711 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003209/1.308, allocations: 25.7 kB / 0.5944 GB, free: 1.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00292/1.311, allocations: 2.728 MB / 0.5971 GB, free: 14.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/1.312, allocations: 0.5786 MB / 0.5976 GB, free: 14.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006265/1.313, allocations: 3.938 kB / 0.5976 GB, free: 14.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004889/1.313, allocations: 0.5464 MB / 0.5982 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0043/1.318, allocations: 1.557 MB / 0.5997 GB, free: 12.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00835/1.326, allocations: 5.102 MB / 0.6047 GB, free: 5.289 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00729/1.333, allocations: 2.826 MB / 0.6074 GB, free: 2.461 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001358/1.334, allocations: 36 kB / 0.6075 GB, free: 2.426 MB / 442.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01856/1.352, allocations: 5.944 MB / 0.6133 GB, free: 12.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/1.352, allocations: 60 kB / 0.6133 GB, free: 12.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/1.353, allocations: 128.9 kB / 0.6135 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/1.354, allocations: 348.7 kB / 0.6138 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0083/1.362, allocations: 1.31 MB / 0.6151 GB, free: 10.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004534/1.367, allocations: 2.601 MB / 0.6176 GB, free: 7.914 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005612/1.372, allocations: 187.4 kB / 0.6178 GB, free: 7.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/1.374, allocations: 352 kB / 0.6181 GB, free: 7.387 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (700): * Single equations (assignments): 696 * 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.001371/1.375, allocations: 424.1 kB / 0.6185 GB, free: 6.965 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005704/1.381, allocations: 2.039 MB / 0.6205 GB, free: 4.914 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008926/1.382, allocations: 288.2 kB / 0.6208 GB, free: 4.629 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00509/1.387, allocations: 1.661 MB / 0.6224 GB, free: 2.953 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.968e-05/1.387, allocations: 16 kB / 0.6224 GB, free: 2.938 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.387, allocations: 4 kB / 0.6224 GB, free: 2.934 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.255e-05/1.387, allocations: 7.969 kB / 0.6224 GB, free: 2.926 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3439/1.731, allocations: 5.129 MB / 0.6275 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/1.731, allocations: 2.469 kB / 0.6275 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/1.733, allocations: 236.1 kB / 0.6277 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008569/1.734, allocations: 152.4 kB / 0.6278 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/1.735, allocations: 11.8 kB / 0.6278 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00339/1.738, allocations: 2.051 MB / 0.6298 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/1.738, allocations: 1.281 kB / 0.6298 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007638/1.746, allocations: 3.762 MB / 0.6335 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/1.748, allocations: 0.5014 MB / 0.634 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006093/1.748, allocations: 3.781 kB / 0.634 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/1.75, allocations: 47.03 kB / 0.6341 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/1.751, allocations: 84.17 kB / 0.6341 GB, free: 111.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/1.751, allocations: 38.8 kB / 0.6342 GB, free: 111.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004498/1.755, allocations: 1.858 MB / 0.636 GB, free: 111 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.61e-07/1.755, allocations: 3.609 kB / 0.636 GB, free: 111 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007075/1.762, allocations: 0.6838 MB / 0.6367 GB, free: 111 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.01024/1.773, allocations: 4.67 MB / 0.6412 GB, free: 109.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01108/1.784, allocations: 3.77 MB / 0.6449 GB, free: 109.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.784, allocations: 0 / 0.6449 GB, free: 109.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002934/1.787, allocations: 1.067 MB / 0.6459 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/1.79, allocations: 274.8 kB / 0.6462 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03003/1.82, allocations: 7.285 MB / 0.6533 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006166/1.826, allocations: 2.828 MB / 0.6561 GB, free: 106.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004948/1.831, allocations: 1.543 MB / 0.6576 GB, free: 105.6 MB / 458.7 MB Notification: Performance of SimCode: time 2.716e-06/1.831, allocations: 0 / 0.6576 GB, free: 105.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.784/5.615, allocations: 79.78 MB / 0.7355 GB, free: 45.28 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat