Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01194/0.01195, allocations: 109.2 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001333/0.001333, allocations: 177.3 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.087/2.087, allocations: 194.6 MB / 211.3 MB, free: 10.91 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2825/0.2825, allocations: 40.05 MB / 296.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004672/0.0004674, allocations: 12 kB / 361.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1265, allocations: 54.88 MB / 416 MB, free: 2.547 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.04324/0.1698, allocations: 27.75 MB / 443.8 MB, free: 6.711 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3568/0.5267, allocations: 7.336 MB / 451.1 MB, free: 30.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006687/0.5334, allocations: 136.7 kB / 451.2 MB, free: 30.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005826/0.5393, allocations: 1.368 MB / 452.6 MB, free: 30.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01578/0.5551, allocations: 4.163 MB / 456.8 MB, free: 30.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002825/0.558, allocations: 479.3 kB / 457.2 MB, free: 30.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02561/0.5837, allocations: 9.249 MB / 466.5 MB, free: 29.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005576/0.5893, allocations: 2.647 MB / 469.1 MB, free: 29.17 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002293/0.5917, allocations: 0.8219 MB / 470 MB, free: 29.17 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00353/0.5953, allocations: 1.135 MB / 471.1 MB, free: 29.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001539/0.5969, allocations: 112.5 kB / 471.2 MB, free: 29.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003336/0.6003, allocations: 0.9288 MB / 472.1 MB, free: 29.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002642/0.603, allocations: 1.263 MB / 473.4 MB, free: 29.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001811/0.6048, allocations: 0.6697 MB / 474.1 MB, free: 29.13 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009136/0.614, allocations: 4.533 MB / 478.6 MB, free: 28.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.6141, allocations: 2.719 kB / 478.6 MB, free: 28.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.6141, allocations: 0 / 478.6 MB, free: 28.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002526/0.6144, allocations: 1.688 kB / 478.6 MB, free: 28.84 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01606/0.6304, allocations: 3.419 MB / 482 MB, free: 27.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.6305, allocations: 9.125 kB / 482 MB, free: 27.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002719/0.6333, allocations: 0.5734 MB / 482.6 MB, free: 27.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1861/0.8194, allocations: 8.238 MB / 490.8 MB, free: 25.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009331/0.8287, allocations: 2.448 MB / 493.3 MB, free: 24.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002861/0.8291, allocations: 169.2 kB / 493.4 MB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001792/0.8309, allocations: 233.9 kB / 493.7 MB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02158/0.8525, allocations: 7.859 MB / 0.4898 GB, free: 22.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/0.8527, allocations: 39.78 kB / 0.4898 GB, free: 22.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007011/0.8534, allocations: 115.3 kB / 0.4899 GB, free: 22.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004208/0.8577, allocations: 1.605 MB / 0.4915 GB, free: 21.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01983/0.8775, allocations: 6.651 MB / 0.498 GB, free: 18.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05224/0.9298, allocations: 31.2 MB / 0.5285 GB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008427/0.9383, allocations: 2.297 MB / 0.5307 GB, free: 2.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00059/0.939, allocations: 325.8 kB / 0.531 GB, free: 1.953 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.939, allocations: 47.11 kB / 0.5311 GB, free: 1.898 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 5.471e-06/0.9391, allocations: 1.641 kB / 0.5311 GB, free: 1.898 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.06581/1.005, allocations: 11.67 MB / 0.5424 GB, free: 6.066 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/1.005, allocations: 192.6 kB / 0.5426 GB, free: 5.836 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009706/1.015, allocations: 3.829 MB / 0.5464 GB, free: 2.016 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003963/1.015, allocations: 54.08 kB / 0.5464 GB, free: 1.961 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003471/1.019, allocations: 2.663 MB / 0.549 GB, free: 15.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/1.02, allocations: 0.5598 MB / 0.5496 GB, free: 14.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006339/1.021, allocations: 105.6 kB / 0.5497 GB, free: 14.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005045/1.021, allocations: 0.5346 MB / 0.5502 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005345/1.026, allocations: 1.666 MB / 0.5518 GB, free: 12.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009076/1.036, allocations: 5.072 MB / 0.5568 GB, free: 5.648 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007903/1.043, allocations: 2.879 MB / 0.5596 GB, free: 2.781 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/1.044, allocations: 32 kB / 0.5596 GB, free: 2.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.02076/1.064, allocations: 6.731 MB / 0.5662 GB, free: 12.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/1.065, allocations: 56 kB / 0.5662 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002183/1.065, allocations: 120 kB / 0.5664 GB, free: 11.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/1.067, allocations: 422.6 kB / 0.5668 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007801/1.074, allocations: 1.232 MB / 0.568 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006392/1.081, allocations: 3.138 MB / 0.571 GB, free: 6.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006293/1.087, allocations: 295.4 kB / 0.5713 GB, free: 6.641 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001304/1.089, allocations: 339.9 kB / 0.5716 GB, free: 6.309 MB / 442.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.005462/1.094, allocations: 1.768 MB / 0.5734 GB, free: 4.531 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008914/1.095, allocations: 313.5 kB / 0.5737 GB, free: 4.223 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/1.101, allocations: 1.841 MB / 0.5755 GB, free: 2.371 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.935e-05/1.101, allocations: 19.95 kB / 0.5755 GB, free: 2.352 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/1.101, allocations: 4 kB / 0.5755 GB, free: 2.348 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.661e-05/1.101, allocations: 3.984 kB / 0.5755 GB, free: 2.344 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01883/1.12, allocations: 5.628 MB / 0.581 GB, free: 12.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/1.12, allocations: 0 / 0.581 GB, free: 12.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/1.122, allocations: 219.6 kB / 0.5812 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/1.124, allocations: 224.7 kB / 0.5814 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003252/1.124, allocations: 27.98 kB / 0.5814 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005125/1.129, allocations: 2.565 MB / 0.5839 GB, free: 9.508 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/1.129, allocations: 5.578 kB / 0.5839 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/1.14, allocations: 3.999 MB / 0.5878 GB, free: 5.449 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00223/1.142, allocations: 0.5475 MB / 0.5884 GB, free: 4.879 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009976/1.143, allocations: 24 kB / 0.5884 GB, free: 4.855 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002774/1.146, allocations: 67.91 kB / 0.5885 GB, free: 4.789 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004887/1.146, allocations: 76.55 kB / 0.5885 GB, free: 4.715 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/1.147, allocations: 39.98 kB / 0.5886 GB, free: 4.676 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007089/1.154, allocations: 2.415 MB / 0.5909 GB, free: 2.273 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.154, allocations: 4.062 kB / 0.5909 GB, free: 2.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006797/1.161, allocations: 0.819 MB / 0.5917 GB, free: 1.453 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 () * 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.01195/1.173, allocations: 4.932 MB / 0.5966 GB, free: 12.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01166/1.184, allocations: 4.058 MB / 0.6005 GB, free: 8.422 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.184, allocations: 0 / 0.6005 GB, free: 8.422 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003522/1.188, allocations: 1.14 MB / 0.6016 GB, free: 7.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/1.191, allocations: 342.1 kB / 0.602 GB, free: 6.941 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.416/1.607, allocations: 111.4 MB / 0.7107 GB, free: 76.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005976/1.613, allocations: 2.822 MB / 0.7135 GB, free: 75.28 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00856/1.622, allocations: 1.742 MB / 0.7152 GB, free: 75.13 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003889/1.626, allocations: 1.501 MB / 0.7167 GB, free: 73.94 MB / 490.7 MB Notification: Performance of SimCode: time 2.304e-06/1.626, allocations: 0 / 0.7167 GB, free: 73.94 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1938/1.82, allocations: 64.15 MB / 0.7793 GB, free: 31.18 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/1.82, allocations: 191.4 kB / 0.7795 GB, free: 30.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.867/6.687, allocations: 3.938 kB / 0.7795 GB, free: 30.94 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat