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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.436/2.436, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006325/0.0006324, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3523, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1838/0.5362, allocations: 99 MB / 468.4 MB, free: 7.457 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.5366, allocations: 87.89 kB / 468.5 MB, free: 7.371 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5998/1.136, allocations: 72.91 MB / 0.5287 GB, free: 43.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.126e-06/1.136, allocations: 0 / 0.5287 GB, free: 43.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002035/1.137, allocations: 60 kB / 0.5287 GB, free: 43.34 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.01591/1.153, allocations: 3.495 MB / 0.5321 GB, free: 39.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/1.153, allocations: 8.031 kB / 0.5322 GB, free: 39.77 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003474/1.156, allocations: 0.6183 MB / 0.5328 GB, free: 39.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04359/1.2, allocations: 4.246 MB / 0.5369 GB, free: 34.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/1.22, allocations: 4.22 MB / 0.541 GB, free: 30.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004077/1.221, allocations: 250.4 kB / 0.5413 GB, free: 30.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00236/1.223, allocations: 323.8 kB / 0.5416 GB, free: 30.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02194/1.245, allocations: 8.293 MB / 0.5497 GB, free: 20.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002149/1.246, allocations: 55.47 kB / 0.5497 GB, free: 20.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001362/1.247, allocations: 171.9 kB / 0.5499 GB, free: 20.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001667/1.249, allocations: 0.8134 MB / 0.5507 GB, free: 19.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/1.267, allocations: 6.694 MB / 0.5572 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05857/1.325, allocations: 39.77 MB / 0.5961 GB, free: 3.914 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008513/1.334, allocations: 2.272 MB / 0.5983 GB, free: 1.496 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006318/1.335, allocations: 331.8 kB / 0.5986 GB, free: 1.117 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/1.335, allocations: 39.12 kB / 0.5986 GB, free: 1.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 5.671e-06/1.335, allocations: 0 / 0.5986 GB, free: 1.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.06243/1.397, allocations: 11.39 MB / 0.6098 GB, free: 5.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/1.397, allocations: 192.6 kB / 0.6099 GB, free: 5.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009227/1.406, allocations: 3.288 MB / 0.6131 GB, free: 1.969 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003386/1.407, allocations: 41.7 kB / 0.6132 GB, free: 1.922 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003193/1.41, allocations: 2.631 MB / 0.6158 GB, free: 15.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.411, allocations: 0.5556 MB / 0.6163 GB, free: 14.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007785/1.412, allocations: 104 kB / 0.6164 GB, free: 14.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005719/1.413, allocations: 0.5379 MB / 0.6169 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005258/1.418, allocations: 1.634 MB / 0.6185 GB, free: 12.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008902/1.427, allocations: 5.055 MB / 0.6235 GB, free: 5.617 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007905/1.435, allocations: 2.844 MB / 0.6262 GB, free: 2.773 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001431/1.435, allocations: 32 kB / 0.6263 GB, free: 2.742 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.0206/1.456, allocations: 6.536 MB / 0.6326 GB, free: 12.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/1.456, allocations: 60 kB / 0.6327 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002417/1.456, allocations: 120 kB / 0.6328 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/1.457, allocations: 353.1 kB / 0.6332 GB, free: 11.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008047/1.466, allocations: 1.232 MB / 0.6344 GB, free: 10.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005508/1.471, allocations: 2.771 MB / 0.6371 GB, free: 7.531 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005893/1.477, allocations: 287.4 kB / 0.6373 GB, free: 7.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001364/1.478, allocations: 339.9 kB / 0.6377 GB, free: 6.918 MB / 474.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.005797/1.484, allocations: 1.778 MB / 0.6394 GB, free: 5.129 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009274/1.485, allocations: 308 kB / 0.6397 GB, free: 4.824 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006065/1.491, allocations: 1.724 MB / 0.6414 GB, free: 3.086 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.574e-05/1.491, allocations: 16 kB / 0.6414 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/1.491, allocations: 4 kB / 0.6414 GB, free: 3.066 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.391e-05/1.492, allocations: 7.938 kB / 0.6414 GB, free: 3.059 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3592/1.851, allocations: 5.405 MB / 0.6467 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.376e-05/1.851, allocations: 3.75 kB / 0.6467 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.853, allocations: 221.1 kB / 0.6469 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009071/1.854, allocations: 157.1 kB / 0.647 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002827/1.854, allocations: 23.23 kB / 0.6471 GB, free: 121.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003604/1.858, allocations: 2.196 MB / 0.6492 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/1.858, allocations: 4.844 kB / 0.6492 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/1.867, allocations: 3.827 MB / 0.653 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/1.869, allocations: 0.5329 MB / 0.6535 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000971/1.87, allocations: 19.92 kB / 0.6535 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002645/1.873, allocations: 69.45 kB / 0.6536 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004743/1.873, allocations: 77.33 kB / 0.6536 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/1.873, allocations: 39.81 kB / 0.6537 GB, free: 119.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006468/1.88, allocations: 2.295 MB / 0.6559 GB, free: 119.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.88, allocations: 0 / 0.6559 GB, free: 119.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006562/1.886, allocations: 0.8051 MB / 0.6567 GB, free: 119.7 MB / 474.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.009707/1.896, allocations: 4.755 MB / 0.6613 GB, free: 118.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009583/1.906, allocations: 3.979 MB / 0.6652 GB, free: 118.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.906, allocations: 0 / 0.6652 GB, free: 118.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002528/1.908, allocations: 1.084 MB / 0.6663 GB, free: 118.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/1.911, allocations: 343.3 kB / 0.6666 GB, free: 118.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08271/1.994, allocations: 111.5 MB / 0.7755 GB, free: 16.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004921/1.999, allocations: 2.824 MB / 0.7783 GB, free: 15.81 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003405/2.003, allocations: 1.538 MB / 0.7798 GB, free: 14.61 MB / 474.7 MB Notification: Performance of SimCode: time 9.32e-07/2.003, allocations: 0 / 0.7798 GB, free: 14.61 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.663/6.666, allocations: 81.9 MB / 0.8597 GB, free: 122.8 MB / 490.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