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.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.865/1.865, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004238/0.0004239, allocations: 20 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3338, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSR): time 0.04138/0.3753, allocations: 28.51 MB / 359.8 MB, free: 1.777 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01922/0.3945, allocations: 6.909 MB / 366.7 MB, free: 11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005566/0.4002, allocations: 131.7 kB / 366.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005184/0.4054, allocations: 1.404 MB / 368.2 MB, free: 9.461 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01417/0.4196, allocations: 3.705 MB / 371.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003122/0.4228, allocations: 0.542 MB / 372.5 MB, free: 5.203 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00274/0.4255, allocations: 1.019 MB / 373.5 MB, free: 4.184 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007836/0.4334, allocations: 4.035 MB / 377.5 MB, free: 104 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.4346, allocations: 0.5644 MB / 378.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001365/0.436, allocations: 0.7435 MB / 378.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000327/0.4363, allocations: 96 kB / 378.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.4382, allocations: 0.7177 MB / 379.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.4394, allocations: 0.9157 MB / 380.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006418/0.4401, allocations: 0.5119 MB / 381.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005526/0.4456, allocations: 3.851 MB / 384.9 MB, free: 8.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.4457, allocations: 0 / 384.9 MB, free: 8.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4457, allocations: 0 / 384.9 MB, free: 8.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.801e-05/0.4458, allocations: 4 kB / 384.9 MB, free: 8.676 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 905 * Number of variables: 905 Notification: Performance of Generate backend data structure: time 0.008873/0.4547, allocations: 2.665 MB / 387.6 MB, free: 5.945 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.4547, allocations: 12.03 kB / 387.6 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001029/0.4558, allocations: 461.1 kB / 388.1 MB, free: 5.473 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/0.4577, allocations: 367.9 kB / 388.4 MB, free: 5.109 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003641/0.4614, allocations: 1.27 MB / 389.7 MB, free: 3.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/0.4616, allocations: 168.5 kB / 389.9 MB, free: 3.625 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006546/0.4623, allocations: 247.7 kB / 390.1 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02321/0.4855, allocations: 7.04 MB / 397.1 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.231e-05/0.4856, allocations: 15.88 kB / 397.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003632/0.486, allocations: 107.9 kB / 397.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002609/0.4886, allocations: 0.9886 MB / 398.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/0.5114, allocations: 5.822 MB / 404.1 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03792/0.5493, allocations: 20.23 MB / 424.3 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.562, allocations: 1.834 MB / 426.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009759/0.5718, allocations: 4.915 MB / 431 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.5719, allocations: 47.06 kB / 431.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=70): time 3.838e-06/0.5719, allocations: 0 / 431.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=110): time 0.07662/0.6486, allocations: 9.371 MB / 440.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.6487, allocations: 90.11 kB / 440.5 MB, free: 15.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00376/0.6525, allocations: 1.937 MB / 442.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002413/0.6527, allocations: 41.7 kB / 442.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/0.6542, allocations: 1.654 MB / 444.2 MB, free: 11.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005184/0.6547, allocations: 414.5 kB / 444.6 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.655, allocations: 60 kB / 444.6 MB, free: 11.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00027/0.6552, allocations: 432.8 kB / 445.1 MB, free: 11.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/0.658, allocations: 1.025 MB / 446.1 MB, free: 10.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004292/0.6623, allocations: 2.63 MB / 448.7 MB, free: 6.594 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004102/0.6664, allocations: 1.576 MB / 450.3 MB, free: 5.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.675e-05/0.6665, allocations: 16 kB / 450.3 MB, free: 5.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=370) (initialization): time 0.009077/0.6756, allocations: 3.563 MB / 453.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/0.6757, allocations: 32 kB / 453.9 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.6758, allocations: 56 kB / 454 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001236/0.6759, allocations: 84 kB / 454 MB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0045/0.6804, allocations: 0.7025 MB / 454.7 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001283/0.6806, allocations: 115.6 kB / 454.9 MB, free: 464 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/0.6832, allocations: 155.7 kB / 455 MB, free: 308 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003201/0.6836, allocations: 168 kB / 455.2 MB, free: 140 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 256 * Number of states: 0 () * Number of discrete variables: 31 (jointSSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.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 (370): * Single equations (assignments): 370 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002886/0.6865, allocations: 1.195 MB / 456.4 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004774/0.687, allocations: 181.7 kB / 456.5 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004729/0.6917, allocations: 1.723 MB / 458.3 MB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.6917, allocations: 12.09 kB / 458.3 MB, free: 13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.6918, allocations: 3.984 kB / 458.3 MB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.6918, allocations: 3.984 kB / 458.3 MB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/0.7066, allocations: 5.869 MB / 464.2 MB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/0.7067, allocations: 12 kB / 464.2 MB, free: 6.844 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/0.7083, allocations: 207.6 kB / 464.4 MB, free: 6.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.354e-05/0.7084, allocations: 24.03 kB / 464.4 MB, free: 6.617 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.576e-05/0.7085, allocations: 32 kB / 464.4 MB, free: 6.586 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.749e-05/0.7085, allocations: 27.86 kB / 464.5 MB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.747e-05/0.7085, allocations: 15.94 kB / 464.5 MB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.712, allocations: 1.685 MB / 466.2 MB, free: 4.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005731/0.7126, allocations: 266.8 kB / 466.4 MB, free: 4.398 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003702/0.713, allocations: 39.98 kB / 466.5 MB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.7142, allocations: 35.98 kB / 466.5 MB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.7144, allocations: 104.2 kB / 466.6 MB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.7145, allocations: 44 kB / 466.6 MB, free: 4.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002747/0.7173, allocations: 1.264 MB / 467.9 MB, free: 2.926 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7173, allocations: 3.938 kB / 467.9 MB, free: 2.922 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003017/0.7203, allocations: 0.5273 MB / 468.4 MB, free: 2.395 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * Number of states: 0 () * 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 (111): * Single equations (assignments): 111 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004227/0.7246, allocations: 2.307 MB / 470.7 MB, free: 15.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005716/0.7303, allocations: 2.236 MB / 473 MB, free: 13.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/0.7304, allocations: 4 kB / 473 MB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.7318, allocations: 0.5913 MB / 473.6 MB, free: 13.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.7334, allocations: 235.4 kB / 473.8 MB, free: 12.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/0.7544, allocations: 10.28 MB / 484.1 MB, free: 1.234 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2591/1.014, allocations: 2.218 MB / 486.3 MB, free: 133.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002227/1.016, allocations: 1.077 MB / 487.4 MB, free: 133.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.233e-06/1.016, allocations: 4.969 kB / 487.4 MB, free: 133.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.86/3.876, allocations: 44.74 MB / 0.5197 GB, free: 100.9 MB / 410.7 MB