Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.124/2.124, allocations: 209.2 MB / 224.8 MB, free: 0.7656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005955/0.0005956, allocations: 12 kB / 282.7 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1095, allocations: 48.7 MB / 331.4 MB, free: 8.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5467, allocations: 89.22 MB / 420.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.5471, allocations: 73.36 kB / 420.7 MB, free: 11.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6521/1.199, allocations: 85.53 MB / 0.4943 GB, free: 92.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.199, allocations: 0 / 0.4943 GB, free: 92.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000204/1.199, allocations: 71.72 kB / 0.4944 GB, free: 92.21 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1567 * Number of variables: 1567 Notification: Performance of Generate backend data structure: time 0.0173/1.217, allocations: 3.797 MB / 0.4981 GB, free: 90.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.214e-05/1.217, allocations: 9.031 kB / 0.4981 GB, free: 90.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00437/1.221, allocations: 0.7804 MB / 0.4989 GB, free: 90.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02834/1.25, allocations: 3.509 MB / 0.5023 GB, free: 90.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01617/1.266, allocations: 4.172 MB / 0.5064 GB, free: 89.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005152/1.266, allocations: 293.1 kB / 0.5066 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003137/1.27, allocations: 388 kB / 0.507 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03192/1.302, allocations: 10.3 MB / 0.5171 GB, free: 88.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002472/1.302, allocations: 26.81 kB / 0.5171 GB, free: 88.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002557/1.304, allocations: 178.3 kB / 0.5173 GB, free: 88.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002812/1.307, allocations: 1.214 MB / 0.5185 GB, free: 88.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/1.334, allocations: 10 MB / 0.5282 GB, free: 86.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07183/1.406, allocations: 35.47 MB / 0.5629 GB, free: 64.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01427/1.421, allocations: 4.96 MB / 0.5677 GB, free: 59.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002113/1.423, allocations: 1.878 MB / 0.5695 GB, free: 57.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.441e-05/1.423, allocations: 56.56 kB / 0.5696 GB, free: 57.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=229): time 7.354e-06/1.423, allocations: 0 / 0.5696 GB, free: 57.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=235): time 0.05204/1.475, allocations: 14.34 MB / 0.5836 GB, free: 44.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/1.475, allocations: 81.3 kB / 0.5837 GB, free: 44.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005145/1.48, allocations: 2.362 MB / 0.586 GB, free: 42.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000513/1.481, allocations: 57.7 kB / 0.586 GB, free: 42.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/1.483, allocations: 2.695 MB / 0.5887 GB, free: 39.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001303/1.484, allocations: 0.8459 MB / 0.5895 GB, free: 38.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000674/1.485, allocations: 100 kB / 0.5896 GB, free: 38.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004783/1.485, allocations: 0.5379 MB / 0.5901 GB, free: 38.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005488/1.491, allocations: 2.177 MB / 0.5922 GB, free: 35.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007417/1.498, allocations: 5.065 MB / 0.5972 GB, free: 29.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007266/1.506, allocations: 3.315 MB / 0.6004 GB, free: 26.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.801e-05/1.506, allocations: 28 kB / 0.6005 GB, free: 26.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.02083/1.527, allocations: 7.794 MB / 0.6081 GB, free: 18.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.388e-05/1.527, allocations: 52 kB / 0.6081 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/1.527, allocations: 100.1 kB / 0.6082 GB, free: 18.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003914/1.531, allocations: 0.8045 MB / 0.609 GB, free: 17.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007258/1.538, allocations: 1.193 MB / 0.6102 GB, free: 16.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008592/1.547, allocations: 4.242 MB / 0.6143 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005313/1.552, allocations: 295.7 kB / 0.6146 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.554, allocations: 304 kB / 0.6149 GB, free: 11.23 MB / 410.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 () * Number of clocked 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.005767/1.559, allocations: 2.043 MB / 0.6169 GB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006602/1.56, allocations: 256.6 kB / 0.6171 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.574, allocations: 4.706 MB / 0.6217 GB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/1.574, allocations: 43.98 kB / 0.6217 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/1.574, allocations: 0 / 0.6217 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.764e-05/1.574, allocations: 11.92 kB / 0.6218 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0325/1.607, allocations: 10.62 MB / 0.6321 GB, free: 9.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-05/1.607, allocations: 7.984 kB / 0.6321 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003319/1.61, allocations: 363.4 kB / 0.6325 GB, free: 9.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003904/1.614, allocations: 0.6564 MB / 0.6331 GB, free: 8.387 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005757/1.615, allocations: 47.98 kB / 0.6332 GB, free: 8.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008737/1.623, allocations: 3.675 MB / 0.6368 GB, free: 4.535 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.991e-05/1.624, allocations: 11.94 kB / 0.6368 GB, free: 4.523 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3758/1.999, allocations: 7.661 MB / 0.6443 GB, free: 96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003483/2.003, allocations: 0.6486 MB / 0.6449 GB, free: 95.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001647/2.005, allocations: 43.88 kB / 0.6449 GB, free: 95.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004469/2.009, allocations: 135.6 kB / 0.6451 GB, free: 95.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/2.01, allocations: 130.5 kB / 0.6452 GB, free: 95.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007027/2.011, allocations: 64.23 kB / 0.6452 GB, free: 95.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007209/2.018, allocations: 1.616 MB / 0.6468 GB, free: 95.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.856e-06/2.019, allocations: 3.688 kB / 0.6468 GB, free: 95.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01083/2.029, allocations: 0.944 MB / 0.6477 GB, free: 95.76 MB / 426.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 () * Number of clocked 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.03369/2.063, allocations: 10.09 MB / 0.6576 GB, free: 92.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01947/2.083, allocations: 5.325 MB / 0.6628 GB, free: 92.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.625e-05/2.083, allocations: 2.281 kB / 0.6628 GB, free: 92.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006849/2.09, allocations: 2.018 MB / 0.6648 GB, free: 92.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003997/2.094, allocations: 312.6 kB / 0.6651 GB, free: 92.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09383/2.188, allocations: 99.17 MB / 0.7619 GB, free: 6.648 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007294/2.195, allocations: 3.312 MB / 0.7652 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004885/2.2, allocations: 1.818 MB / 0.7669 GB, free: 3.918 MB / 426.7 MB Notification: Performance of SimCode: time 2.595e-06/2.2, allocations: 4 kB / 0.7669 GB, free: 3.914 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.716/6.916, allocations: 91.36 MB / 0.8562 GB, free: 98.78 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat