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.Forces.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.264/2.264, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.398e-05/4.425e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3892, allocations: 54.86 MB / 364.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.5388, allocations: 99.77 MB / 464.3 MB, free: 12.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.5391, allocations: 75.95 kB / 464.4 MB, free: 12.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6065/1.146, allocations: 76.38 MB / 0.5281 GB, free: 107.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.582e-06/1.146, allocations: 0.625 kB / 0.5281 GB, free: 107.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005738/1.146, allocations: 67.19 kB / 0.5282 GB, free: 107.9 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: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.02237/1.169, allocations: 3.576 MB / 0.5316 GB, free: 107.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.914e-05/1.169, allocations: 14.5 kB / 0.5317 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05551/1.224, allocations: 4.323 MB / 0.5359 GB, free: 107 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/1.239, allocations: 4.461 MB / 0.5402 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003757/1.239, allocations: 274.7 kB / 0.5405 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001632/1.241, allocations: 368.9 kB / 0.5409 GB, free: 106.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02124/1.262, allocations: 9.077 MB / 0.5497 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/1.262, allocations: 61.02 kB / 0.5498 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001065/1.264, allocations: 181.9 kB / 0.5499 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001413/1.265, allocations: 0.8793 MB / 0.5508 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01734/1.282, allocations: 7.212 MB / 0.5579 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04756/1.33, allocations: 44.07 MB / 0.6009 GB, free: 69.69 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/1.341, allocations: 3.483 MB / 0.6043 GB, free: 68.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/1.344, allocations: 1.579 MB / 0.6058 GB, free: 67.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01349/1.357, allocations: 7.194 MB / 0.6129 GB, free: 63.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/1.357, allocations: 54 kB / 0.6129 GB, free: 63.54 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 5.795e-06/1.357, allocations: 0 / 0.6129 GB, free: 63.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=184): time 0.06599/1.423, allocations: 17.05 MB / 0.6296 GB, free: 53.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/1.423, allocations: 209.2 kB / 0.6298 GB, free: 53.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006104/1.43, allocations: 3.268 MB / 0.6329 GB, free: 50.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003344/1.43, allocations: 57.61 kB / 0.633 GB, free: 50.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001813/1.432, allocations: 2.761 MB / 0.6357 GB, free: 47.85 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008164/1.433, allocations: 0.6995 MB / 0.6364 GB, free: 47.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000518/1.433, allocations: 116 kB / 0.6365 GB, free: 47.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003759/1.434, allocations: 0.5604 MB / 0.637 GB, free: 46.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003963/1.438, allocations: 1.937 MB / 0.6389 GB, free: 44.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005983/1.444, allocations: 5.469 MB / 0.6443 GB, free: 37.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005952/1.45, allocations: 3.242 MB / 0.6474 GB, free: 35.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-05/1.45, allocations: 36 kB / 0.6475 GB, free: 35.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02255/1.472, allocations: 8.826 MB / 0.6561 GB, free: 27.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.958e-05/1.472, allocations: 67.98 kB / 0.6562 GB, free: 27.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/1.473, allocations: 124 kB / 0.6563 GB, free: 27.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00658/1.479, allocations: 1.542 MB / 0.6578 GB, free: 25.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005131/1.484, allocations: 1.283 MB / 0.659 GB, free: 24.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01719/1.502, allocations: 8.948 MB / 0.6678 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/1.507, allocations: 315.5 kB / 0.6681 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001119/1.508, allocations: 360 kB / 0.6684 GB, free: 14.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 687 * 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: 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 prepare postOptimizeDAE: time 0.001255/1.51, allocations: 0.5427 MB / 0.6689 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007137/1.51, allocations: 331.7 kB / 0.6693 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.521, allocations: 3.805 MB / 0.673 GB, free: 9.844 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.716e-05/1.521, allocations: 24 kB / 0.673 GB, free: 9.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/1.521, allocations: 8 kB / 0.673 GB, free: 9.812 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-05/1.521, allocations: 7.969 kB / 0.673 GB, free: 9.805 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02118/1.543, allocations: 8.002 MB / 0.6808 GB, free: 1.781 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/1.543, allocations: 4 kB / 0.6808 GB, free: 1.777 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/1.544, allocations: 247.5 kB / 0.6811 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005754/1.55, allocations: 1.224 MB / 0.6823 GB, free: 316 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000326/1.55, allocations: 31.67 kB / 0.6823 GB, free: 288 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01656/1.567, allocations: 7.287 MB / 0.6894 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.567, allocations: 0 / 0.6894 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/1.583, allocations: 6.159 MB / 0.6954 GB, free: 2.676 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002036/1.586, allocations: 0.5981 MB / 0.696 GB, free: 2.059 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007963/1.586, allocations: 28 kB / 0.696 GB, free: 2.031 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002425/1.589, allocations: 103.9 kB / 0.6961 GB, free: 1.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005023/1.589, allocations: 101.2 kB / 0.6962 GB, free: 1.832 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/1.59, allocations: 47.98 kB / 0.6963 GB, free: 1.785 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005662/1.595, allocations: 2.265 MB / 0.6985 GB, free: 15.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.034e-06/1.595, allocations: 0 / 0.6985 GB, free: 15.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006745/1.602, allocations: 0.9648 MB / 0.6994 GB, free: 14.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006365/1.603, allocations: 178.8 kB / 0.6996 GB, free: 14.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01092/1.614, allocations: 4.892 MB / 0.7044 GB, free: 9.504 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/1.614, allocations: 1 kB / 0.7044 GB, free: 9.504 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003482/1.617, allocations: 1.581 MB / 0.7059 GB, free: 7.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/1.62, allocations: 365 kB / 0.7063 GB, free: 7.559 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/1.638, allocations: 7.188 MB / 0.7133 GB, free: 336 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2716/1.91, allocations: 3.036 MB / 0.7163 GB, free: 123.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/1.911, allocations: 268.4 kB / 0.7165 GB, free: 123.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.237e-06/1.911, allocations: 0 / 0.7165 GB, free: 123.8 MB / 490.7 MB Notification: Performance of Templates: time 0.1028/2.014, allocations: 66.65 MB / 0.7816 GB, free: 108.4 MB / 490.7 MB