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.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.535/2.535, allocations: 234.9 MB / 250.5 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000459/0.000459, allocations: 16 kB / 314.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3845, allocations: 54.86 MB / 369.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2061/0.5907, allocations: 99.29 MB / 468.6 MB, free: 9.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.5911, allocations: 79.91 kB / 468.7 MB, free: 9.262 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8637/1.455, allocations: 128.5 MB / 0.5832 GB, free: 49.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.455, allocations: 0 / 0.5832 GB, free: 49.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003936/1.455, allocations: 119.9 kB / 0.5834 GB, free: 49.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.02861/1.484, allocations: 6.676 MB / 0.5899 GB, free: 42.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/1.484, allocations: 8.031 kB / 0.5899 GB, free: 42.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005714/1.49, allocations: 1.096 MB / 0.5909 GB, free: 41.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04796/1.538, allocations: 6.45 MB / 0.5972 GB, free: 35.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02673/1.565, allocations: 8.601 MB / 0.6056 GB, free: 26.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004452/1.565, allocations: 439.9 kB / 0.6061 GB, free: 26.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003617/1.569, allocations: 0.5816 MB / 0.6066 GB, free: 25.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04384/1.612, allocations: 15.42 MB / 0.6217 GB, free: 9.531 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/1.613, allocations: 59.48 kB / 0.6217 GB, free: 9.473 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002089/1.615, allocations: 263.8 kB / 0.622 GB, free: 9.215 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004026/1.619, allocations: 1.699 MB / 0.6237 GB, free: 7.516 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04718/1.666, allocations: 14.84 MB / 0.6382 GB, free: 8.652 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5014/2.168, allocations: 56.25 MB / 0.6931 GB, free: 76.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02934/2.197, allocations: 8.002 MB / 0.7009 GB, free: 75.47 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002745/2.2, allocations: 2.21 MB / 0.7031 GB, free: 73.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.357e-05/2.2, allocations: 68.7 kB / 0.7031 GB, free: 73.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=367): time 8.586e-06/2.2, allocations: 0 / 0.7031 GB, free: 73.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=419): time 0.1742/2.374, allocations: 39.68 MB / 0.7419 GB, free: 69.69 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/2.374, allocations: 117.5 kB / 0.742 GB, free: 69.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008894/2.383, allocations: 3.857 MB / 0.7458 GB, free: 68.29 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001164/2.385, allocations: 89.7 kB / 0.7458 GB, free: 68.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003338/2.388, allocations: 3.776 MB / 0.7495 GB, free: 65.54 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002705/2.391, allocations: 1.487 MB / 0.751 GB, free: 64.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/2.392, allocations: 156.1 kB / 0.7511 GB, free: 64.31 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006439/2.393, allocations: 0.6397 MB / 0.7518 GB, free: 63.86 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009712/2.402, allocations: 3.886 MB / 0.7555 GB, free: 62.62 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01254/2.415, allocations: 7.672 MB / 0.763 GB, free: 56.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01294/2.428, allocations: 5.437 MB / 0.7683 GB, free: 53.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/2.428, allocations: 36 kB / 0.7684 GB, free: 53.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04254/2.471, allocations: 13.9 MB / 0.782 GB, free: 42.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/2.471, allocations: 60 kB / 0.782 GB, free: 42.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002134/2.471, allocations: 129 kB / 0.7821 GB, free: 42.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01372/2.485, allocations: 2.642 MB / 0.7847 GB, free: 40.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01824/2.503, allocations: 1.937 MB / 0.7866 GB, free: 38.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04217/2.545, allocations: 14.07 MB / 0.8004 GB, free: 26.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01344/2.559, allocations: 482 kB / 0.8008 GB, free: 26.19 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002568/2.561, allocations: 431 kB / 0.8012 GB, free: 25.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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 (920): * Single equations (assignments): 912 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01141/2.573, allocations: 2.908 MB / 0.8041 GB, free: 23.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001656/2.575, allocations: 466 kB / 0.8045 GB, free: 22.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03445/2.609, allocations: 10.43 MB / 0.8147 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001208/2.609, allocations: 68.05 kB / 0.8148 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-05/2.609, allocations: 8 kB / 0.8148 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/2.609, allocations: 19.92 kB / 0.8148 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06565/2.675, allocations: 21.06 MB / 0.8353 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.806e-05/2.675, allocations: 8 kB / 0.8354 GB, free: 9.215 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007493/2.683, allocations: 0.7905 MB / 0.8361 GB, free: 8.426 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01374/2.697, allocations: 2.411 MB / 0.8385 GB, free: 6.023 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001246/2.698, allocations: 76 kB / 0.8386 GB, free: 5.949 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03254/2.73, allocations: 12.81 MB / 0.8511 GB, free: 8.879 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.661e-05/2.73, allocations: 20 kB / 0.8511 GB, free: 8.859 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04686/2.777, allocations: 16.25 MB / 0.867 GB, free: 7.922 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004776/2.782, allocations: 1.155 MB / 0.8681 GB, free: 6.742 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002159/2.784, allocations: 75.5 kB / 0.8682 GB, free: 6.672 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006297/2.791, allocations: 295.6 kB / 0.8684 GB, free: 6.383 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001548/2.792, allocations: 254 kB / 0.8687 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005175/2.793, allocations: 120 kB / 0.8688 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007439/2.8, allocations: 2.71 MB / 0.8714 GB, free: 3.309 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.51e-07/2.8, allocations: 4 kB / 0.8714 GB, free: 3.305 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01074/2.811, allocations: 1.65 MB / 0.8731 GB, free: 1.664 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3976/3.209, allocations: 19.45 MB / 0.892 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02383/3.233, allocations: 9.709 MB / 0.9015 GB, free: 136 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.899e-05/3.233, allocations: 3.969 kB / 0.9015 GB, free: 136 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01076/3.244, allocations: 4.238 MB / 0.9057 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00598/3.25, allocations: 0.6387 MB / 0.9063 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1723/3.422, allocations: 145.1 MB / 1.048 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01116/3.433, allocations: 4.746 MB / 1.053 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008361/3.442, allocations: 2.96 MB / 1.056 GB, free: 7.664 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/3.442, allocations: 0 / 1.056 GB, free: 7.664 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.685/9.127, allocations: 173.3 MB / 1.225 GB, free: 37.09 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat