Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_2_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.2/package.mo): time 0.01658/0.01658, allocations: 110 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.00127/0.00127, allocations: 178.1 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 1.99/1.99, allocations: 194.6 MB / 211.3 MB, free: 11.18 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.3241/0.3241, allocations: 40.04 MB / 296.5 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.0004761, allocations: 15.98 kB / 361.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1213, allocations: 54.87 MB / 416 MB, free: 2.602 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.4281/0.5495, allocations: 76.72 MB / 492.7 MB, free: 19.28 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04997/0.5995, allocations: 19.01 MB / 0.4998 GB, free: 6.227 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02006/0.6196, allocations: 418 kB / 0.5002 GB, free: 6.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01617/0.6359, allocations: 4.151 MB / 0.5042 GB, free: 4.781 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0475/0.6834, allocations: 10.25 MB / 0.5142 GB, free: 15.75 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01347/0.697, allocations: 1.84 MB / 0.516 GB, free: 14.96 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07499/0.772, allocations: 20.34 MB / 0.5359 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09531/0.8674, allocations: 39.53 MB / 0.5745 GB, free: 9.41 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009086/0.8765, allocations: 3.049 MB / 0.5775 GB, free: 6.352 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01656/0.8931, allocations: 3.905 MB / 0.5813 GB, free: 2.434 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003767/0.897, allocations: 0.5469 MB / 0.5818 GB, free: 1.887 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0206/0.9176, allocations: 1.764 MB / 0.5835 GB, free: 124 kB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.02975/0.9474, allocations: 6.072 MB / 0.5895 GB, free: 10.04 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00795/0.9555, allocations: 3.297 MB / 0.5927 GB, free: 6.723 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04373/0.9992, allocations: 28.23 MB / 0.6202 GB, free: 10.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.9993, allocations: 0 / 0.6202 GB, free: 10.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.317e-06/0.9993, allocations: 0 / 0.6202 GB, free: 10.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001154/1, allocations: 0 / 0.6202 GB, free: 10.43 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.7449/1.745, allocations: 16.14 MB / 0.636 GB, free: 136 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/1.745, allocations: 9.375 kB / 0.636 GB, free: 136 MB / 490.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01185/1.757, allocations: 2.978 MB / 0.6389 GB, free: 135.5 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3639/2.121, allocations: 16.08 MB / 0.6546 GB, free: 133.8 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03347/2.155, allocations: 9.741 MB / 0.6641 GB, free: 129 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001899/2.157, allocations: 1.313 MB / 0.6654 GB, free: 128.5 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008082/2.165, allocations: 1.738 MB / 0.6671 GB, free: 127.9 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1312/2.296, allocations: 41.14 MB / 0.7073 GB, free: 90.92 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009506/2.297, allocations: 95.14 kB / 0.7074 GB, free: 90.83 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007049/2.304, allocations: 0.7643 MB / 0.7081 GB, free: 90.13 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008523/2.313, allocations: 4.057 MB / 0.7121 GB, free: 86.09 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1116/2.424, allocations: 33.75 MB / 0.745 GB, free: 52.33 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9747/3.399, allocations: 119.1 MB / 0.8613 GB, free: 89.96 MB / 0.5106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1144/3.514, allocations: 22.31 MB / 0.8831 GB, free: 87.56 MB / 0.5106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06469/3.578, allocations: 27.49 MB / 0.91 GB, free: 77.89 MB / 0.5106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.803e-05/3.579, allocations: 78.81 kB / 0.91 GB, free: 77.82 MB / 0.5106 GB Notification: Performance of pre-optimization done (n=372): time 8.756e-06/3.579, allocations: 3.719 kB / 0.91 GB, free: 77.82 MB / 0.5106 GB Notification: Performance of matching and sorting (n=486): time 2.926/6.504, allocations: 327.3 MB / 1.23 GB, free: 173.2 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/6.504, allocations: 282.1 kB / 1.23 GB, free: 173 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03609/6.541, allocations: 10.41 MB / 1.24 GB, free: 169.5 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.003968/6.545, allocations: 104 kB / 1.24 GB, free: 169.4 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.01341/6.558, allocations: 10.8 MB / 1.251 GB, free: 162.5 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.006603/6.565, allocations: 1.892 MB / 1.253 GB, free: 161.2 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005508/6.57, allocations: 342.8 kB / 1.253 GB, free: 160.9 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.002234/6.573, allocations: 1.03 MB / 1.254 GB, free: 160.3 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05335/6.626, allocations: 15.97 MB / 1.27 GB, free: 153.6 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04672/6.673, allocations: 26.52 MB / 1.295 GB, free: 132.5 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04291/6.716, allocations: 19.98 MB / 1.315 GB, free: 123.2 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004628/6.716, allocations: 107.7 kB / 1.315 GB, free: 123.2 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2202) (initialization): time 0.1026/6.819, allocations: 42.25 MB / 1.356 GB, free: 87.38 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002546/6.819, allocations: 164.2 kB / 1.356 GB, free: 87.21 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005304/6.82, allocations: 383.9 kB / 1.357 GB, free: 86.84 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003182/6.823, allocations: 1.005 MB / 1.358 GB, free: 85.83 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03964/6.863, allocations: 5.217 MB / 1.363 GB, free: 80.6 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/6.873, allocations: 6.516 MB / 1.369 GB, free: 73.83 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03012/6.903, allocations: 2.109 MB / 1.371 GB, free: 71.72 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005057/6.908, allocations: 1.022 MB / 1.372 GB, free: 70.7 MB / 0.5419 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.02186/6.93, allocations: 7.832 MB / 1.38 GB, free: 62.85 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004202/6.934, allocations: 0.8676 MB / 1.381 GB, free: 61.97 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07264/7.007, allocations: 30.47 MB / 1.411 GB, free: 31.47 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001853/7.007, allocations: 91.97 kB / 1.411 GB, free: 31.38 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.062e-05/7.007, allocations: 4.109 kB / 1.411 GB, free: 31.38 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/7.007, allocations: 28.73 kB / 1.411 GB, free: 31.35 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6186/7.626, allocations: 72.8 MB / 1.482 GB, free: 120.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.406e-05/7.626, allocations: 2.797 kB / 1.482 GB, free: 120.9 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02687/7.653, allocations: 2.051 MB / 1.484 GB, free: 120.9 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002309/7.655, allocations: 465.7 kB / 1.484 GB, free: 120.8 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002731/7.658, allocations: 85.42 kB / 1.484 GB, free: 120.7 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008406/7.667, allocations: 5.137 MB / 1.489 GB, free: 117.2 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/7.667, allocations: 3.938 kB / 1.489 GB, free: 117.2 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1317/7.798, allocations: 51.07 MB / 1.539 GB, free: 81.12 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01439/7.813, allocations: 3.978 MB / 1.543 GB, free: 77.98 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005303/7.818, allocations: 75.8 kB / 1.543 GB, free: 77.91 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02119/7.839, allocations: 1.594 MB / 1.545 GB, free: 77.05 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004921/7.844, allocations: 253.3 kB / 1.545 GB, free: 76.9 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00285/7.847, allocations: 127.8 kB / 1.545 GB, free: 76.78 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01678/7.864, allocations: 6.483 MB / 1.551 GB, free: 70.45 MB / 0.5419 GB Notification: Performance of sort global known variables: time 9.32e-07/7.864, allocations: 0 / 1.551 GB, free: 70.45 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.02624/7.89, allocations: 4.31 MB / 1.556 GB, free: 66.15 MB / 0.5419 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.1135/8.004, allocations: 52 MB / 1.606 GB, free: 14.46 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.4688/8.473, allocations: 35.26 MB / 1.641 GB, free: 157.6 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/8.473, allocations: 0.625 kB / 1.641 GB, free: 157.6 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.03593/8.509, allocations: 15.06 MB / 1.656 GB, free: 150.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01232/8.521, allocations: 1.335 MB / 1.657 GB, free: 150.1 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.359/9.881, allocations: 433.5 MB / 2.08 GB, free: 220 MB / 0.6044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03063/9.911, allocations: 11.33 MB / 2.091 GB, free: 216.3 MB / 0.6044 GB Notification: Performance of simCode: alias equations: time 0.04179/9.953, allocations: 7.357 MB / 2.098 GB, free: 216 MB / 0.6044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0251/9.978, allocations: 7.773 MB / 2.106 GB, free: 209.4 MB / 0.6044 GB Notification: Performance of SimCode: time 1.102e-06/9.978, allocations: 7.828 kB / 2.106 GB, free: 209.4 MB / 0.6044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.035/11.01, allocations: 273.2 MB / 2.373 GB, free: 140.6 MB / 0.6044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002888/11.01, allocations: 216.7 kB / 2.373 GB, free: 140.3 MB / 0.6044 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/23.03, allocations: 0 / 2.373 GB, free: 140.3 MB / 0.6044 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat