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.105/2.105, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004426/0.0004427, allocations: 8 kB / 314.4 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.276, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.4257, allocations: 99.85 MB / 469.1 MB, free: 6.684 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.426, allocations: 79.95 kB / 469.2 MB, free: 6.605 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5107/0.9367, allocations: 76.34 MB / 0.5328 GB, free: 39.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.26e-06/0.9368, allocations: 0 / 0.5328 GB, free: 39.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000191/0.937, allocations: 72 kB / 0.5328 GB, free: 39.29 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: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.01118/0.9482, allocations: 3.841 MB / 0.5366 GB, free: 35.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.9482, allocations: 16.02 kB / 0.5366 GB, free: 35.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02133/0.9696, allocations: 4.312 MB / 0.5408 GB, free: 31.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.9825, allocations: 4.483 MB / 0.5452 GB, free: 26.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002894/0.9829, allocations: 291 kB / 0.5455 GB, free: 26.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/0.9844, allocations: 359.8 kB / 0.5458 GB, free: 25.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/1.003, allocations: 9.139 MB / 0.5547 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001887/1.003, allocations: 59.45 kB / 0.5548 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009061/1.004, allocations: 183.9 kB / 0.555 GB, free: 15.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/1.006, allocations: 0.8882 MB / 0.5558 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/1.022, allocations: 7.314 MB / 0.563 GB, free: 7.266 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05898/1.081, allocations: 44.06 MB / 0.606 GB, free: 9.641 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/1.093, allocations: 3.501 MB / 0.6094 GB, free: 5.996 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01593/1.109, allocations: 7.182 MB / 0.6164 GB, free: 14.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/1.109, allocations: 63.5 kB / 0.6165 GB, free: 14.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 5.6e-06/1.109, allocations: 0 / 0.6165 GB, free: 14.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=184): time 0.08141/1.19, allocations: 19.6 MB / 0.6356 GB, free: 10.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/1.191, allocations: 201.2 kB / 0.6358 GB, free: 10.46 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00683/1.197, allocations: 3.296 MB / 0.639 GB, free: 7.172 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00034/1.198, allocations: 49.7 kB / 0.6391 GB, free: 7.117 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002717/1.201, allocations: 2.76 MB / 0.6418 GB, free: 4.32 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.202, allocations: 0.7058 MB / 0.6425 GB, free: 3.605 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004516/1.202, allocations: 116 kB / 0.6426 GB, free: 3.492 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005324/1.203, allocations: 0.5546 MB / 0.6431 GB, free: 2.926 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004541/1.207, allocations: 2.002 MB / 0.6451 GB, free: 0.918 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.274/1.481, allocations: 5.525 MB / 0.6505 GB, free: 119.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006779/1.488, allocations: 3.257 MB / 0.6537 GB, free: 119.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001968/1.488, allocations: 38.47 kB / 0.6537 GB, free: 119.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02488/1.513, allocations: 9.013 MB / 0.6625 GB, free: 118.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/1.513, allocations: 59.38 kB / 0.6625 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/1.513, allocations: 129 kB / 0.6627 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007073/1.521, allocations: 1.587 MB / 0.6642 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005264/1.526, allocations: 1.284 MB / 0.6655 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02004/1.546, allocations: 9.562 MB / 0.6748 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005599/1.552, allocations: 313.9 kB / 0.6751 GB, free: 117.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00122/1.553, allocations: 362.3 kB / 0.6755 GB, free: 117.1 MB / 474.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 () * Number of clocked 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.004358/1.557, allocations: 1.887 MB / 0.6773 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006828/1.558, allocations: 328.8 kB / 0.6776 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.57, allocations: 3.938 MB / 0.6815 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.467e-05/1.57, allocations: 19.78 kB / 0.6815 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/1.57, allocations: 11.83 kB / 0.6815 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-05/1.57, allocations: 14.48 kB / 0.6815 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02144/1.592, allocations: 8.117 MB / 0.6894 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.522e-05/1.592, allocations: 3.812 kB / 0.6894 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/1.593, allocations: 238.1 kB / 0.6897 GB, free: 112.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006581/1.6, allocations: 1.28 MB / 0.6909 GB, free: 112.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003531/1.6, allocations: 34.12 kB / 0.6909 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01659/1.617, allocations: 7.826 MB / 0.6986 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/1.617, allocations: 0 / 0.6986 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/1.632, allocations: 6.328 MB / 0.7048 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.633, allocations: 0.6011 MB / 0.7054 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005492/1.634, allocations: 28 kB / 0.7054 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/1.635, allocations: 90.09 kB / 0.7055 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/1.636, allocations: 115.1 kB / 0.7056 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/1.636, allocations: 48.64 kB / 0.7056 GB, free: 104.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004003/1.64, allocations: 2.294 MB / 0.7079 GB, free: 102.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.144e-06/1.64, allocations: 0 / 0.7079 GB, free: 102.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006022/1.646, allocations: 0.9712 MB / 0.7088 GB, free: 101.9 MB / 474.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 () * Number of clocked 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.0004923/1.647, allocations: 174.2 kB / 0.709 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009154/1.656, allocations: 4.995 MB / 0.7139 GB, free: 97.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/1.656, allocations: 0 / 0.7139 GB, free: 97.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/1.659, allocations: 1.633 MB / 0.7154 GB, free: 95.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/1.661, allocations: 367 kB / 0.7158 GB, free: 95.53 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.679, allocations: 10.09 MB / 0.7257 GB, free: 86.37 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004637/1.683, allocations: 3.037 MB / 0.7286 GB, free: 84.04 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/1.684, allocations: 269 kB / 0.7289 GB, free: 83.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.504e-06/1.684, allocations: 0 / 0.7289 GB, free: 83.79 MB / 474.7 MB Notification: Performance of Templates: time 0.09595/1.78, allocations: 66.67 MB / 0.794 GB, free: 21.03 MB / 474.7 MB