Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 2.151/2.151, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004359, allocations: 16 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3668, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1763/0.5431, allocations: 94.32 MB / 426.1 MB, free: 84 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.5435, allocations: 83.95 kB / 426.2 MB, free: 0 / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8579/1.401, allocations: 103.9 MB / 0.5177 GB, free: 79.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.401, allocations: 0 / 0.5177 GB, free: 79.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003719/1.402, allocations: 106.6 kB / 0.5178 GB, free: 78.94 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1723 * Number of variables: 1723 Notification: Performance of Generate backend data structure: time 0.02341/1.425, allocations: 5.685 MB / 0.5233 GB, free: 73.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/1.425, allocations: 16.02 kB / 0.5233 GB, free: 73.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04971/1.475, allocations: 6.873 MB / 0.53 GB, free: 66.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03667/1.512, allocations: 7.514 MB / 0.5374 GB, free: 58.81 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006856/1.513, allocations: 375.3 kB / 0.5377 GB, free: 58.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003541/1.516, allocations: 0.4893 MB / 0.5382 GB, free: 58.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05047/1.567, allocations: 12.36 MB / 0.5503 GB, free: 44.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006286/1.567, allocations: 67.41 kB / 0.5504 GB, free: 44.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003363/1.571, allocations: 239.9 kB / 0.5506 GB, free: 44.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003305/1.574, allocations: 1.148 MB / 0.5517 GB, free: 43.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04429/1.618, allocations: 10.27 MB / 0.5617 GB, free: 32.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1181/1.737, allocations: 55.56 MB / 0.616 GB, free: 7.555 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02684/1.764, allocations: 5.712 MB / 0.6216 GB, free: 1.688 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3387/2.102, allocations: 8.788 MB / 0.6302 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/2.102, allocations: 59.83 kB / 0.6302 GB, free: 103.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=206): time 6.162e-06/2.102, allocations: 1.125 kB / 0.6302 GB, free: 103.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.2424/2.345, allocations: 36.61 MB / 0.666 GB, free: 98.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/2.345, allocations: 212.2 kB / 0.6662 GB, free: 98.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0155/2.361, allocations: 4.734 MB / 0.6708 GB, free: 96.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007746/2.361, allocations: 64.27 kB / 0.6709 GB, free: 96.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003023/2.365, allocations: 3.432 MB / 0.6742 GB, free: 94.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/2.366, allocations: 0.9743 MB / 0.6752 GB, free: 93.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008814/2.367, allocations: 135.8 kB / 0.6753 GB, free: 93.22 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000408/2.368, allocations: 0.5922 MB / 0.6759 GB, free: 92.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007156/2.375, allocations: 2.999 MB / 0.6788 GB, free: 91.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00978/2.385, allocations: 6.818 MB / 0.6854 GB, free: 84.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/2.395, allocations: 4.428 MB / 0.6898 GB, free: 80.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001482/2.395, allocations: 40 kB / 0.6898 GB, free: 80.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.04155/2.436, allocations: 12.84 MB / 0.7024 GB, free: 70.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.346e-05/2.437, allocations: 64 kB / 0.7024 GB, free: 70.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001472/2.437, allocations: 132 kB / 0.7025 GB, free: 70.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02018/2.457, allocations: 4.082 MB / 0.7065 GB, free: 67.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008213/2.465, allocations: 1.406 MB / 0.7079 GB, free: 65.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05686/2.522, allocations: 26.87 MB / 0.7341 GB, free: 39.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009973/2.532, allocations: 395.3 kB / 0.7345 GB, free: 39.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002072/2.534, allocations: 400.6 kB / 0.7349 GB, free: 38.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (760): * Single equations (assignments): 754 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.009589/2.544, allocations: 2.471 MB / 0.7373 GB, free: 36.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/2.546, allocations: 446.3 kB / 0.7377 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03855/2.584, allocations: 8.097 MB / 0.7456 GB, free: 27.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.088e-05/2.584, allocations: 28.55 kB / 0.7457 GB, free: 27.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.692e-05/2.584, allocations: 15.17 kB / 0.7457 GB, free: 27.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.176e-05/2.585, allocations: 11.95 kB / 0.7457 GB, free: 27.81 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06096/2.646, allocations: 16.67 MB / 0.762 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.73e-05/2.646, allocations: 7.719 kB / 0.762 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002837/2.648, allocations: 299.1 kB / 0.7623 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01944/2.668, allocations: 3.766 MB / 0.7659 GB, free: 6.973 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007287/2.669, allocations: 48 kB / 0.766 GB, free: 6.926 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3899/3.059, allocations: 25.62 MB / 0.791 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/3.059, allocations: 15.16 kB / 0.791 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03827/3.097, allocations: 11.94 MB / 0.8027 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003817/3.101, allocations: 0.9467 MB / 0.8036 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002085/3.103, allocations: 52.03 kB / 0.8037 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005058/3.108, allocations: 157.7 kB / 0.8038 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00136/3.11, allocations: 200 kB / 0.804 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004087/3.11, allocations: 70.72 kB / 0.8041 GB, free: 104.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008267/3.118, allocations: 2.985 MB / 0.807 GB, free: 103.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.31e-07/3.118, allocations: 0 / 0.807 GB, free: 103.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01021/3.129, allocations: 1.431 MB / 0.8084 GB, free: 103.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (161): * Single equations (assignments): 155 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001328/3.13, allocations: 190.8 kB / 0.8086 GB, free: 103.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02188/3.152, allocations: 8.121 MB / 0.8165 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/3.152, allocations: 3.188 kB / 0.8165 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01008/3.162, allocations: 3.475 MB / 0.8199 GB, free: 99.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005378/3.167, allocations: 0.5498 MB / 0.8204 GB, free: 98.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03676/3.204, allocations: 14.96 MB / 0.835 GB, free: 91.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009988/3.214, allocations: 4.04 MB / 0.839 GB, free: 90.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/3.216, allocations: 327.3 kB / 0.8393 GB, free: 90.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/3.216, allocations: 3.938 kB / 0.8393 GB, free: 90.02 MB / 442.7 MB Notification: Performance of Templates: time 0.6384/3.855, allocations: 134.9 MB / 0.971 GB, free: 122.2 MB / 458.7 MB