Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.01131/0.01131, allocations: 104.5 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.001296/0.001296, allocations: 173.4 kB / 15.94 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.656/1.656, allocations: 170.9 MB / 187.5 MB, free: 1 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.2507/0.2507, allocations: 38.09 MB / 265.1 MB, free: 3.965 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000472/0.0004721, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.4257/0.5322, allocations: 76.67 MB / 449 MB, free: 8.93 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0545/0.5867, allocations: 18.98 MB / 467.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02062/0.6074, allocations: 413 kB / 468.3 MB, free: 7.039 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01503/0.6225, allocations: 4.162 MB / 472.5 MB, free: 4.484 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04163/0.6642, allocations: 10.25 MB / 482.8 MB, free: 1.414 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01053/0.6748, allocations: 1.848 MB / 484.6 MB, free: 340 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.06222/0.737, allocations: 20.35 MB / 0.4931 GB, free: 15.24 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09101/0.8281, allocations: 39.51 MB / 0.5317 GB, free: 7.586 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007543/0.8357, allocations: 3.057 MB / 0.5347 GB, free: 4.52 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00954/0.8453, allocations: 3.889 MB / 0.5385 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003077/0.8485, allocations: 0.5469 MB / 0.539 GB, free: 72 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00717/0.8557, allocations: 1.772 MB / 0.5408 GB, free: 14.3 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01076/0.8665, allocations: 6.068 MB / 0.5467 GB, free: 8.215 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006816/0.8734, allocations: 3.297 MB / 0.5499 GB, free: 4.902 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04374/0.9172, allocations: 28.23 MB / 0.5775 GB, free: 8.609 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.9172, allocations: 0 / 0.5775 GB, free: 8.609 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.9172, allocations: 0 / 0.5775 GB, free: 8.609 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001157/0.9184, allocations: 0 / 0.5775 GB, free: 8.609 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.06323/0.9817, allocations: 16.14 MB / 0.5932 GB, free: 8.348 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.9818, allocations: 12.03 kB / 0.5932 GB, free: 8.336 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01288/0.9946, allocations: 2.965 MB / 0.5961 GB, free: 5.359 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.9606/1.955, allocations: 16.08 MB / 0.6118 GB, free: 150.1 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.031/1.986, allocations: 9.738 MB / 0.6214 GB, free: 145.4 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001397/1.988, allocations: 1.318 MB / 0.6226 GB, free: 144.9 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00743/1.995, allocations: 1.738 MB / 0.6243 GB, free: 144.3 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1334/2.129, allocations: 41.13 MB / 0.6645 GB, free: 102.9 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001203/2.13, allocations: 99.08 kB / 0.6646 GB, free: 102.8 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007736/2.138, allocations: 0.7598 MB / 0.6653 GB, free: 102.1 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01214/2.15, allocations: 4.061 MB / 0.6693 GB, free: 98.1 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1208/2.271, allocations: 33.73 MB / 0.7022 GB, free: 64.36 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8779/3.149, allocations: 119.1 MB / 0.8185 GB, free: 89.31 MB / 474.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1044/3.253, allocations: 22.29 MB / 0.8403 GB, free: 86.89 MB / 474.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06047/3.314, allocations: 27.49 MB / 0.8671 GB, free: 72 MB / 474.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.807e-05/3.314, allocations: 83.98 kB / 0.8672 GB, free: 71.92 MB / 474.9 MB Notification: Performance of pre-optimization done (n=372): time 9.017e-06/3.314, allocations: 3.375 kB / 0.8672 GB, free: 71.92 MB / 474.9 MB Notification: Performance of matching and sorting (n=486): time 2.905/6.219, allocations: 327.3 MB / 1.187 GB, free: 151.7 MB / 0.495 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/6.219, allocations: 278 kB / 1.187 GB, free: 151.4 MB / 0.495 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02226/6.241, allocations: 10.42 MB / 1.197 GB, free: 147.5 MB / 0.495 GB Notification: Performance of collectPreVariables (initialization): time 0.002707/6.244, allocations: 98.83 kB / 1.197 GB, free: 147.4 MB / 0.495 GB Notification: Performance of collectInitialEqns (initialization): time 0.008428/6.252, allocations: 10.8 MB / 1.208 GB, free: 139.3 MB / 0.495 GB Notification: Performance of collectInitialBindings (initialization): time 0.004754/6.257, allocations: 1.894 MB / 1.21 GB, free: 137.9 MB / 0.495 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004207/6.262, allocations: 338.8 kB / 1.21 GB, free: 137.6 MB / 0.495 GB Notification: Performance of setup shared object (initialization): time 0.001817/6.263, allocations: 1.03 MB / 1.211 GB, free: 137 MB / 0.495 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03456/6.298, allocations: 15.98 MB / 1.227 GB, free: 126.8 MB / 0.495 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0414/6.339, allocations: 26.52 MB / 1.253 GB, free: 96.4 MB / 0.495 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.042/6.381, allocations: 19.99 MB / 1.272 GB, free: 76.41 MB / 0.495 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003284/6.382, allocations: 108 kB / 1.272 GB, free: 76.31 MB / 0.495 GB Notification: Performance of matching and sorting (n=2202) (initialization): time 0.1136/6.495, allocations: 42.25 MB / 1.314 GB, free: 34.04 MB / 0.495 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003019/6.496, allocations: 168 kB / 1.314 GB, free: 33.87 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005747/6.496, allocations: 376.1 kB / 1.314 GB, free: 33.5 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003242/6.5, allocations: 1.009 MB / 1.315 GB, free: 32.49 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4692/6.969, allocations: 5.211 MB / 1.32 GB, free: 150.1 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/6.981, allocations: 6.522 MB / 1.326 GB, free: 147.4 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02984/7.011, allocations: 2.107 MB / 1.329 GB, free: 147.4 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005326/7.016, allocations: 1.02 MB / 1.33 GB, free: 147.4 MB / 0.495 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1710 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2146): * Single equations (assignments): 2136 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02302/7.039, allocations: 7.832 MB / 1.337 GB, free: 144.5 MB / 0.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004239/7.043, allocations: 0.874 MB / 1.338 GB, free: 144.5 MB / 0.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07499/7.118, allocations: 30.46 MB / 1.368 GB, free: 130.4 MB / 0.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002049/7.119, allocations: 96.52 kB / 1.368 GB, free: 130.4 MB / 0.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-05/7.119, allocations: 3.812 kB / 1.368 GB, free: 130.4 MB / 0.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001215/7.119, allocations: 30.69 kB / 1.368 GB, free: 130.4 MB / 0.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1506/7.269, allocations: 72.8 MB / 1.439 GB, free: 65.62 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.84e-05/7.27, allocations: 5.969 kB / 1.439 GB, free: 65.62 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02305/7.293, allocations: 2.045 MB / 1.441 GB, free: 63.62 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002308/7.295, allocations: 461 kB / 1.441 GB, free: 63.17 MB / 0.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002637/7.298, allocations: 88.95 kB / 1.442 GB, free: 63.09 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008129/7.306, allocations: 5.14 MB / 1.447 GB, free: 57.74 MB / 0.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/7.306, allocations: 0 / 1.447 GB, free: 57.74 MB / 0.495 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1142/7.42, allocations: 51.07 MB / 1.496 GB, free: 7.082 MB / 0.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.378/7.798, allocations: 3.973 MB / 1.5 GB, free: 149.8 MB / 0.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005925/7.804, allocations: 76.61 kB / 1.5 GB, free: 149.8 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02145/7.826, allocations: 1.595 MB / 1.502 GB, free: 149.8 MB / 0.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004791/7.83, allocations: 257.4 kB / 1.502 GB, free: 149.8 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002833/7.833, allocations: 126.1 kB / 1.502 GB, free: 149.8 MB / 0.495 GB Notification: Performance of sorting global known variables: time 0.01965/7.853, allocations: 6.482 MB / 1.509 GB, free: 149.5 MB / 0.495 GB Notification: Performance of sort global known variables: time 1.132e-06/7.853, allocations: 1.469 kB / 1.509 GB, free: 149.5 MB / 0.495 GB Notification: Performance of remove unused functions: time 0.02689/7.88, allocations: 4.309 MB / 1.513 GB, free: 149.2 MB / 0.495 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (444): * Single equations (assignments): 434 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1215/8.002, allocations: 51.99 MB / 1.564 GB, free: 122.6 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.07566/8.077, allocations: 35.27 MB / 1.598 GB, free: 91.23 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/8.077, allocations: 0.625 kB / 1.598 GB, free: 91.23 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.03181/8.109, allocations: 15.06 MB / 1.613 GB, free: 76.88 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01268/8.122, allocations: 1.327 MB / 1.614 GB, free: 75.59 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.155/9.277, allocations: 433.1 MB / 2.037 GB, free: 107.6 MB / 0.5888 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02664/9.304, allocations: 11.32 MB / 2.048 GB, free: 96.31 MB / 0.5888 GB Notification: Performance of simCode: alias equations: time 0.03749/9.342, allocations: 7.362 MB / 2.055 GB, free: 89.26 MB / 0.5888 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02475/9.366, allocations: 7.77 MB / 2.063 GB, free: 81.49 MB / 0.5888 GB Notification: Performance of SimCode: time 2.144e-06/9.366, allocations: 0 / 2.063 GB, free: 81.49 MB / 0.5888 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.349/10.72, allocations: 273.2 MB / 2.33 GB, free: 190.6 MB / 0.5888 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002859/10.72, allocations: 204.8 kB / 2.33 GB, free: 190.4 MB / 0.5888 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/22.09, allocations: 0 / 2.33 GB, free: 190.4 MB / 0.5888 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat