Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadModel(ModelicaTest): time 2.187/2.187, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.882e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3246, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1692/0.4939, allocations: 108.8 MB / 466.8 MB, free: 1.992 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4942, allocations: 83.89 kB / 466.9 MB, free: 1.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7758/1.27, allocations: 151.2 MB / 0.6036 GB, free: 11.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.955e-06/1.27, allocations: 0 / 0.6036 GB, free: 11.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003946/1.27, allocations: 140 kB / 0.6037 GB, free: 11.12 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02331/1.294, allocations: 6.53 MB / 0.6101 GB, free: 4.512 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/1.294, allocations: 16.03 kB / 0.6101 GB, free: 4.496 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03858/1.332, allocations: 6.675 MB / 0.6167 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02753/1.36, allocations: 8.371 MB / 0.6248 GB, free: 5.367 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005034/1.361, allocations: 232 kB / 0.625 GB, free: 5.141 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003368/1.364, allocations: 427.8 kB / 0.6255 GB, free: 4.723 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.309/1.673, allocations: 11.66 MB / 0.6368 GB, free: 72.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03542/1.708, allocations: 15.87 MB / 0.6523 GB, free: 69.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004463/1.709, allocations: 82.25 kB / 0.6524 GB, free: 69.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002844/1.712, allocations: 38.53 kB / 0.6525 GB, free: 69.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003128/1.715, allocations: 1.722 MB / 0.6541 GB, free: 69.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09712/1.812, allocations: 70.77 MB / 0.7232 GB, free: 26.6 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007573/1.82, allocations: 4.672 MB / 0.7278 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004758/1.825, allocations: 2.658 MB / 0.7304 GB, free: 22.97 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/1.854, allocations: 13.7 MB / 0.7438 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/1.854, allocations: 62.75 kB / 0.7438 GB, free: 15.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 8.526e-06/1.854, allocations: 3.562 kB / 0.7439 GB, free: 15.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=346): time 0.062/1.916, allocations: 17.99 MB / 0.7614 GB, free: 6.375 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/1.916, allocations: 189.2 kB / 0.7616 GB, free: 6.156 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009625/1.926, allocations: 4.597 MB / 0.7661 GB, free: 2.266 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005986/1.927, allocations: 25.7 kB / 0.7661 GB, free: 2.234 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004383/1.931, allocations: 5.001 MB / 0.771 GB, free: 13.67 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00202/1.933, allocations: 1.246 MB / 0.7722 GB, free: 12.55 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009124/1.934, allocations: 0 / 0.7722 GB, free: 12.55 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001051/1.935, allocations: 0.7356 MB / 0.7729 GB, free: 11.92 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007642/1.943, allocations: 3.042 MB / 0.7759 GB, free: 9.172 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01322/1.956, allocations: 8.727 MB / 0.7844 GB, free: 14.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/1.969, allocations: 5.308 MB / 0.7896 GB, free: 10.05 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/1.969, allocations: 56 kB / 0.7897 GB, free: 9.992 MB / 490.7 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.03521/2.005, allocations: 11.57 MB / 0.801 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000182/2.005, allocations: 96 kB / 0.8011 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003245/2.005, allocations: 204 kB / 0.8013 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005801/2.011, allocations: 1.307 MB / 0.8025 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01006/2.021, allocations: 2.26 MB / 0.8047 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/2.036, allocations: 6.854 MB / 0.8114 GB, free: 6.543 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009403/2.046, allocations: 377.6 kB / 0.8118 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002165/2.048, allocations: 0.5737 MB / 0.8123 GB, free: 5.684 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 924 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1203): * Single equations (assignments): 1196 * 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 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002698/2.05, allocations: 0.5979 MB / 0.8129 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/2.052, allocations: 0.4982 MB / 0.8134 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01547/2.067, allocations: 5.038 MB / 0.8183 GB, free: 412 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.193e-05/2.067, allocations: 36 kB / 0.8184 GB, free: 376 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.216e-05/2.067, allocations: 4 kB / 0.8184 GB, free: 372 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.619e-05/2.068, allocations: 17.03 kB / 0.8184 GB, free: 368 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3298/2.397, allocations: 12.27 MB / 0.8304 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.491e-05/2.397, allocations: 11.41 kB / 0.8304 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003024/2.4, allocations: 0.5194 MB / 0.8309 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004375/2.405, allocations: 0.8543 MB / 0.8317 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005841/2.405, allocations: 22.14 kB / 0.8318 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/2.416, allocations: 5.153 MB / 0.8368 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-05/2.416, allocations: 19.81 kB / 0.8368 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01754/2.433, allocations: 9.784 MB / 0.8464 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002882/2.436, allocations: 0.9073 MB / 0.8472 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001263/2.438, allocations: 19.16 kB / 0.8473 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003652/2.441, allocations: 133.5 kB / 0.8474 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008952/2.442, allocations: 216.5 kB / 0.8476 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003079/2.442, allocations: 103 kB / 0.8477 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006943/2.449, allocations: 3.046 MB / 0.8507 GB, free: 102 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.396e-06/2.449, allocations: 3.406 kB / 0.8507 GB, free: 102 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0126/2.462, allocations: 1.426 MB / 0.8521 GB, free: 102 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 262 * 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 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001447/2.464, allocations: 214 kB / 0.8523 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02065/2.484, allocations: 7.279 MB / 0.8594 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/2.484, allocations: 0 / 0.8594 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00467/2.489, allocations: 2.272 MB / 0.8616 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/2.493, allocations: 0.5093 MB / 0.8621 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03565/2.529, allocations: 13.31 MB / 0.8751 GB, free: 98.75 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01127/2.54, allocations: 5.314 MB / 0.8803 GB, free: 97.29 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/2.542, allocations: 439.7 kB / 0.8807 GB, free: 97.28 MB / 0.4948 GB Notification: Performance of SimCode: time 1.89e-06/2.542, allocations: 0 / 0.8807 GB, free: 97.28 MB / 0.4948 GB Notification: Performance of Templates: time 0.233/2.775, allocations: 118.3 MB / 0.9962 GB, free: 9.637 MB / 0.4948 GB