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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.19/2.19, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.686e-05, allocations: 0 / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3246, allocations: 54.85 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1647/0.4893, allocations: 109.5 MB / 474 MB, free: 2.973 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.4896, allocations: 71.97 kB / 474.1 MB, free: 2.902 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8131/1.303, allocations: 154.3 MB / 0.6137 GB, free: 80.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.53e-06/1.303, allocations: 0 / 0.6137 GB, free: 80.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003442/1.303, allocations: 132 kB / 0.6138 GB, free: 79.91 MB / 458.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.02031/1.323, allocations: 6.542 MB / 0.6202 GB, free: 73.29 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/1.324, allocations: 8.031 kB / 0.6202 GB, free: 73.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03436/1.358, allocations: 6.675 MB / 0.6267 GB, free: 66.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02346/1.381, allocations: 8.387 MB / 0.6349 GB, free: 58.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006237/1.382, allocations: 0.5255 MB / 0.6354 GB, free: 57.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003338/1.385, allocations: 0.7028 MB / 0.6361 GB, free: 56.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04807/1.434, allocations: 18.66 MB / 0.6543 GB, free: 36.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003566/1.434, allocations: 91.2 kB / 0.6544 GB, free: 36.81 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002806/1.437, allocations: 335.8 kB / 0.6547 GB, free: 36.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002953/1.44, allocations: 1.715 MB / 0.6564 GB, free: 34.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04151/1.481, allocations: 16.21 MB / 0.6722 GB, free: 18.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7776/2.259, allocations: 74.1 MB / 0.7446 GB, free: 46.61 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02063/2.28, allocations: 6.108 MB / 0.7506 GB, free: 45.36 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00516/2.285, allocations: 2.711 MB / 0.7532 GB, free: 45.3 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02984/2.315, allocations: 13.92 MB / 0.7668 GB, free: 40.96 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/2.315, allocations: 58.16 kB / 0.7669 GB, free: 40.93 MB / 474.8 MB Notification: Performance of pre-optimization done (n=284): time 7.283e-06/2.315, allocations: 3.656 kB / 0.7669 GB, free: 40.93 MB / 474.8 MB Notification: Performance of matching and sorting (n=344): time 0.07969/2.395, allocations: 19.28 MB / 0.7857 GB, free: 36.9 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/2.395, allocations: 186.5 kB / 0.7859 GB, free: 36.71 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/2.406, allocations: 5.152 MB / 0.7909 GB, free: 35.8 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000615/2.406, allocations: 77.16 kB / 0.791 GB, free: 35.73 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003645/2.41, allocations: 4.85 MB / 0.7957 GB, free: 31.92 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001619/2.412, allocations: 1.276 MB / 0.797 GB, free: 30.98 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/2.413, allocations: 187.4 kB / 0.7971 GB, free: 30.84 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001002/2.414, allocations: 0.7115 MB / 0.7978 GB, free: 30.36 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007144/2.421, allocations: 3.14 MB / 0.8009 GB, free: 29.28 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/2.431, allocations: 8.584 MB / 0.8093 GB, free: 20.92 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/2.441, allocations: 5.195 MB / 0.8144 GB, free: 19.36 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/2.442, allocations: 54.97 kB / 0.8144 GB, free: 19.36 MB / 474.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03142/2.473, allocations: 12.32 MB / 0.8264 GB, free: 15.5 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/2.473, allocations: 92.78 kB / 0.8265 GB, free: 15.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000218/2.474, allocations: 189.5 kB / 0.8267 GB, free: 15.5 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005912/2.479, allocations: 1.317 MB / 0.828 GB, free: 15.18 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009367/2.489, allocations: 2.173 MB / 0.8301 GB, free: 13.29 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/2.502, allocations: 7.115 MB / 0.8371 GB, free: 6.906 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0093/2.511, allocations: 0.5528 MB / 0.8376 GB, free: 6.434 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001851/2.513, allocations: 0.5516 MB / 0.8381 GB, free: 5.887 MB / 474.8 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.002296/2.516, allocations: 0.8008 MB / 0.8389 GB, free: 5.082 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/2.517, allocations: 0.5279 MB / 0.8394 GB, free: 4.551 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/2.531, allocations: 5.272 MB / 0.8446 GB, free: 144 kB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.466e-05/2.531, allocations: 37.25 kB / 0.8446 GB, free: 108 kB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/2.531, allocations: 8 kB / 0.8446 GB, free: 100 kB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-05/2.531, allocations: 15.38 kB / 0.8446 GB, free: 100 kB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04031/2.571, allocations: 14.04 MB / 0.8584 GB, free: 4.359 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.936e-05/2.571, allocations: 12 kB / 0.8584 GB, free: 4.348 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003218/2.574, allocations: 0.5339 MB / 0.8589 GB, free: 3.914 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004786/2.579, allocations: 0.9194 MB / 0.8598 GB, free: 3.254 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006307/2.58, allocations: 68 kB / 0.8599 GB, free: 3.188 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/2.593, allocations: 5.466 MB / 0.8652 GB, free: 14.43 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.373e-05/2.593, allocations: 19.89 kB / 0.8652 GB, free: 14.41 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02141/2.615, allocations: 10.13 MB / 0.8751 GB, free: 4.645 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003423/2.618, allocations: 0.9479 MB / 0.876 GB, free: 3.746 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/2.62, allocations: 64.08 kB / 0.8761 GB, free: 3.688 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003983/2.624, allocations: 189.3 kB / 0.8763 GB, free: 3.562 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009179/2.625, allocations: 229.7 kB / 0.8765 GB, free: 3.406 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003454/2.625, allocations: 103.4 kB / 0.8766 GB, free: 3.309 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009439/2.635, allocations: 3.553 MB / 0.8801 GB, free: 212 kB / 0.4949 GB Notification: Performance of sort global known variables: time 1.235e-06/2.635, allocations: 0 / 0.8801 GB, free: 212 kB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01336/2.648, allocations: 1.758 MB / 0.8818 GB, free: 14.8 MB / 0.5105 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 (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.001161/2.649, allocations: 275.9 kB / 0.882 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01733/2.666, allocations: 7.611 MB / 0.8895 GB, free: 7.535 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/2.667, allocations: 4.062 kB / 0.8895 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005656/2.672, allocations: 2.356 MB / 0.8918 GB, free: 5.359 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004592/2.677, allocations: 0.6305 MB / 0.8924 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3223/2.999, allocations: 13.47 MB / 0.9055 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/3.013, allocations: 5.32 MB / 0.9107 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002225/3.015, allocations: 448.7 kB / 0.9112 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.916e-06/3.015, allocations: 0 / 0.9112 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.1779/3.193, allocations: 121.2 MB / 1.03 GB, free: 63.17 MB / 0.5105 GB