Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.2 MB / 224.8 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006982/0.0006984, allocations: 12 kB / 282.6 MB, free: 9.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1438, allocations: 48.71 MB / 331.3 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.2996/0.4435, allocations: 24.71 MB / 356 MB, free: 2.652 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01758/0.4612, allocations: 6.425 MB / 362.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005601/0.4668, allocations: 114 kB / 362.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005079/0.472, allocations: 1.27 MB / 363.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01635/0.4883, allocations: 3.778 MB / 367.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002751/0.4911, allocations: 426.9 kB / 368 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005598/0.4968, allocations: 2 MB / 370 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004919/0.5017, allocations: 2.257 MB / 372.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.5041, allocations: 0.88 MB / 373.1 MB, free: 8.645 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.5069, allocations: 1.23 MB / 374.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000704/0.5077, allocations: 132.9 kB / 374.5 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002763/0.5104, allocations: 0.7984 MB / 375.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002518/0.513, allocations: 1.385 MB / 376.7 MB, free: 6.934 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.5145, allocations: 0.7622 MB / 377.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00871/0.5232, allocations: 4.834 MB / 382.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5233, allocations: 0 / 382.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.5233, allocations: 0 / 382.3 MB, free: 1.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000215/0.5235, allocations: 0 / 382.3 MB, free: 1.793 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1567 * Number of variables: 1567 Notification: Performance of Generate backend data structure: time 0.01091/0.5344, allocations: 3.609 MB / 385.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.5345, allocations: 12.02 kB / 385.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002217/0.5367, allocations: 0.7247 MB / 386.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02469/0.5615, allocations: 3.719 MB / 390.3 MB, free: 9.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006329/0.5678, allocations: 2.134 MB / 392.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/0.5681, allocations: 196.8 kB / 392.7 MB, free: 7.262 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001549/0.5697, allocations: 251.7 kB / 392.9 MB, free: 7.016 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02765/0.5974, allocations: 10.78 MB / 403.7 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.5976, allocations: 23.81 kB / 403.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008675/0.5985, allocations: 123.8 kB / 403.8 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007597/0.6061, allocations: 2.585 MB / 406.4 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03094/0.6371, allocations: 10.06 MB / 416.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07892/0.716, allocations: 35.26 MB / 451.7 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01672/0.7328, allocations: 5.181 MB / 456.9 MB, free: 5.395 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002825/0.7357, allocations: 1.876 MB / 458.8 MB, free: 3.188 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.644e-05/0.7358, allocations: 52.56 kB / 458.8 MB, free: 3.129 MB / 378.7 MB Notification: Performance of pre-optimization done (n=229): time 7.153e-06/0.7359, allocations: 0 / 458.8 MB, free: 3.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=235): time 0.05701/0.7929, allocations: 14.55 MB / 473.4 MB, free: 4.414 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.012e-05/0.793, allocations: 77.39 kB / 473.5 MB, free: 4.324 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005444/0.7984, allocations: 2.753 MB / 476.2 MB, free: 1.551 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005223/0.799, allocations: 53.7 kB / 476.3 MB, free: 1.492 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00253/0.8016, allocations: 2.688 MB / 479 MB, free: 14.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001449/0.803, allocations: 0.8556 MB / 479.8 MB, free: 13.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004938/0.8036, allocations: 100 kB / 479.9 MB, free: 13.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004538/0.804, allocations: 0.5379 MB / 480.5 MB, free: 13.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005806/0.8099, allocations: 2.193 MB / 482.7 MB, free: 11.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009179/0.8191, allocations: 5.08 MB / 487.7 MB, free: 4.547 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008553/0.8277, allocations: 3.327 MB / 491.1 MB, free: 1.215 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.8279, allocations: 28 kB / 491.1 MB, free: 1.188 MB / 410.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.02343/0.8513, allocations: 7.794 MB / 498.9 MB, free: 9.387 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.8514, allocations: 48 kB / 498.9 MB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001578/0.8516, allocations: 100 kB / 499 MB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004104/0.8557, allocations: 0.8128 MB / 499.8 MB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007612/0.8634, allocations: 1.189 MB / 0.4893 GB, free: 7.234 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.8735, allocations: 4.301 MB / 0.4935 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005297/0.8789, allocations: 291.8 kB / 0.4938 GB, free: 2.516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/0.8801, allocations: 304 kB / 0.4941 GB, free: 2.219 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 460 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (637): * Single equations (assignments): 630 * Array equations: 6 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006119/0.8862, allocations: 2.047 MB / 0.4961 GB, free: 160 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2779/1.164, allocations: 265.4 kB / 0.4963 GB, free: 136.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/1.179, allocations: 4.711 MB / 0.5009 GB, free: 135.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001295/1.179, allocations: 43.69 kB / 0.5009 GB, free: 135.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-05/1.179, allocations: 6.578 kB / 0.501 GB, free: 135.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.548e-05/1.18, allocations: 12.09 kB / 0.501 GB, free: 135.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03072/1.21, allocations: 10.58 MB / 0.5113 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.655e-05/1.21, allocations: 10.95 kB / 0.5113 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003215/1.214, allocations: 361.1 kB / 0.5117 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003612/1.217, allocations: 0.6564 MB / 0.5123 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000514/1.218, allocations: 46.94 kB / 0.5123 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007644/1.225, allocations: 3.742 MB / 0.516 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/1.226, allocations: 11.28 kB / 0.516 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01707/1.243, allocations: 7.117 MB / 0.523 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/1.245, allocations: 0.6497 MB / 0.5236 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.246, allocations: 45.5 kB / 0.5236 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002646/1.249, allocations: 145.7 kB / 0.5238 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006688/1.249, allocations: 135.5 kB / 0.5239 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.25, allocations: 64.8 kB / 0.524 GB, free: 127.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003541/1.253, allocations: 1.694 MB / 0.5256 GB, free: 126.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.253, allocations: 0 / 0.5256 GB, free: 126.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005734/1.259, allocations: 0.9591 MB / 0.5266 GB, free: 126.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01735/1.276, allocations: 7.786 MB / 0.5342 GB, free: 121.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01117/1.288, allocations: 5.33 MB / 0.5394 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.288, allocations: 0 / 0.5394 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004221/1.292, allocations: 2.009 MB / 0.5413 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/1.294, allocations: 314.4 kB / 0.5416 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07705/1.372, allocations: 30.85 MB / 0.5717 GB, free: 80.74 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008401/1.38, allocations: 3.313 MB / 0.575 GB, free: 77.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006648/1.387, allocations: 1.792 MB / 0.5767 GB, free: 75.6 MB / 426.7 MB Notification: Performance of SimCode: time 2.475e-06/1.387, allocations: 4 kB / 0.5767 GB, free: 75.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.183/5.57, allocations: 91.72 MB / 0.6663 GB, free: 142 MB / 442.7 MB