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.957/1.957, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.639e-05/2.661e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.08802, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3736/0.4617, allocations: 102.7 MB / 429.3 MB, free: 5.199 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.462, allocations: 73.72 kB / 429.3 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8619/1.324, allocations: 154.3 MB / 0.57 GB, free: 80.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.452e-06/1.324, allocations: 4 kB / 0.57 GB, free: 80.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003177/1.324, allocations: 134.5 kB / 0.5701 GB, free: 80.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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.03779/1.362, allocations: 6.541 MB / 0.5765 GB, free: 77.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.071e-05/1.362, allocations: 10.69 kB / 0.5765 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07469/1.437, allocations: 6.676 MB / 0.583 GB, free: 77.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03593/1.473, allocations: 8.379 MB / 0.5912 GB, free: 76.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008468/1.474, allocations: 0.526 MB / 0.5917 GB, free: 76.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004141/1.478, allocations: 0.7042 MB / 0.5924 GB, free: 76.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0537/1.532, allocations: 18.67 MB / 0.6106 GB, free: 68.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003365/1.532, allocations: 83.19 kB / 0.6107 GB, free: 68.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002026/1.534, allocations: 334.5 kB / 0.611 GB, free: 67.99 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002507/1.537, allocations: 1.721 MB / 0.6127 GB, free: 66.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04061/1.577, allocations: 16.22 MB / 0.6286 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4504/2.028, allocations: 74.09 MB / 0.7009 GB, free: 42.63 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02039/2.048, allocations: 6.105 MB / 0.7069 GB, free: 41.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005553/2.054, allocations: 2.705 MB / 0.7095 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02811/2.082, allocations: 13.91 MB / 0.7231 GB, free: 37.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.007e-05/2.082, allocations: 62 kB / 0.7232 GB, free: 37.22 MB / 442.7 MB Notification: Performance of pre-optimization done (n=284): time 7.443e-06/2.082, allocations: 0 / 0.7232 GB, free: 37.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=344): time 0.1199/2.202, allocations: 19.3 MB / 0.742 GB, free: 33.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/2.202, allocations: 193.3 kB / 0.7422 GB, free: 33.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01079/2.213, allocations: 5.153 MB / 0.7472 GB, free: 32.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005862/2.214, allocations: 74.14 kB / 0.7473 GB, free: 32.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003405/2.217, allocations: 4.85 MB / 0.752 GB, free: 29.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001505/2.218, allocations: 1.285 MB / 0.7533 GB, free: 28.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000834/2.219, allocations: 189.7 kB / 0.7535 GB, free: 28.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006039/2.22, allocations: 0.7099 MB / 0.7542 GB, free: 28.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006603/2.227, allocations: 3.142 MB / 0.7572 GB, free: 28.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009469/2.236, allocations: 8.582 MB / 0.7656 GB, free: 21.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009521/2.246, allocations: 5.183 MB / 0.7707 GB, free: 20.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/2.246, allocations: 57.03 kB / 0.7707 GB, free: 20.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02942/2.275, allocations: 12.33 MB / 0.7828 GB, free: 16.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/2.275, allocations: 86.94 kB / 0.7828 GB, free: 16.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002041/2.276, allocations: 198.6 kB / 0.783 GB, free: 16.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006243/2.282, allocations: 1.316 MB / 0.7843 GB, free: 16.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009195/2.291, allocations: 2.182 MB / 0.7864 GB, free: 16.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/2.305, allocations: 7.092 MB / 0.7934 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009036/2.314, allocations: 0.5555 MB / 0.7939 GB, free: 12.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001614/2.315, allocations: 0.5452 MB / 0.7944 GB, free: 12.19 MB / 442.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 () * 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.001572/2.317, allocations: 0.7979 MB / 0.7952 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/2.318, allocations: 0.5356 MB / 0.7957 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/2.331, allocations: 5.27 MB / 0.8009 GB, free: 7.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.847e-05/2.331, allocations: 39.91 kB / 0.8009 GB, free: 7.535 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.901e-05/2.331, allocations: 11.95 kB / 0.8009 GB, free: 7.523 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.387e-05/2.331, allocations: 14.2 kB / 0.801 GB, free: 7.523 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03764/2.368, allocations: 14.22 MB / 0.8148 GB, free: 12.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.154e-05/2.369, allocations: 14.72 kB / 0.8149 GB, free: 12.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00317/2.372, allocations: 0.526 MB / 0.8154 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004611/2.376, allocations: 0.922 MB / 0.8163 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005183/2.377, allocations: 64 kB / 0.8163 GB, free: 11.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/2.389, allocations: 5.416 MB / 0.8216 GB, free: 6.219 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.905e-05/2.389, allocations: 15.94 kB / 0.8216 GB, free: 6.203 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02413/2.413, allocations: 10.34 MB / 0.8317 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003192/2.416, allocations: 0.9427 MB / 0.8327 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009791/2.417, allocations: 66.61 kB / 0.8327 GB, free: 11.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003184/2.421, allocations: 191.7 kB / 0.8329 GB, free: 11.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006333/2.421, allocations: 219.2 kB / 0.8331 GB, free: 11.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003358/2.422, allocations: 107.5 kB / 0.8332 GB, free: 11.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008427/2.43, allocations: 3.555 MB / 0.8367 GB, free: 8.496 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.034e-06/2.43, allocations: 0 / 0.8367 GB, free: 8.496 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01099/2.441, allocations: 1.654 MB / 0.8383 GB, free: 6.859 MB / 474.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 () * 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.00107/2.442, allocations: 271 kB / 0.8386 GB, free: 6.617 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01752/2.46, allocations: 7.614 MB / 0.846 GB, free: 15.58 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.554e-05/2.46, allocations: 4 kB / 0.846 GB, free: 15.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005601/2.465, allocations: 2.357 MB / 0.8483 GB, free: 13.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004348/2.47, allocations: 0.6416 MB / 0.8489 GB, free: 12.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03607/2.506, allocations: 13.47 MB / 0.8621 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01335/2.519, allocations: 5.354 MB / 0.8673 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/2.522, allocations: 446.6 kB / 0.8677 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of SimCode: time 2.598e-06/2.522, allocations: 4 kB / 0.8677 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of Templates: time 0.4512/2.973, allocations: 121.2 MB / 0.9861 GB, free: 94.12 MB / 0.4948 GB