Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_1_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.1/package.mo): time 0.01135/0.01135, allocations: 103.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.00122/0.00122, allocations: 169.8 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.731/1.731, allocations: 170.9 MB / 187.5 MB, free: 0.9961 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.2628/0.2628, allocations: 38.08 MB / 265.1 MB, free: 3.961 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006811/0.0006813, allocations: 12 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1273, allocations: 48.71 MB / 372.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.04562/0.173, allocations: 27.73 MB / 400 MB, free: 1.039 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02144/0.1945, allocations: 7.304 MB / 407.3 MB, free: 9.715 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005387/0.2, allocations: 131.7 kB / 407.4 MB, free: 9.586 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005309/0.2054, allocations: 1.365 MB / 408.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01643/0.2218, allocations: 4.165 MB / 413 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002917/0.2248, allocations: 495.1 kB / 413.5 MB, free: 3.555 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02779/0.2527, allocations: 9.262 MB / 422.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005815/0.2585, allocations: 2.657 MB / 425.4 MB, free: 7.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002264/0.2609, allocations: 0.8174 MB / 426.2 MB, free: 6.75 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.2637, allocations: 1.133 MB / 427.3 MB, free: 5.613 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009558/0.2648, allocations: 112 kB / 427.4 MB, free: 5.504 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003193/0.268, allocations: 0.9363 MB / 428.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002551/0.2706, allocations: 1.262 MB / 429.6 MB, free: 3.301 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.2722, allocations: 0.6675 MB / 430.3 MB, free: 2.625 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3241/0.5963, allocations: 4.529 MB / 434.8 MB, free: 21.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.5964, allocations: 3.75 kB / 434.8 MB, free: 21.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.496e-06/0.5964, allocations: 0 / 434.8 MB, free: 21.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002287/0.5967, allocations: 0 / 434.8 MB, free: 21.33 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01511/0.6118, allocations: 3.414 MB / 438.3 MB, free: 19.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.6119, allocations: 11.14 kB / 438.3 MB, free: 19.75 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002672/0.6146, allocations: 0.5737 MB / 438.8 MB, free: 19.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1782/0.7928, allocations: 8.237 MB / 447.1 MB, free: 19.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009015/0.8019, allocations: 2.445 MB / 449.5 MB, free: 18.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.8022, allocations: 170.4 kB / 449.7 MB, free: 18.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.8041, allocations: 229 kB / 449.9 MB, free: 18.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02277/0.8269, allocations: 7.863 MB / 457.8 MB, free: 16.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002337/0.8272, allocations: 40.22 kB / 457.8 MB, free: 16.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001593/0.8288, allocations: 116 kB / 457.9 MB, free: 16.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004505/0.8333, allocations: 1.612 MB / 459.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02008/0.8535, allocations: 6.642 MB / 466.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05729/0.9108, allocations: 31.2 MB / 497.4 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008476/0.9194, allocations: 2.296 MB / 499.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006978/0.9201, allocations: 321.7 kB / 500 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.003e-05/0.9202, allocations: 47.81 kB / 0.4883 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of pre-optimization done (n=117): time 6.913e-06/0.9202, allocations: 7.984 kB / 0.4883 GB, free: 0.8867 MB / 346.7 MB Notification: Performance of matching and sorting (n=141): time 0.1076/1.028, allocations: 11.68 MB / 0.4997 GB, free: 6.422 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/1.028, allocations: 192.6 kB / 0.4999 GB, free: 6.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01779/1.046, allocations: 3.832 MB / 0.5036 GB, free: 2.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000464/1.046, allocations: 45.7 kB / 0.5037 GB, free: 2.316 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004773/1.051, allocations: 2.671 MB / 0.5063 GB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001484/1.053, allocations: 0.5578 MB / 0.5068 GB, free: 15.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000984/1.054, allocations: 108 kB / 0.5069 GB, free: 15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0009192/1.055, allocations: 0.5293 MB / 0.5075 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008211/1.063, allocations: 1.673 MB / 0.5091 GB, free: 12.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01304/1.076, allocations: 5.067 MB / 0.514 GB, free: 6.055 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01226/1.089, allocations: 2.871 MB / 0.5169 GB, free: 3.293 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000192/1.089, allocations: 36 kB / 0.5169 GB, free: 3.258 MB / 378.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.03175/1.121, allocations: 6.726 MB / 0.5235 GB, free: 13.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001845/1.121, allocations: 56 kB / 0.5235 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000349/1.121, allocations: 124 kB / 0.5236 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/1.124, allocations: 426 kB / 0.524 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01033/1.134, allocations: 1.23 MB / 0.5252 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009021/1.143, allocations: 3.133 MB / 0.5283 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008981/1.152, allocations: 291.4 kB / 0.5286 GB, free: 8.059 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00174/1.154, allocations: 328 kB / 0.5289 GB, free: 7.738 MB / 394.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.006059/1.16, allocations: 1.783 MB / 0.5306 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009715/1.161, allocations: 311.9 kB / 0.5309 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006926/1.168, allocations: 1.846 MB / 0.5327 GB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-05/1.168, allocations: 19.91 kB / 0.5327 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.168, allocations: 0 / 0.5327 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.906e-05/1.168, allocations: 7.984 kB / 0.5328 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01974/1.188, allocations: 5.623 MB / 0.5382 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/1.188, allocations: 0 / 0.5382 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002264/1.19, allocations: 219.8 kB / 0.5385 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/1.192, allocations: 225.2 kB / 0.5387 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003582/1.192, allocations: 31.28 kB / 0.5387 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00533/1.198, allocations: 2.569 MB / 0.5412 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.198, allocations: 1.641 kB / 0.5412 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/1.209, allocations: 3.996 MB / 0.5451 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002244/1.211, allocations: 0.5438 MB / 0.5456 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.213, allocations: 20 kB / 0.5457 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/1.215, allocations: 67.91 kB / 0.5457 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000547/1.216, allocations: 88.23 kB / 0.5458 GB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/1.216, allocations: 36 kB / 0.5458 GB, free: 6.141 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007319/1.224, allocations: 2.412 MB / 0.5482 GB, free: 3.742 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.323e-06/1.224, allocations: 0 / 0.5482 GB, free: 3.742 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006651/1.23, allocations: 0.8203 MB / 0.549 GB, free: 2.922 MB / 410.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.01287/1.243, allocations: 4.925 MB / 0.5538 GB, free: 13.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01211/1.255, allocations: 4.065 MB / 0.5578 GB, free: 9.895 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/1.255, allocations: 0 / 0.5578 GB, free: 9.895 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003554/1.259, allocations: 1.132 MB / 0.5589 GB, free: 8.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/1.262, allocations: 348.7 kB / 0.5592 GB, free: 8.406 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4296/1.692, allocations: 111.4 MB / 0.668 GB, free: 109.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005561/1.698, allocations: 2.823 MB / 0.6708 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008491/1.706, allocations: 1.748 MB / 0.6725 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003838/1.71, allocations: 1.505 MB / 0.6739 GB, free: 107.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.974e-06/1.71, allocations: 0 / 0.6739 GB, free: 107.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1436/1.854, allocations: 64.13 MB / 0.7366 GB, free: 46.57 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/1.854, allocations: 193.4 kB / 0.7367 GB, free: 46.33 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.904/6.758, allocations: 0 / 0.7367 GB, free: 46.33 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat