Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.263/2.263, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.632e-05/3.641e-05, allocations: 7.984 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4014, allocations: 54.84 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1791/0.5806, allocations: 95.94 MB / 460.6 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.5809, allocations: 76.56 kB / 460.6 MB, free: 448 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7465/1.327, allocations: 85.68 MB / 0.5335 GB, free: 109.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.327, allocations: 0 / 0.5335 GB, free: 109.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000202/1.328, allocations: 67.44 kB / 0.5336 GB, free: 109.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01514/1.343, allocations: 3.665 MB / 0.5372 GB, free: 108.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/1.343, allocations: 13.77 kB / 0.5372 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003973/1.347, allocations: 0.7846 MB / 0.5379 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02739/1.374, allocations: 3.509 MB / 0.5414 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01742/1.392, allocations: 4.146 MB / 0.5454 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005917/1.392, allocations: 302.9 kB / 0.5457 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002938/1.395, allocations: 388.4 kB / 0.5461 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03262/1.428, allocations: 10.21 MB / 0.556 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002427/1.428, allocations: 35.98 kB / 0.5561 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002519/1.431, allocations: 173.6 kB / 0.5562 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002907/1.434, allocations: 1.21 MB / 0.5574 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02836/1.462, allocations: 9.861 MB / 0.567 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07534/1.538, allocations: 35.48 MB / 0.6017 GB, free: 83.69 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01439/1.552, allocations: 4.931 MB / 0.6065 GB, free: 79.53 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004757/1.557, allocations: 2.276 MB / 0.6087 GB, free: 77.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002214/1.559, allocations: 1.883 MB / 0.6106 GB, free: 75.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/1.559, allocations: 52.56 kB / 0.6106 GB, free: 75.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 7.374e-06/1.559, allocations: 4 kB / 0.6106 GB, free: 75.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=235): time 0.04469/1.604, allocations: 11.24 MB / 0.6216 GB, free: 65.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/1.604, allocations: 73.41 kB / 0.6217 GB, free: 65.68 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004901/1.609, allocations: 2.347 MB / 0.624 GB, free: 63.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005091/1.61, allocations: 57.7 kB / 0.624 GB, free: 63.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/1.612, allocations: 2.69 MB / 0.6266 GB, free: 61.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001256/1.613, allocations: 0.8516 MB / 0.6275 GB, free: 60.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006032/1.613, allocations: 104 kB / 0.6276 GB, free: 60.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003947/1.614, allocations: 0.5371 MB / 0.6281 GB, free: 59.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005259/1.619, allocations: 2.142 MB / 0.6302 GB, free: 57.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00726/1.626, allocations: 5.023 MB / 0.6351 GB, free: 51.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007267/1.634, allocations: 3.31 MB / 0.6383 GB, free: 48.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.812e-05/1.634, allocations: 35.95 kB / 0.6384 GB, free: 48.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.02106/1.655, allocations: 7.714 MB / 0.6459 GB, free: 41.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-05/1.655, allocations: 48 kB / 0.6459 GB, free: 41.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/1.655, allocations: 100 kB / 0.646 GB, free: 40.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004048/1.659, allocations: 0.8022 MB / 0.6468 GB, free: 40.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007725/1.667, allocations: 1.197 MB / 0.648 GB, free: 38.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008459/1.676, allocations: 4.136 MB / 0.652 GB, free: 34.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005464/1.681, allocations: 291.9 kB / 0.6523 GB, free: 34.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001239/1.683, allocations: 304 kB / 0.6526 GB, free: 34.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (636): * Single equations (assignments): 629 * Array equations: 6 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001876/1.684, allocations: 492.3 kB / 0.6531 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006735/1.685, allocations: 261.4 kB / 0.6533 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/1.699, allocations: 4.671 MB / 0.6579 GB, free: 28.64 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.699, allocations: 51.81 kB / 0.6579 GB, free: 28.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/1.699, allocations: 0 / 0.6579 GB, free: 28.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.052e-05/1.699, allocations: 7.969 kB / 0.6579 GB, free: 28.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02984/1.729, allocations: 10.6 MB / 0.6683 GB, free: 17.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.559e-05/1.729, allocations: 12.16 kB / 0.6683 GB, free: 17.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003263/1.732, allocations: 355.5 kB / 0.6686 GB, free: 17.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003728/1.736, allocations: 0.6527 MB / 0.6693 GB, free: 16.86 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005519/1.737, allocations: 40 kB / 0.6693 GB, free: 16.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00721/1.744, allocations: 3.589 MB / 0.6728 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/1.744, allocations: 11.89 kB / 0.6728 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02134/1.766, allocations: 7.617 MB / 0.6803 GB, free: 5.176 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00316/1.769, allocations: 0.6499 MB / 0.6809 GB, free: 4.504 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001254/1.77, allocations: 39.98 kB / 0.6809 GB, free: 4.465 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003029/1.773, allocations: 135.4 kB / 0.6811 GB, free: 4.336 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007587/1.774, allocations: 129.1 kB / 0.6812 GB, free: 4.211 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003109/1.774, allocations: 67.66 kB / 0.6813 GB, free: 4.148 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003925/1.778, allocations: 1.595 MB / 0.6828 GB, free: 2.539 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.778, allocations: 0 / 0.6828 GB, free: 2.539 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006184/1.784, allocations: 0.9414 MB / 0.6837 GB, free: 1.598 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * Array equations: 6 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.022/1.806, allocations: 10.05 MB / 0.6936 GB, free: 7.324 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01469/1.821, allocations: 5.271 MB / 0.6987 GB, free: 2.066 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.821, allocations: 0 / 0.6987 GB, free: 2.066 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0053/1.827, allocations: 2 MB / 0.7007 GB, free: 56 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3411/2.168, allocations: 295 kB / 0.7009 GB, free: 114.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03284/2.201, allocations: 9.766 MB / 0.7105 GB, free: 113.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00817/2.209, allocations: 3.314 MB / 0.7137 GB, free: 112.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004822/2.214, allocations: 1.816 MB / 0.7155 GB, free: 112.4 MB / 474.7 MB Notification: Performance of SimCode: time 2.695e-06/2.214, allocations: 5.125 kB / 0.7155 GB, free: 112.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.224/6.438, allocations: 91.91 MB / 0.8052 GB, free: 62.14 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat