Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.3 MB / 224.8 MB, free: 1.129 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004423/0.0004423, allocations: 8 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08757, allocations: 48.71 MB / 331.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3674/0.455, allocations: 102.8 MB / 434.1 MB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4553, allocations: 83.95 kB / 434.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9038/1.359, allocations: 154.2 MB / 0.5745 GB, free: 58.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.717e-06/1.359, allocations: 0 / 0.5745 GB, free: 58.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000316/1.36, allocations: 147.9 kB / 0.5747 GB, free: 58.59 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.01978/1.379, allocations: 6.972 MB / 0.5815 GB, free: 51.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/1.379, allocations: 8.031 kB / 0.5815 GB, free: 51.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03443/1.414, allocations: 6.671 MB / 0.588 GB, free: 44.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02245/1.436, allocations: 8.409 MB / 0.5962 GB, free: 36.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/1.437, allocations: 0.5255 MB / 0.5967 GB, free: 35.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003127/1.44, allocations: 0.7105 MB / 0.5974 GB, free: 35.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04544/1.486, allocations: 18.85 MB / 0.6158 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003277/1.486, allocations: 87.23 kB / 0.6159 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002464/1.488, allocations: 335.8 kB / 0.6163 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002703/1.491, allocations: 1.719 MB / 0.6179 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04169/1.533, allocations: 16.53 MB / 0.6341 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3669/1.9, allocations: 74.09 MB / 0.7064 GB, free: 29.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02025/1.92, allocations: 6.168 MB / 0.7124 GB, free: 28.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03051/1.951, allocations: 13.91 MB / 0.726 GB, free: 23.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/1.951, allocations: 56.22 kB / 0.7261 GB, free: 23.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 7.471e-06/1.951, allocations: 3.594 kB / 0.7261 GB, free: 23.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=344): time 0.1102/2.061, allocations: 24.75 MB / 0.7503 GB, free: 16.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/2.061, allocations: 189.2 kB / 0.7504 GB, free: 16.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01265/2.074, allocations: 5.249 MB / 0.7556 GB, free: 14.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005949/2.074, allocations: 72.95 kB / 0.7556 GB, free: 14.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003462/2.078, allocations: 4.855 MB / 0.7604 GB, free: 10.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0016/2.079, allocations: 1.274 MB / 0.7616 GB, free: 9.562 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001058/2.081, allocations: 187.8 kB / 0.7618 GB, free: 9.418 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008676/2.081, allocations: 0.7101 MB / 0.7625 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007587/2.089, allocations: 3.261 MB / 0.7657 GB, free: 7.855 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01109/2.1, allocations: 8.699 MB / 0.7742 GB, free: 15.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/2.111, allocations: 5.248 MB / 0.7793 GB, free: 13.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/2.112, allocations: 55.69 kB / 0.7793 GB, free: 13.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03558/2.147, allocations: 12.57 MB / 0.7916 GB, free: 3.105 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001815/2.147, allocations: 88 kB / 0.7917 GB, free: 3.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003143/2.148, allocations: 192 kB / 0.7919 GB, free: 2.832 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005872/2.154, allocations: 1.33 MB / 0.7932 GB, free: 1.801 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01057/2.164, allocations: 2.22 MB / 0.7954 GB, free: 0 / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01726/2.182, allocations: 7.404 MB / 0.8026 GB, free: 9.398 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009641/2.191, allocations: 0.5574 MB / 0.8031 GB, free: 8.922 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002121/2.193, allocations: 0.551 MB / 0.8037 GB, free: 8.379 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 876 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1152): * Single equations (assignments): 1145 * 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.009547/2.203, allocations: 3.446 MB / 0.807 GB, free: 5.371 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/2.204, allocations: 0.5283 MB / 0.8076 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/2.221, allocations: 5.325 MB / 0.8128 GB, free: 400 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.14e-05/2.221, allocations: 37.09 kB / 0.8128 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.392e-05/2.221, allocations: 8 kB / 0.8128 GB, free: 356 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.468e-05/2.221, allocations: 17.72 kB / 0.8128 GB, free: 356 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3064/2.528, allocations: 14.14 MB / 0.8266 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.528e-05/2.528, allocations: 12.19 kB / 0.8266 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003214/2.531, allocations: 0.5363 MB / 0.8272 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005243/2.536, allocations: 0.9247 MB / 0.8281 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006064/2.537, allocations: 70.42 kB / 0.8281 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01242/2.55, allocations: 5.69 MB / 0.8337 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.822e-05/2.55, allocations: 16.5 kB / 0.8337 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02022/2.57, allocations: 10.25 MB / 0.8437 GB, free: 97.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003193/2.573, allocations: 0.9476 MB / 0.8446 GB, free: 96.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001396/2.575, allocations: 66.88 kB / 0.8447 GB, free: 96.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003871/2.578, allocations: 192.7 kB / 0.8449 GB, free: 96.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007654/2.579, allocations: 211.6 kB / 0.8451 GB, free: 96.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003297/2.58, allocations: 104.3 kB / 0.8452 GB, free: 96.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009441/2.589, allocations: 3.659 MB / 0.8487 GB, free: 96.74 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.355e-06/2.589, allocations: 0 / 0.8487 GB, free: 96.74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01094/2.6, allocations: 1.652 MB / 0.8504 GB, free: 96.74 MB / 458.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (267): * Single equations (assignments): 260 * 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.001107/2.601, allocations: 268.6 kB / 0.8506 GB, free: 96.65 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.016/2.617, allocations: 7.778 MB / 0.8582 GB, free: 95.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/2.617, allocations: 0 / 0.8582 GB, free: 95.01 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005507/2.623, allocations: 2.4 MB / 0.8606 GB, free: 94.11 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004557/2.627, allocations: 0.6485 MB / 0.8612 GB, free: 93.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03828/2.666, allocations: 18.96 MB / 0.8797 GB, free: 84.07 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01153/2.677, allocations: 5.32 MB / 0.8849 GB, free: 82.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002133/2.679, allocations: 450.7 kB / 0.8853 GB, free: 82.32 MB / 458.7 MB Notification: Performance of SimCode: time 2.087e-06/2.679, allocations: 0 / 0.8853 GB, free: 82.32 MB / 458.7 MB Notification: Performance of Templates: time 0.4462/3.126, allocations: 121.2 MB / 1.004 GB, free: 100.1 MB / 458.7 MB