Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.898/1.898, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005135/0.0005134, allocations: 15.94 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3525, allocations: 48.69 MB / 331.4 MB, free: 6.398 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1663/0.5189, allocations: 92.2 MB / 423.6 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.5192, allocations: 75.97 kB / 423.6 MB, free: 2.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6047/1.124, allocations: 72.89 MB / 496.5 MB, free: 92.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.124, allocations: 0 / 496.5 MB, free: 92.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000164/1.124, allocations: 59.91 kB / 496.6 MB, free: 92.25 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.01485/1.139, allocations: 3.507 MB / 0.4884 GB, free: 90.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.924e-05/1.139, allocations: 10.41 kB / 0.4884 GB, free: 90.62 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003141/1.142, allocations: 0.6156 MB / 0.489 GB, free: 90.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04228/1.185, allocations: 4.247 MB / 0.4931 GB, free: 90.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01994/1.205, allocations: 4.227 MB / 0.4973 GB, free: 89.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002809/1.205, allocations: 244.8 kB / 0.4975 GB, free: 89.76 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001734/1.207, allocations: 329.8 kB / 0.4978 GB, free: 89.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/1.227, allocations: 8.278 MB / 0.5059 GB, free: 84.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001938/1.227, allocations: 64.8 kB / 0.5059 GB, free: 84.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009761/1.228, allocations: 163.6 kB / 0.5061 GB, free: 84.83 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001513/1.23, allocations: 0.8118 MB / 0.5069 GB, free: 84.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/1.247, allocations: 6.694 MB / 0.5134 GB, free: 80.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05124/1.299, allocations: 39.78 MB / 0.5523 GB, free: 39.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007406/1.306, allocations: 2.268 MB / 0.5545 GB, free: 37.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004743/1.307, allocations: 327 kB / 0.5548 GB, free: 37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/1.307, allocations: 51.05 kB / 0.5549 GB, free: 36.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 5.46e-06/1.307, allocations: 0 / 0.5549 GB, free: 36.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.06044/1.367, allocations: 11.38 MB / 0.566 GB, free: 25.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.972e-05/1.367, allocations: 200.5 kB / 0.5662 GB, free: 25.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009687/1.377, allocations: 3.288 MB / 0.5694 GB, free: 21.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003092/1.377, allocations: 45.7 kB / 0.5694 GB, free: 21.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/1.38, allocations: 2.629 MB / 0.572 GB, free: 19.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007613/1.38, allocations: 0.5533 MB / 0.5725 GB, free: 18.63 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004584/1.381, allocations: 114.7 kB / 0.5726 GB, free: 18.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000311/1.381, allocations: 0.534 MB / 0.5732 GB, free: 17.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003882/1.385, allocations: 1.634 MB / 0.5748 GB, free: 16.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005877/1.391, allocations: 5.047 MB / 0.5797 GB, free: 9.562 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006153/1.397, allocations: 2.844 MB / 0.5825 GB, free: 6.715 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-05/1.397, allocations: 39.95 kB / 0.5825 GB, free: 6.676 MB / 394.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01606/1.413, allocations: 6.533 MB / 0.5889 GB, free: 140 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.865e-05/1.414, allocations: 58.81 kB / 0.5889 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001929/1.414, allocations: 120 kB / 0.589 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/1.415, allocations: 353 kB / 0.5894 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007608/1.423, allocations: 1.236 MB / 0.5906 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005167/1.428, allocations: 2.76 MB / 0.5933 GB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005579/1.433, allocations: 295.3 kB / 0.5936 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/1.435, allocations: 336 kB / 0.5939 GB, free: 10.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * 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 (664): * Single equations (assignments): 660 * 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.005125/1.44, allocations: 1.766 MB / 0.5956 GB, free: 9.098 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000863/1.441, allocations: 308 kB / 0.5959 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005525/1.446, allocations: 1.739 MB / 0.5976 GB, free: 7.035 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.915e-05/1.446, allocations: 18.66 kB / 0.5976 GB, free: 7.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.446, allocations: 3.625 kB / 0.5976 GB, free: 7.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.272e-05/1.446, allocations: 7.984 kB / 0.5976 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/1.462, allocations: 5.397 MB / 0.6029 GB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/1.462, allocations: 64 / 0.6029 GB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002146/1.464, allocations: 223.7 kB / 0.6031 GB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008198/1.465, allocations: 152.7 kB / 0.6033 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.465, allocations: 24 kB / 0.6033 GB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/1.469, allocations: 2.198 MB / 0.6054 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/1.469, allocations: 7.969 kB / 0.6054 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009195/1.478, allocations: 3.826 MB / 0.6092 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/1.48, allocations: 0.5282 MB / 0.6097 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005591/1.481, allocations: 23.98 kB / 0.6097 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001945/1.483, allocations: 67.92 kB / 0.6098 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/1.483, allocations: 72.56 kB / 0.6098 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/1.483, allocations: 51.02 kB / 0.6099 GB, free: 10.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005779/1.489, allocations: 2.298 MB / 0.6121 GB, free: 7.906 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.216e-06/1.489, allocations: 0 / 0.6121 GB, free: 7.906 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007844/1.497, allocations: 0.8085 MB / 0.6129 GB, free: 7.098 MB / 426.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.01462/1.512, allocations: 4.747 MB / 0.6176 GB, free: 2.289 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.3223/1.834, allocations: 3.98 MB / 0.6215 GB, free: 111.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/1.834, allocations: 0 / 0.6215 GB, free: 111.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003896/1.838, allocations: 1.084 MB / 0.6225 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003915/1.842, allocations: 340.3 kB / 0.6228 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09042/1.932, allocations: 111.5 MB / 0.7317 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005137/1.938, allocations: 2.823 MB / 0.7345 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003687/1.941, allocations: 1.538 MB / 0.736 GB, free: 11.21 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/1.941, allocations: 0 / 0.736 GB, free: 11.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.696/6.637, allocations: 81.9 MB / 0.816 GB, free: 120.4 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat