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.JointUSR.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.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadModel(ModelicaTest): time 2.244/2.244, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.56e-05/1.574e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2717, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2073/0.4791, allocations: 110.1 MB / 468.2 MB, free: 0.6484 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4794, allocations: 75.97 kB / 468.2 MB, free: 0.5742 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8251/1.304, allocations: 168.7 MB / 0.622 GB, free: 8.664 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.882e-06/1.304, allocations: 0 / 0.622 GB, free: 8.664 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004566/1.305, allocations: 148 kB / 0.6221 GB, free: 8.52 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.02718/1.332, allocations: 7.678 MB / 0.6296 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/1.332, allocations: 12.03 kB / 0.6296 GB, free: 0.75 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3217/1.654, allocations: 6.947 MB / 0.6364 GB, free: 68.44 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02779/1.682, allocations: 9.822 MB / 0.646 GB, free: 68.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004807/1.682, allocations: 250.1 kB / 0.6463 GB, free: 68.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003615/1.686, allocations: 461.6 kB / 0.6467 GB, free: 68.01 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02665/1.713, allocations: 13.14 MB / 0.6595 GB, free: 67.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03873/1.751, allocations: 17.61 MB / 0.6767 GB, free: 64.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004574/1.752, allocations: 95.06 kB / 0.6768 GB, free: 64.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00307/1.755, allocations: 49.47 kB / 0.6769 GB, free: 64.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003509/1.758, allocations: 1.952 MB / 0.6788 GB, free: 64.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1114/1.87, allocations: 78.92 MB / 0.7558 GB, free: 11.19 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0132/1.883, allocations: 5.981 MB / 0.7617 GB, free: 5.449 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0121/1.895, allocations: 3.87 MB / 0.7655 GB, free: 1.898 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07341/1.969, allocations: 17.96 MB / 0.783 GB, free: 2.191 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.434e-05/1.969, allocations: 68.3 kB / 0.7831 GB, free: 2.117 MB / 474.7 MB Notification: Performance of pre-optimization done (n=334): time 8.873e-06/1.969, allocations: 0 / 0.7831 GB, free: 2.117 MB / 474.7 MB Notification: Performance of matching and sorting (n=426): time 0.09485/2.064, allocations: 26.46 MB / 0.8089 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/2.064, allocations: 193 kB / 0.8091 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/2.076, allocations: 5.066 MB / 0.814 GB, free: 6.699 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007485/2.077, allocations: 28.8 kB / 0.8141 GB, free: 6.668 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005773/2.083, allocations: 5.389 MB / 0.8193 GB, free: 1.742 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00242/2.085, allocations: 1.521 MB / 0.8208 GB, free: 380 kB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/2.086, allocations: 0 / 0.8208 GB, free: 380 kB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.2903/2.377, allocations: 0.7746 MB / 0.8216 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009809/2.386, allocations: 3.962 MB / 0.8254 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01203/2.398, allocations: 10.02 MB / 0.8352 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01391/2.412, allocations: 6.398 MB / 0.8415 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002149/2.413, allocations: 59 kB / 0.8415 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.04052/2.453, allocations: 14.68 MB / 0.8559 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001843/2.453, allocations: 99.5 kB / 0.856 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002665/2.454, allocations: 212.1 kB / 0.8562 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/2.464, allocations: 2.304 MB / 0.8584 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01123/2.475, allocations: 2.541 MB / 0.8609 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02301/2.498, allocations: 11.14 MB / 0.8718 GB, free: 98.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/2.509, allocations: 497.7 kB / 0.8723 GB, free: 98.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002377/2.512, allocations: 0.6095 MB / 0.8729 GB, free: 98.96 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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 (1330): * Single equations (assignments): 1323 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003053/2.515, allocations: 0.6318 MB / 0.8735 GB, free: 98.64 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001272/2.516, allocations: 0.5641 MB / 0.874 GB, free: 98.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02235/2.538, allocations: 7.95 MB / 0.8818 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000118/2.539, allocations: 65.2 kB / 0.8818 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.416e-05/2.539, allocations: 10.22 kB / 0.8819 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.82e-05/2.539, allocations: 22.08 kB / 0.8819 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04604/2.585, allocations: 17.16 MB / 0.8986 GB, free: 91.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.182e-05/2.585, allocations: 15.39 kB / 0.8986 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004117/2.589, allocations: 0.6512 MB / 0.8993 GB, free: 91.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009161/2.598, allocations: 1.806 MB / 0.901 GB, free: 91.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000757/2.599, allocations: 25.16 kB / 0.9011 GB, free: 91.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01932/2.618, allocations: 9.398 MB / 0.9102 GB, free: 86.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.842e-05/2.618, allocations: 18.94 kB / 0.9103 GB, free: 86.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02657/2.645, allocations: 14 MB / 0.9239 GB, free: 76.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003514/2.649, allocations: 1.137 MB / 0.9251 GB, free: 75.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001643/2.65, allocations: 19.66 kB / 0.9251 GB, free: 75.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004555/2.655, allocations: 192.3 kB / 0.9253 GB, free: 74.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001121/2.656, allocations: 268 kB / 0.9255 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004576/2.656, allocations: 115.4 kB / 0.9256 GB, free: 74.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007746/2.664, allocations: 3.362 MB / 0.9289 GB, free: 71.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.41e-06/2.664, allocations: 0 / 0.9289 GB, free: 71.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01201/2.676, allocations: 1.684 MB / 0.9305 GB, free: 70.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (337): * Single equations (assignments): 330 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001142/2.677, allocations: 221.2 kB / 0.9308 GB, free: 69.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01707/2.695, allocations: 9.375 MB / 0.9399 GB, free: 61.36 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/2.695, allocations: 4 kB / 0.9399 GB, free: 61.36 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006038/2.701, allocations: 3.256 MB / 0.9431 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004293/2.705, allocations: 0.572 MB / 0.9437 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0354/2.74, allocations: 15.52 MB / 0.9588 GB, free: 43.89 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/2.753, allocations: 5.771 MB / 0.9644 GB, free: 39.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002428/2.756, allocations: 489.9 kB / 0.9649 GB, free: 39.18 MB / 0.4948 GB Notification: Performance of SimCode: time 1.815e-06/2.756, allocations: 0 / 0.9649 GB, free: 39.18 MB / 0.4948 GB Notification: Performance of Templates: time 0.5006/3.256, allocations: 133.1 MB / 1.095 GB, free: 67.07 MB / 0.4948 GB