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.Forces.ForceWithTwoMasses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 1.831/1.831, allocations: 209.3 MB / 224.9 MB, free: 1.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007399/0.0007402, allocations: 8 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.092/0.09277, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4028/0.4956, allocations: 93.04 MB / 424.3 MB, free: 8.098 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.4959, allocations: 78.67 kB / 424.4 MB, free: 8.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5235/1.019, allocations: 76.27 MB / 0.4889 GB, free: 89.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.126e-06/1.019, allocations: 0 / 0.4889 GB, free: 89.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002031/1.02, allocations: 68.14 kB / 0.489 GB, free: 89.34 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1314 * Number of variables: 1314 Notification: Performance of Generate backend data structure: time 0.01192/1.032, allocations: 3.841 MB / 0.4927 GB, free: 87.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/1.032, allocations: 8.344 kB / 0.4928 GB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0229/1.055, allocations: 4.323 MB / 0.497 GB, free: 87.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/1.068, allocations: 4.485 MB / 0.5014 GB, free: 86.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003144/1.069, allocations: 276.7 kB / 0.5016 GB, free: 86.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001313/1.07, allocations: 365.8 kB / 0.502 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01937/1.089, allocations: 9.138 MB / 0.5109 GB, free: 84.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001899/1.09, allocations: 59.86 kB / 0.5109 GB, free: 84.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008786/1.091, allocations: 179.9 kB / 0.5111 GB, free: 84.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001368/1.092, allocations: 0.8804 MB / 0.512 GB, free: 84.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/1.109, allocations: 7.316 MB / 0.5191 GB, free: 84.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04544/1.155, allocations: 44.04 MB / 0.5621 GB, free: 49.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/1.166, allocations: 3.508 MB / 0.5656 GB, free: 48.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0134/1.179, allocations: 7.198 MB / 0.5726 GB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/1.179, allocations: 53.19 kB / 0.5726 GB, free: 44.26 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 5.639e-06/1.179, allocations: 0 / 0.5726 GB, free: 44.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=184): time 0.08049/1.26, allocations: 19.6 MB / 0.5918 GB, free: 32.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/1.26, allocations: 201.2 kB / 0.592 GB, free: 32.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006058/1.266, allocations: 3.295 MB / 0.5952 GB, free: 29.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003449/1.266, allocations: 53.7 kB / 0.5952 GB, free: 29.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001831/1.268, allocations: 2.761 MB / 0.5979 GB, free: 26.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007947/1.269, allocations: 0.7056 MB / 0.5986 GB, free: 26.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004727/1.27, allocations: 116 kB / 0.5987 GB, free: 25.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003324/1.27, allocations: 0.5534 MB / 0.5993 GB, free: 25.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003878/1.274, allocations: 2 MB / 0.6012 GB, free: 23.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005818/1.28, allocations: 5.532 MB / 0.6066 GB, free: 16.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005812/1.286, allocations: 3.265 MB / 0.6098 GB, free: 13.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.492e-05/1.286, allocations: 32 kB / 0.6099 GB, free: 13.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02298/1.309, allocations: 9.015 MB / 0.6187 GB, free: 4.668 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.629e-05/1.309, allocations: 56 kB / 0.6187 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/1.309, allocations: 128.2 kB / 0.6188 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006879/1.316, allocations: 1.597 MB / 0.6204 GB, free: 2.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005107/1.321, allocations: 1.29 MB / 0.6217 GB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02216/1.343, allocations: 9.552 MB / 0.631 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005702/1.349, allocations: 315.5 kB / 0.6313 GB, free: 7.609 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.35, allocations: 360 kB / 0.6316 GB, free: 7.258 MB / 426.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.005067/1.355, allocations: 1.884 MB / 0.6335 GB, free: 5.367 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/1.356, allocations: 327.7 kB / 0.6338 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/1.37, allocations: 3.93 MB / 0.6376 GB, free: 1.098 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.632e-05/1.37, allocations: 23.59 kB / 0.6376 GB, free: 1.078 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/1.37, allocations: 8 kB / 0.6376 GB, free: 1.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.013e-05/1.37, allocations: 15.91 kB / 0.6377 GB, free: 1.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02429/1.394, allocations: 8.122 MB / 0.6456 GB, free: 8.906 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.797e-05/1.394, allocations: 0 / 0.6456 GB, free: 8.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/1.396, allocations: 247.5 kB / 0.6458 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0065/1.402, allocations: 1.283 MB / 0.6471 GB, free: 7.383 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003061/1.403, allocations: 31.98 kB / 0.6471 GB, free: 7.352 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2599/1.663, allocations: 7.81 MB / 0.6547 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.583e-06/1.663, allocations: 1.031 kB / 0.6547 GB, free: 107.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/1.68, allocations: 6.315 MB / 0.6609 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/1.682, allocations: 0.602 MB / 0.6615 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009862/1.683, allocations: 27.84 kB / 0.6615 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/1.685, allocations: 96.64 kB / 0.6616 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005287/1.686, allocations: 103.1 kB / 0.6617 GB, free: 106.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002097/1.686, allocations: 52.73 kB / 0.6618 GB, free: 106.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00582/1.692, allocations: 2.296 MB / 0.664 GB, free: 106.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.172e-06/1.692, allocations: 3.938 kB / 0.664 GB, free: 106.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006827/1.698, allocations: 0.9713 MB / 0.665 GB, free: 106.4 MB / 442.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.0005996/1.699, allocations: 173 kB / 0.6651 GB, free: 106.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01042/1.71, allocations: 4.995 MB / 0.67 GB, free: 106.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/1.71, allocations: 0 / 0.67 GB, free: 106.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00335/1.713, allocations: 1.63 MB / 0.6716 GB, free: 106 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/1.716, allocations: 368.4 kB / 0.6719 GB, free: 106 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/1.734, allocations: 10.1 MB / 0.6818 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004473/1.738, allocations: 3.033 MB / 0.6848 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/1.74, allocations: 268.5 kB / 0.685 GB, free: 101.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.622e-06/1.74, allocations: 3.469 kB / 0.685 GB, free: 101.6 MB / 442.7 MB Notification: Performance of Templates: time 0.09583/1.835, allocations: 66.64 MB / 0.7501 GB, free: 68.68 MB / 442.7 MB