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.892/1.892, allocations: 209.3 MB / 222.4 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.29e-05, allocations: 11.98 kB / 277.8 MB, free: 12.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.08571, allocations: 48.7 MB / 326.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/0.4778, allocations: 92.95 MB / 419.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.4781, allocations: 74.34 kB / 419.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5368/1.015, allocations: 76.33 MB / 495.9 MB, free: 88.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.301e-06/1.015, allocations: 0 / 495.9 MB, free: 88.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002191/1.015, allocations: 72.2 kB / 496 MB, free: 88.86 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.01137/1.027, allocations: 3.581 MB / 499.5 MB, free: 87.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/1.027, allocations: 12.31 kB / 499.5 MB, free: 87.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02335/1.05, allocations: 4.324 MB / 0.4921 GB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01416/1.064, allocations: 4.456 MB / 0.4964 GB, free: 86.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003857/1.065, allocations: 270 kB / 0.4967 GB, free: 86.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001664/1.066, allocations: 363.5 kB / 0.497 GB, free: 86.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02087/1.087, allocations: 9.074 MB / 0.5059 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002288/1.088, allocations: 59.42 kB / 0.5059 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008898/1.088, allocations: 181.1 kB / 0.5061 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001321/1.09, allocations: 0.8858 MB / 0.507 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01628/1.106, allocations: 7.2 MB / 0.514 GB, free: 84.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04563/1.152, allocations: 44.05 MB / 0.557 GB, free: 50.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/1.162, allocations: 3.476 MB / 0.5604 GB, free: 48.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002538/1.165, allocations: 1.594 MB / 0.562 GB, free: 48.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/1.178, allocations: 7.195 MB / 0.569 GB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/1.178, allocations: 52.69 kB / 0.5691 GB, free: 43.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 6.24e-06/1.178, allocations: 3.406 kB / 0.5691 GB, free: 43.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=184): time 0.06479/1.243, allocations: 17.05 MB / 0.5857 GB, free: 34.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/1.243, allocations: 200.7 kB / 0.5859 GB, free: 33.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005626/1.248, allocations: 3.264 MB / 0.5891 GB, free: 30.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/1.249, allocations: 53.7 kB / 0.5891 GB, free: 30.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001682/1.251, allocations: 2.765 MB / 0.5918 GB, free: 28.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007683/1.251, allocations: 0.6986 MB / 0.5925 GB, free: 27.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004037/1.252, allocations: 112 kB / 0.5926 GB, free: 27.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003329/1.252, allocations: 0.56 MB / 0.5932 GB, free: 27.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003629/1.256, allocations: 1.942 MB / 0.5951 GB, free: 25.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005527/1.261, allocations: 5.467 MB / 0.6004 GB, free: 18.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00568/1.267, allocations: 3.246 MB / 0.6036 GB, free: 15.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.03e-05/1.267, allocations: 36 kB / 0.6036 GB, free: 15.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02191/1.289, allocations: 8.836 MB / 0.6122 GB, free: 7.926 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.383e-05/1.289, allocations: 56 kB / 0.6123 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/1.289, allocations: 124 kB / 0.6124 GB, free: 7.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006405/1.296, allocations: 1.547 MB / 0.6139 GB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005099/1.301, allocations: 1.287 MB / 0.6152 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01852/1.319, allocations: 8.929 MB / 0.6239 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005675/1.325, allocations: 311.5 kB / 0.6242 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/1.326, allocations: 364 kB / 0.6245 GB, free: 11.19 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 () * 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.001214/1.328, allocations: 0.5438 MB / 0.6251 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008126/1.328, allocations: 331.7 kB / 0.6254 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/1.34, allocations: 3.817 MB / 0.6291 GB, free: 6.488 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.353e-05/1.341, allocations: 20 kB / 0.6291 GB, free: 6.469 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.941e-05/1.341, allocations: 8 kB / 0.6292 GB, free: 6.461 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-05/1.341, allocations: 11.92 kB / 0.6292 GB, free: 6.449 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02344/1.364, allocations: 7.994 MB / 0.637 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.73e-05/1.364, allocations: 0 / 0.637 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/1.366, allocations: 243.6 kB / 0.6372 GB, free: 14.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006183/1.372, allocations: 1.225 MB / 0.6384 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003326/1.372, allocations: 35.98 kB / 0.6384 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01622/1.389, allocations: 7.281 MB / 0.6455 GB, free: 5.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.771e-06/1.389, allocations: 4.062 kB / 0.6455 GB, free: 5.516 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.254/1.643, allocations: 6.154 MB / 0.6516 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/1.645, allocations: 0.5991 MB / 0.6521 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000665/1.645, allocations: 31.12 kB / 0.6522 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/1.647, allocations: 90.27 kB / 0.6523 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003956/1.648, allocations: 107.8 kB / 0.6524 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001916/1.648, allocations: 48.67 kB / 0.6524 GB, free: 106.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004974/1.653, allocations: 2.264 MB / 0.6546 GB, free: 106 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.653, allocations: 1.125 kB / 0.6546 GB, free: 106 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006262/1.659, allocations: 0.9689 MB / 0.6556 GB, free: 106 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 () * 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.0005181/1.66, allocations: 177.1 kB / 0.6557 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01009/1.67, allocations: 4.89 MB / 0.6605 GB, free: 105.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.817e-06/1.67, allocations: 1.125 kB / 0.6605 GB, free: 105.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003173/1.673, allocations: 1.585 MB / 0.6621 GB, free: 105.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/1.675, allocations: 367.3 kB / 0.6624 GB, free: 105.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01729/1.693, allocations: 7.189 MB / 0.6694 GB, free: 104.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00489/1.698, allocations: 3.046 MB / 0.6724 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/1.699, allocations: 269.1 kB / 0.6727 GB, free: 103.5 MB / 442.7 MB Notification: Performance of SimCode: time 2.1e-06/1.699, allocations: 0 / 0.6727 GB, free: 103.5 MB / 442.7 MB Notification: Performance of Templates: time 0.09348/1.792, allocations: 66.6 MB / 0.7377 GB, free: 76.54 MB / 442.7 MB