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.232/2.232, allocations: 234.9 MB / 250.5 MB, free: 10.45 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004262/0.0004265, allocations: 8 kB / 314.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2776, allocations: 54.89 MB / 369.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03765/0.3153, allocations: 28.52 MB / 397.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01821/0.3336, allocations: 7.552 MB / 405.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005051/0.3387, allocations: 139.6 kB / 405.4 MB, free: 6.512 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004367/0.3431, allocations: 1.396 MB / 406.8 MB, free: 5.109 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01408/0.3572, allocations: 4.216 MB / 411 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002495/0.3597, allocations: 0.5732 MB / 411.6 MB, free: 316 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02001/0.3798, allocations: 9.489 MB / 421.1 MB, free: 6.809 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005315/0.3851, allocations: 2.965 MB / 424 MB, free: 3.789 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001694/0.3868, allocations: 0.9421 MB / 425 MB, free: 2.844 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002029/0.3889, allocations: 1.285 MB / 426.3 MB, free: 1.555 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004436/0.3894, allocations: 124 kB / 426.4 MB, free: 1.434 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002182/0.3916, allocations: 0.9792 MB / 427.4 MB, free: 464 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00178/0.3934, allocations: 1.387 MB / 428.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009672/0.3943, allocations: 0.7181 MB / 429.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007718/0.4021, allocations: 4.868 MB / 434.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.435e-06/0.4021, allocations: 0 / 434.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.451e-06/0.4021, allocations: 0 / 434.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001108/0.4023, allocations: 3.938 kB / 434.3 MB, free: 9.453 MB / 362.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.01114/0.4134, allocations: 3.73 MB / 438.1 MB, free: 5.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/0.4135, allocations: 8.031 kB / 438.1 MB, free: 5.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1537/0.5672, allocations: 8.281 MB / 446.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006998/0.5743, allocations: 2.605 MB / 449 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.5746, allocations: 196.9 kB / 449.2 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/0.5758, allocations: 271.8 kB / 449.4 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01915/0.5949, allocations: 8.598 MB / 458 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001525/0.5951, allocations: 47.59 kB / 458.1 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005418/0.5957, allocations: 119.9 kB / 458.2 MB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003442/0.5991, allocations: 1.676 MB / 459.9 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01878/0.618, allocations: 7.221 MB / 467.1 MB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2967/0.9147, allocations: 33.95 MB / 0.4893 GB, free: 67.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.9263, allocations: 3.459 MB / 0.4927 GB, free: 65.72 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/0.9404, allocations: 7.296 MB / 0.4998 GB, free: 60.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.9405, allocations: 53.67 kB / 0.4998 GB, free: 60.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 6.724e-06/0.9405, allocations: 2.031 kB / 0.4998 GB, free: 60.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=185): time 0.08056/1.021, allocations: 20.96 MB / 0.5203 GB, free: 41.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/1.021, allocations: 205.2 kB / 0.5205 GB, free: 41.06 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005618/1.027, allocations: 3.833 MB / 0.5243 GB, free: 37.24 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003015/1.027, allocations: 57.7 kB / 0.5243 GB, free: 37.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/1.029, allocations: 2.748 MB / 0.527 GB, free: 34.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007861/1.03, allocations: 0.7086 MB / 0.5277 GB, free: 33.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003734/1.03, allocations: 119 kB / 0.5278 GB, free: 33.62 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003056/1.03, allocations: 0.5585 MB / 0.5283 GB, free: 33.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003859/1.034, allocations: 2.096 MB / 0.5304 GB, free: 30.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005713/1.04, allocations: 5.633 MB / 0.5359 GB, free: 23.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005812/1.046, allocations: 3.356 MB / 0.5392 GB, free: 20.19 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.675e-05/1.046, allocations: 36 kB / 0.5392 GB, free: 20.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=757) (initialization): time 0.022/1.068, allocations: 9.132 MB / 0.5481 GB, free: 11.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/1.068, allocations: 56 kB / 0.5482 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/1.068, allocations: 131.9 kB / 0.5483 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006385/1.075, allocations: 1.516 MB / 0.5498 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004969/1.08, allocations: 1.294 MB / 0.551 GB, free: 8.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01978/1.099, allocations: 10.11 MB / 0.5609 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00516/1.105, allocations: 312.5 kB / 0.5612 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009978/1.106, allocations: 370.5 kB / 0.5616 GB, free: 13.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 567 * 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 (690): * Single equations (assignments): 686 * 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.004285/1.11, allocations: 1.881 MB / 0.5634 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008079/1.111, allocations: 331.8 kB / 0.5637 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/1.123, allocations: 4.058 MB / 0.5677 GB, free: 6.812 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-05/1.123, allocations: 20 kB / 0.5677 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.219e-05/1.123, allocations: 12 kB / 0.5677 GB, free: 6.781 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.855e-05/1.123, allocations: 11.97 kB / 0.5677 GB, free: 6.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/1.146, allocations: 8.401 MB / 0.5759 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.021e-05/1.146, allocations: 7.984 kB / 0.5759 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/1.148, allocations: 243.6 kB / 0.5762 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006004/1.154, allocations: 1.218 MB / 0.5774 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003126/1.154, allocations: 31.98 kB / 0.5774 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/1.173, allocations: 8.316 MB / 0.5855 GB, free: 4.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/1.173, allocations: 4 kB / 0.5855 GB, free: 4.395 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/1.19, allocations: 6.501 MB / 0.5919 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/1.192, allocations: 0.6138 MB / 0.5925 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006467/1.192, allocations: 35.62 kB / 0.5925 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/1.194, allocations: 87.89 kB / 0.5926 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004097/1.195, allocations: 109.2 kB / 0.5927 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.195, allocations: 59.98 kB / 0.5927 GB, free: 12.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005156/1.2, allocations: 2.406 MB / 0.5951 GB, free: 10.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.174e-06/1.2, allocations: 0 / 0.5951 GB, free: 10.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006218/1.206, allocations: 0.9856 MB / 0.5961 GB, free: 9.57 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 (130): * Single equations (assignments): 126 * 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.0006721/1.207, allocations: 184.1 kB / 0.5962 GB, free: 9.391 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01141/1.219, allocations: 5.209 MB / 0.6013 GB, free: 4.191 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.275e-06/1.219, allocations: 0 / 0.6013 GB, free: 4.191 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00381/1.222, allocations: 1.745 MB / 0.603 GB, free: 2.434 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/1.225, allocations: 364.3 kB / 0.6034 GB, free: 2.078 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/1.247, allocations: 10.28 MB / 0.6134 GB, free: 7.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005926/1.253, allocations: 3.035 MB / 0.6164 GB, free: 4.703 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/1.254, allocations: 275.4 kB / 0.6166 GB, free: 4.434 MB / 458.7 MB Notification: Performance of SimCode: time 1.699e-06/1.254, allocations: 0 / 0.6166 GB, free: 4.434 MB / 458.7 MB Notification: Performance of Templates: time 0.3705/1.624, allocations: 67.13 MB / 0.6822 GB, free: 121.1 MB / 474.7 MB