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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.949/1.949, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.921e-05/1.938e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 48.68 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1557/0.4202, allocations: 102.1 MB / 422.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4205, allocations: 75.97 kB / 422.1 MB, free: 10.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7706/1.191, allocations: 151.2 MB / 0.5599 GB, free: 216 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.229e-06/1.191, allocations: 0 / 0.5599 GB, free: 216 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003478/1.192, allocations: 139.9 kB / 0.56 GB, free: 76 kB / 378.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.02265/1.214, allocations: 6.534 MB / 0.5664 GB, free: 9.457 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/1.214, allocations: 8.031 kB / 0.5664 GB, free: 9.449 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03753/1.252, allocations: 6.683 MB / 0.573 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02665/1.278, allocations: 8.37 MB / 0.5811 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005303/1.279, allocations: 228 kB / 0.5813 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003275/1.282, allocations: 431.8 kB / 0.5818 GB, free: 9.668 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5297/1.812, allocations: 11.65 MB / 0.5931 GB, free: 62.52 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03464/1.847, allocations: 15.88 MB / 0.6086 GB, free: 58.95 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004181/1.847, allocations: 83.38 kB / 0.6087 GB, free: 58.95 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00286/1.85, allocations: 41.91 kB / 0.6088 GB, free: 58.95 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003009/1.853, allocations: 1.72 MB / 0.6104 GB, free: 58.94 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1129/1.966, allocations: 70.77 MB / 0.6795 GB, free: 16.22 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007118/1.973, allocations: 4.666 MB / 0.6841 GB, free: 13.64 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004811/1.978, allocations: 2.667 MB / 0.6867 GB, free: 12.58 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03013/2.008, allocations: 13.71 MB / 0.7001 GB, free: 5.254 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/2.008, allocations: 62.44 kB / 0.7002 GB, free: 5.199 MB / 410.8 MB Notification: Performance of pre-optimization done (n=286): time 8.689e-06/2.008, allocations: 0 / 0.7002 GB, free: 5.199 MB / 410.8 MB Notification: Performance of matching and sorting (n=346): time 0.06446/2.073, allocations: 18 MB / 0.7177 GB, free: 11.86 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/2.073, allocations: 188.3 kB / 0.7179 GB, free: 11.64 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01088/2.084, allocations: 4.595 MB / 0.7224 GB, free: 7.629 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005864/2.085, allocations: 28.11 kB / 0.7224 GB, free: 7.598 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005083/2.09, allocations: 4.997 MB / 0.7273 GB, free: 3.035 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001904/2.092, allocations: 1.25 MB / 0.7285 GB, free: 1.91 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009206/2.093, allocations: 3.938 kB / 0.7285 GB, free: 1.906 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000968/2.094, allocations: 0.7311 MB / 0.7292 GB, free: 1.285 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01777/2.111, allocations: 3.643 MB / 0.7328 GB, free: 0 / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01311/2.125, allocations: 8.731 MB / 0.7413 GB, free: 5.105 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/2.137, allocations: 5.292 MB / 0.7465 GB, free: 0.6641 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002067/2.138, allocations: 60 kB / 0.7466 GB, free: 0.6055 MB / 442.8 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.04062/2.178, allocations: 11.91 MB / 0.7582 GB, free: 7.414 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001869/2.179, allocations: 92 kB / 0.7583 GB, free: 7.324 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003095/2.179, allocations: 204 kB / 0.7585 GB, free: 7.125 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005754/2.185, allocations: 1.315 MB / 0.7598 GB, free: 6.098 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009766/2.195, allocations: 2.263 MB / 0.762 GB, free: 4.121 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.289/2.484, allocations: 6.861 MB / 0.7687 GB, free: 95.29 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009002/2.493, allocations: 384 kB / 0.769 GB, free: 95.29 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002062/2.495, allocations: 0.57 MB / 0.7696 GB, free: 95.29 MB / 458.8 MB 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.002439/2.497, allocations: 0.6013 MB / 0.7702 GB, free: 95.18 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/2.498, allocations: 0.4985 MB / 0.7707 GB, free: 95.18 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01363/2.512, allocations: 5.036 MB / 0.7756 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-05/2.512, allocations: 36.98 kB / 0.7756 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.283e-05/2.512, allocations: 6.906 kB / 0.7756 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-05/2.512, allocations: 14.25 kB / 0.7756 GB, free: 94.97 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03729/2.549, allocations: 12.24 MB / 0.7876 GB, free: 93.65 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.264e-05/2.55, allocations: 14.25 kB / 0.7876 GB, free: 93.65 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003122/2.553, allocations: 0.5193 MB / 0.7881 GB, free: 93.65 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005555/2.558, allocations: 0.8641 MB / 0.789 GB, free: 93.63 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007827/2.559, allocations: 25.58 kB / 0.789 GB, free: 93.63 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/2.575, allocations: 5.152 MB / 0.794 GB, free: 92.42 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.669e-05/2.576, allocations: 15.16 kB / 0.794 GB, free: 92.42 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01845/2.594, allocations: 9.78 MB / 0.8036 GB, free: 89.55 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002665/2.597, allocations: 0.9034 MB / 0.8045 GB, free: 89.31 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009426/2.598, allocations: 23.12 kB / 0.8045 GB, free: 89.3 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/2.601, allocations: 129.4 kB / 0.8046 GB, free: 89.3 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005589/2.601, allocations: 218.4 kB / 0.8048 GB, free: 89.29 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003088/2.602, allocations: 102.9 kB / 0.8049 GB, free: 89.29 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006024/2.608, allocations: 3.045 MB / 0.8079 GB, free: 89.11 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.384e-06/2.608, allocations: 0 / 0.8079 GB, free: 89.11 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01026/2.618, allocations: 1.423 MB / 0.8093 GB, free: 89.11 MB / 458.8 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 (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.0009454/2.619, allocations: 223.5 kB / 0.8095 GB, free: 89.03 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01418/2.633, allocations: 7.275 MB / 0.8166 GB, free: 88.14 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/2.633, allocations: 2.438 kB / 0.8166 GB, free: 88.14 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004597/2.638, allocations: 2.272 MB / 0.8188 GB, free: 87.27 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/2.642, allocations: 0.5175 MB / 0.8193 GB, free: 87.06 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03111/2.673, allocations: 13.32 MB / 0.8323 GB, free: 81.93 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01128/2.684, allocations: 5.317 MB / 0.8375 GB, free: 80.2 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/2.686, allocations: 442.4 kB / 0.8379 GB, free: 80.18 MB / 458.8 MB Notification: Performance of SimCode: time 1.753e-06/2.686, allocations: 0 / 0.8379 GB, free: 80.18 MB / 458.8 MB Notification: Performance of Templates: time 0.4613/3.147, allocations: 118.3 MB / 0.9534 GB, free: 96.86 MB / 458.8 MB