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.RevolutePlanarLoopConstraint.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.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.891/1.891, allocations: 209.3 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005919/0.0005923, allocations: 11.98 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3358, allocations: 48.71 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.1019/0.4377, allocations: 68.31 MB / 399.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04468/0.4824, allocations: 15.87 MB / 415.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01449/0.497, allocations: 359.1 kB / 415.8 MB, free: 9.777 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01244/0.5095, allocations: 3.492 MB / 419.3 MB, free: 6.27 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03786/0.5474, allocations: 9.978 MB / 429.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006637/0.5541, allocations: 1.151 MB / 430.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0994/0.6535, allocations: 33.47 MB / 463.9 MB, free: 9.609 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01477/0.6683, allocations: 7.02 MB / 470.9 MB, free: 2.512 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004412/0.6728, allocations: 1.768 MB / 472.7 MB, free: 0.7383 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3108/0.9836, allocations: 2.065 MB / 474.7 MB, free: 38.08 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0015/0.9851, allocations: 184 kB / 474.9 MB, free: 38.08 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003534/0.9887, allocations: 0.8686 MB / 475.8 MB, free: 38.08 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004375/0.9931, allocations: 2.301 MB / 478.1 MB, free: 38.08 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002627/0.9958, allocations: 1.082 MB / 479.2 MB, free: 38.05 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/1.008, allocations: 7.386 MB / 486.6 MB, free: 37.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/1.008, allocations: 0 / 486.6 MB, free: 37.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.767e-06/1.008, allocations: 0 / 486.6 MB, free: 37.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003467/1.008, allocations: 2.078 kB / 486.6 MB, free: 37.55 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: 1490 * Number of variables: 1490 Notification: Performance of Generate backend data structure: time 0.03024/1.038, allocations: 6.922 MB / 493.5 MB, free: 34.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/1.038, allocations: 7.656 kB / 493.5 MB, free: 34.99 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003375/1.042, allocations: 0.7312 MB / 494.2 MB, free: 34.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1475/1.189, allocations: 12.15 MB / 0.4945 GB, free: 30.44 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/1.209, allocations: 6.342 MB / 0.5007 GB, free: 28.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003683/1.209, allocations: 321.4 kB / 0.501 GB, free: 28.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002037/1.211, allocations: 403.8 kB / 0.5014 GB, free: 28.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03458/1.246, allocations: 11.14 MB / 0.5123 GB, free: 21.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002867/1.246, allocations: 65.83 kB / 0.5123 GB, free: 20.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/1.247, allocations: 176.3 kB / 0.5125 GB, free: 20.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002813/1.25, allocations: 1.494 MB / 0.514 GB, free: 19.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03256/1.283, allocations: 9.307 MB / 0.523 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08856/1.371, allocations: 44.63 MB / 0.5666 GB, free: 9.051 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03977/1.411, allocations: 7.955 MB / 0.5744 GB, free: 2.992 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03151/1.443, allocations: 12.87 MB / 0.587 GB, free: 9.992 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.59e-05/1.443, allocations: 61.42 kB / 0.587 GB, free: 9.938 MB / 442.7 MB Notification: Performance of pre-optimization done (n=283): time 6.282e-06/1.443, allocations: 0 / 0.587 GB, free: 9.938 MB / 442.7 MB Notification: Performance of matching and sorting (n=406): time 0.719/2.162, allocations: 77.15 MB / 0.6624 GB, free: 195.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02626/2.188, allocations: 11.38 MB / 0.6735 GB, free: 190 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01002/2.198, allocations: 4.825 MB / 0.6782 GB, free: 188.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001386/2.2, allocations: 97.36 kB / 0.6783 GB, free: 188.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00262/2.202, allocations: 2.708 MB / 0.6809 GB, free: 186.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002512/2.205, allocations: 1.406 MB / 0.6823 GB, free: 185 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009226/2.206, allocations: 113.7 kB / 0.6824 GB, free: 184.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003913/2.206, allocations: 0.5374 MB / 0.6829 GB, free: 184.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01019/2.216, allocations: 4.63 MB / 0.6875 GB, free: 182.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01174/2.228, allocations: 6.641 MB / 0.6939 GB, free: 177 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/2.241, allocations: 5.583 MB / 0.6994 GB, free: 171.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-05/2.241, allocations: 20 kB / 0.6994 GB, free: 171.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.06403/2.305, allocations: 18.71 MB / 0.7177 GB, free: 152.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/2.305, allocations: 32 kB / 0.7177 GB, free: 152.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.543e-05/2.305, allocations: 64 kB / 0.7178 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0429/2.348, allocations: 8.797 MB / 0.7264 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007357/2.355, allocations: 1.006 MB / 0.7274 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1143/2.47, allocations: 52.24 MB / 0.7784 GB, free: 90.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009913/2.48, allocations: 499.3 kB / 0.7788 GB, free: 89.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001616/2.481, allocations: 283.7 kB / 0.7791 GB, free: 89.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 291 * Number of states: 0 () * Number of discrete variables: 54 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (512): * Single equations (assignments): 503 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,52.1%) 103,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.007177/2.489, allocations: 2.268 MB / 0.7813 GB, free: 87.37 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001772/2.49, allocations: 477.9 kB / 0.7818 GB, free: 86.89 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06246/2.553, allocations: 17.95 MB / 0.7993 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05724/2.61, allocations: 16.44 MB / 0.8154 GB, free: 52.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.199e-05/2.61, allocations: 28 kB / 0.8154 GB, free: 52.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.644e-05/2.61, allocations: 15.94 kB / 0.8154 GB, free: 52.35 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1048/2.715, allocations: 35.33 MB / 0.8499 GB, free: 16.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-05/2.715, allocations: 4 kB / 0.8499 GB, free: 16.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004493/2.72, allocations: 459.2 kB / 0.8504 GB, free: 16.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3306/3.051, allocations: 8.791 MB / 0.8589 GB, free: 185.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001323/3.052, allocations: 78.77 kB / 0.859 GB, free: 185.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1147/3.167, allocations: 50.79 MB / 0.9086 GB, free: 164 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02358/3.19, allocations: 10.17 MB / 0.9186 GB, free: 155.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07298/3.263, allocations: 24.05 MB / 0.942 GB, free: 131.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005456/3.269, allocations: 1.464 MB / 0.9435 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00183/3.271, allocations: 75.98 kB / 0.9435 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006875/3.278, allocations: 383.4 kB / 0.9439 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002037/3.28, allocations: 328 kB / 0.9442 GB, free: 129.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006191/3.28, allocations: 100 kB / 0.9443 GB, free: 129.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007052/3.287, allocations: 3.235 MB / 0.9475 GB, free: 125.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.51e-07/3.287, allocations: 2.516 kB / 0.9475 GB, free: 125.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01153/3.299, allocations: 2.012 MB / 0.9494 GB, free: 123.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * 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 (217): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(11,54.5%) 97,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.07642/3.375, allocations: 24.74 MB / 0.9736 GB, free: 99.06 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03188/3.407, allocations: 12.59 MB / 0.9859 GB, free: 86.45 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/3.407, allocations: 0 / 0.9859 GB, free: 86.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02057/3.428, allocations: 7.194 MB / 0.9929 GB, free: 79.22 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006137/3.434, allocations: 0.7421 MB / 0.9937 GB, free: 78.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04889/3.483, allocations: 25.2 MB / 1.018 GB, free: 51.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007612/3.491, allocations: 4.275 MB / 1.022 GB, free: 47.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00673/3.498, allocations: 2.659 MB / 1.025 GB, free: 44.48 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/3.498, allocations: 0 / 1.025 GB, free: 44.48 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.352/8.849, allocations: 177.8 MB / 1.199 GB, free: 64.21 MB / 490.7 MB