Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.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 Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.0109/0.01091, allocations: 104.9 kB / 15.05 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.1.mo): time 0.001191/0.001191, allocations: 167.2 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.699/1.699, allocations: 170.9 MB / 187.5 MB, free: 0.8555 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2821/0.2821, allocations: 38.1 MB / 265.1 MB, free: 3.938 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004564/0.0004564, allocations: 19.98 kB / 323.6 MB, free: 29.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.0937, allocations: 48.71 MB / 372.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05268/0.1464, allocations: 33.96 MB / 406.3 MB, free: 10.78 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02338/0.1699, allocations: 8.524 MB / 414.8 MB, free: 2.234 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006289/0.1762, allocations: 163.6 kB / 414.9 MB, free: 2.074 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006065/0.1823, allocations: 1.691 MB / 416.6 MB, free: 384 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01899/0.2014, allocations: 5.034 MB / 421.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.2045, allocations: 0.5069 MB / 422.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02834/0.2329, allocations: 9.375 MB / 431.6 MB, free: 1.434 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3134/0.5463, allocations: 3.004 MB / 434.6 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.5485, allocations: 0.8828 MB / 435.4 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.5515, allocations: 1.243 MB / 436.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001136/0.5527, allocations: 126.7 kB / 436.8 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.5559, allocations: 0.9436 MB / 437.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002715/0.5586, allocations: 1.404 MB / 439.2 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.5599, allocations: 0.7313 MB / 439.9 MB, free: 18.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00862/0.5685, allocations: 5.032 MB / 444.9 MB, free: 18.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5686, allocations: 0 / 444.9 MB, free: 18.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.5686, allocations: 1.562 kB / 444.9 MB, free: 18.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000227/0.5689, allocations: 0 / 444.9 MB, free: 18.28 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01535/0.5842, allocations: 3.699 MB / 448.6 MB, free: 16.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.5843, allocations: 12.72 kB / 448.6 MB, free: 16.4 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002848/0.5871, allocations: 0.6376 MB / 449.3 MB, free: 16.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1735/0.7607, allocations: 8.312 MB / 457.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008796/0.7696, allocations: 2.571 MB / 460.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.7699, allocations: 193.6 kB / 460.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.7715, allocations: 259.7 kB / 460.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.793, allocations: 8.722 MB / 469.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/0.7932, allocations: 40.06 kB / 469.4 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009291/0.7941, allocations: 125.7 kB / 469.5 MB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00432/0.7985, allocations: 1.779 MB / 471.3 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02119/0.8197, allocations: 7.352 MB / 478.6 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0846/0.9044, allocations: 33.95 MB / 0.5005 GB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.9161, allocations: 2.531 MB / 0.503 GB, free: 2.293 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007287/0.9169, allocations: 325.5 kB / 0.5033 GB, free: 1.934 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.61e-05/0.917, allocations: 52.8 kB / 0.5034 GB, free: 1.883 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 6.903e-06/0.917, allocations: 0 / 0.5034 GB, free: 1.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=133): time 0.04/0.957, allocations: 9.182 MB / 0.5123 GB, free: 9.227 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.9572, allocations: 205.9 kB / 0.5125 GB, free: 8.984 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009438/0.9667, allocations: 4.044 MB / 0.5165 GB, free: 4.957 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000367/0.9671, allocations: 45.7 kB / 0.5165 GB, free: 4.906 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003583/0.9707, allocations: 2.949 MB / 0.5194 GB, free: 1.973 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009871/0.9717, allocations: 0.5425 MB / 0.5199 GB, free: 1.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006302/0.9724, allocations: 115.5 kB / 0.5201 GB, free: 1.324 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005151/0.9729, allocations: 0.5535 MB / 0.5206 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005056/0.978, allocations: 1.674 MB / 0.5222 GB, free: 15.08 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009207/0.9872, allocations: 5.448 MB / 0.5276 GB, free: 7.785 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0078/0.9951, allocations: 2.957 MB / 0.5304 GB, free: 4.957 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001277/0.9953, allocations: 40 kB / 0.5305 GB, free: 4.918 MB / 394.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.0211/1.016, allocations: 7.025 MB / 0.5373 GB, free: 14.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/1.017, allocations: 64 kB / 0.5374 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002209/1.017, allocations: 140 kB / 0.5375 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/1.019, allocations: 438.4 kB / 0.538 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007882/1.026, allocations: 1.314 MB / 0.5392 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006052/1.033, allocations: 3.16 MB / 0.5423 GB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006068/1.039, allocations: 311.5 kB / 0.5426 GB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001273/1.04, allocations: 363.5 kB / 0.543 GB, free: 8.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (713): * Single equations (assignments): 709 * 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.005598/1.046, allocations: 1.931 MB / 0.5448 GB, free: 6.535 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008766/1.046, allocations: 327.7 kB / 0.5452 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005458/1.052, allocations: 1.691 MB / 0.5468 GB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.347e-05/1.052, allocations: 23.97 kB / 0.5468 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/1.052, allocations: 4 kB / 0.5468 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.413e-05/1.052, allocations: 7.922 kB / 0.5468 GB, free: 4.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01716/1.069, allocations: 5.425 MB / 0.5521 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/1.069, allocations: 4 kB / 0.5521 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/1.071, allocations: 191.7 kB / 0.5523 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/1.072, allocations: 224.8 kB / 0.5525 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/1.073, allocations: 28 kB / 0.5526 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004831/1.077, allocations: 2.572 MB / 0.5551 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.077, allocations: 0.8594 kB / 0.5551 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008989/1.086, allocations: 3.73 MB / 0.5587 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/1.089, allocations: 0.5358 MB / 0.5593 GB, free: 7.492 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008017/1.089, allocations: 24 kB / 0.5593 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/1.091, allocations: 55.88 kB / 0.5593 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/1.092, allocations: 75.08 kB / 0.5594 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/1.092, allocations: 39.98 kB / 0.5594 GB, free: 7.305 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006938/1.099, allocations: 2.546 MB / 0.5619 GB, free: 4.777 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.099, allocations: 4 kB / 0.5619 GB, free: 4.773 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006782/1.106, allocations: 0.8594 MB / 0.5628 GB, free: 3.914 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.009967/1.116, allocations: 4.81 MB / 0.5675 GB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01077/1.127, allocations: 4.059 MB / 0.5714 GB, free: 10.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.127, allocations: 0 / 0.5714 GB, free: 10.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002771/1.129, allocations: 1.006 MB / 0.5724 GB, free: 9.969 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/1.135, allocations: 359.8 kB / 0.5728 GB, free: 9.617 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4145/1.549, allocations: 122.6 MB / 0.6925 GB, free: 83.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006171/1.555, allocations: 3.026 MB / 0.6954 GB, free: 82.16 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008068/1.564, allocations: 1.813 MB / 0.6972 GB, free: 82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003832/1.567, allocations: 1.635 MB / 0.6988 GB, free: 80.69 MB / 458.7 MB Notification: Performance of SimCode: time 1.904e-06/1.567, allocations: 0 / 0.6988 GB, free: 80.69 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1522/1.72, allocations: 66.95 MB / 0.7642 GB, free: 16.56 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/1.72, allocations: 196.4 kB / 0.7644 GB, free: 16.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.244/6.964, allocations: 4 kB / 0.7644 GB, free: 16.31 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat