Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.311/2.311, allocations: 234.9 MB / 250.5 MB, free: 9.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004483/0.0004484, allocations: 12 kB / 314.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3614, allocations: 54.87 MB / 369.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.5565, allocations: 108.8 MB / 478.2 MB, free: 15.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/0.557, allocations: 83.95 kB / 478.3 MB, free: 15.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8721/1.429, allocations: 142.2 MB / 0.606 GB, free: 27.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.018e-06/1.429, allocations: 0 / 0.606 GB, free: 27.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004845/1.43, allocations: 124 kB / 0.6061 GB, free: 27.09 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: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.03039/1.46, allocations: 7.29 MB / 0.6132 GB, free: 19.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.788e-05/1.46, allocations: 12.03 kB / 0.6132 GB, free: 19.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006684/1.467, allocations: 1.283 MB / 0.6145 GB, free: 18.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06741/1.534, allocations: 9.317 MB / 0.6236 GB, free: 9.062 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03266/1.567, allocations: 9.169 MB / 0.6325 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007954/1.568, allocations: 480.7 kB / 0.633 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003877/1.572, allocations: 0.6403 MB / 0.6336 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05535/1.627, allocations: 15.65 MB / 0.6489 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005285/1.628, allocations: 75.3 kB / 0.649 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003187/1.631, allocations: 299.9 kB / 0.6492 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003683/1.635, allocations: 1.385 MB / 0.6506 GB, free: 12.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0466/1.681, allocations: 12.91 MB / 0.6632 GB, free: 15.16 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4591/2.141, allocations: 64.37 MB / 0.7261 GB, free: 51.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02959/2.17, allocations: 6.267 MB / 0.7322 GB, free: 50.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02592/2.196, allocations: 11.18 MB / 0.7431 GB, free: 47.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/2.196, allocations: 56.91 kB / 0.7432 GB, free: 47.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 7.594e-06/2.196, allocations: 0 / 0.7432 GB, free: 47.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=337): time 0.2305/2.427, allocations: 37.35 MB / 0.7796 GB, free: 41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/2.427, allocations: 241.2 kB / 0.7799 GB, free: 40.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01277/2.44, allocations: 4.977 MB / 0.7847 GB, free: 39.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000968/2.441, allocations: 77.67 kB / 0.7848 GB, free: 39.01 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004046/2.445, allocations: 4.272 MB / 0.789 GB, free: 35.74 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002138/2.447, allocations: 1.229 MB / 0.7902 GB, free: 34.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/2.448, allocations: 165.8 kB / 0.7903 GB, free: 34.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006814/2.449, allocations: 0.6582 MB / 0.791 GB, free: 34.24 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009775/2.459, allocations: 3.598 MB / 0.7945 GB, free: 32.79 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01217/2.471, allocations: 8.129 MB / 0.8024 GB, free: 23.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/2.483, allocations: 5.305 MB / 0.8076 GB, free: 18.56 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001509/2.483, allocations: 48 kB / 0.8076 GB, free: 18.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04837/2.532, allocations: 14.51 MB / 0.8218 GB, free: 6.852 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000116/2.532, allocations: 76 kB / 0.8219 GB, free: 6.777 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002419/2.532, allocations: 156 kB / 0.822 GB, free: 6.625 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0209/2.553, allocations: 3.578 MB / 0.8255 GB, free: 4.172 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01112/2.564, allocations: 1.794 MB / 0.8273 GB, free: 2.602 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06285/2.627, allocations: 18.68 MB / 0.8455 GB, free: 2.336 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01426/2.642, allocations: 475.4 kB / 0.846 GB, free: 1.871 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002641/2.644, allocations: 483.5 kB / 0.8464 GB, free: 1.402 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (969): * Single equations (assignments): 965 * Array equations: 3 * 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%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01283/2.657, allocations: 3.113 MB / 0.8495 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002442/2.66, allocations: 0.5283 MB / 0.85 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04046/2.7, allocations: 8.884 MB / 0.8587 GB, free: 4.797 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/2.7, allocations: 36 kB / 0.8587 GB, free: 4.762 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.413e-05/2.7, allocations: 16 kB / 0.8587 GB, free: 4.746 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001111/2.7, allocations: 19.89 kB / 0.8587 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4539/3.154, allocations: 18.65 MB / 0.877 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.585e-05/3.155, allocations: 7.031 kB / 0.877 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004485/3.159, allocations: 491.2 kB / 0.8774 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02637/3.185, allocations: 3.118 MB / 0.8805 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009638/3.186, allocations: 68.86 kB / 0.8805 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05415/3.241, allocations: 16.31 MB / 0.8965 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.378e-05/3.241, allocations: 11.34 kB / 0.8965 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04189/3.283, allocations: 14.15 MB / 0.9103 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004022/3.287, allocations: 1.098 MB / 0.9114 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00191/3.289, allocations: 57.92 kB / 0.9114 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005701/3.294, allocations: 203.1 kB / 0.9116 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001417/3.296, allocations: 216 kB / 0.9118 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004151/3.296, allocations: 91.53 kB / 0.9119 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009398/3.306, allocations: 3.533 MB / 0.9154 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.12e-07/3.306, allocations: 0 / 0.9154 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01295/3.319, allocations: 1.682 MB / 0.917 GB, free: 106.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (253): * Single equations (assignments): 249 * Array equations: 3 * 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%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04403/3.363, allocations: 16.08 MB / 0.9327 GB, free: 98.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02045/3.383, allocations: 8.906 MB / 0.9414 GB, free: 95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/3.383, allocations: 3.938 kB / 0.9414 GB, free: 95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008959/3.392, allocations: 3.482 MB / 0.9448 GB, free: 93.47 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006349/3.399, allocations: 0.6861 MB / 0.9455 GB, free: 93.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4623/3.861, allocations: 138.4 MB / 1.081 GB, free: 98.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01613/3.877, allocations: 4.97 MB / 1.086 GB, free: 97.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0107/3.888, allocations: 3.107 MB / 1.089 GB, free: 97.38 MB / 0.5105 GB Notification: Performance of SimCode: time 1.894e-06/3.888, allocations: 2.625 kB / 1.089 GB, free: 97.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.716/9.604, allocations: 154.8 MB / 1.24 GB, free: 119.6 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat