Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.067/2.067, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.0003959, allocations: 12 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3093, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.04064/0.35, allocations: 28.1 MB / 397.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.3687, allocations: 7.267 MB / 404.6 MB, free: 7.262 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004595/0.3734, allocations: 131.7 kB / 404.8 MB, free: 7.133 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004611/0.378, allocations: 1.451 MB / 406.2 MB, free: 5.676 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01488/0.3929, allocations: 4.239 MB / 410.4 MB, free: 1.426 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.3953, allocations: 431.3 kB / 410.9 MB, free: 1.004 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004629/0.3999, allocations: 2.131 MB / 413 MB, free: 14.87 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006181/0.4062, allocations: 3.357 MB / 416.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.4078, allocations: 0.9303 MB / 417.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002069/0.4099, allocations: 1.3 MB / 418.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005006/0.4104, allocations: 148 kB / 418.7 MB, free: 9.082 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.4126, allocations: 0.8504 MB / 419.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001903/0.4146, allocations: 1.531 MB / 421.1 MB, free: 6.695 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.4156, allocations: 0.8388 MB / 422 MB, free: 5.848 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008461/0.4241, allocations: 5.592 MB / 427.5 MB, free: 248 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.4241, allocations: 0 / 427.5 MB, free: 248 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4242, allocations: 3.938 kB / 427.6 MB, free: 244 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.4243, allocations: 0 / 427.6 MB, free: 244 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.01277/0.4371, allocations: 4.123 MB / 431.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.4372, allocations: 12.03 kB / 431.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001705/0.4389, allocations: 0.7944 MB / 432.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02132/0.4602, allocations: 3.789 MB / 436.3 MB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006309/0.4666, allocations: 2.325 MB / 438.6 MB, free: 5.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/0.4668, allocations: 225.6 kB / 438.8 MB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000973/0.4678, allocations: 295.7 kB / 439.1 MB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.4926, allocations: 11.5 MB / 450.6 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001213/0.4928, allocations: 27.72 kB / 450.6 MB, free: 8.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006115/0.4934, allocations: 139.8 kB / 450.8 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006549/0.4999, allocations: 2.625 MB / 453.4 MB, free: 5.805 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02861/0.5286, allocations: 10.73 MB / 464.1 MB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3615/0.8901, allocations: 36.42 MB / 0.4888 GB, free: 66.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.9008, allocations: 4.404 MB / 0.4931 GB, free: 64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0013/0.9021, allocations: 1.322 MB / 0.4944 GB, free: 62.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.9021, allocations: 52.06 kB / 0.4944 GB, free: 62.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 5.591e-06/0.9022, allocations: 4 kB / 0.4945 GB, free: 62.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=265): time 0.05849/0.9607, allocations: 14.49 MB / 0.5086 GB, free: 52.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.9607, allocations: 84.25 kB / 0.5087 GB, free: 52.26 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004265/0.965, allocations: 2.917 MB / 0.5115 GB, free: 49.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003728/0.9654, allocations: 62.8 kB / 0.5116 GB, free: 49.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001563/0.967, allocations: 2.924 MB / 0.5144 GB, free: 46.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00102/0.968, allocations: 0.9794 MB / 0.5154 GB, free: 45.36 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/0.9684, allocations: 113.1 kB / 0.5155 GB, free: 45.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003147/0.9687, allocations: 0.5588 MB / 0.5161 GB, free: 44.68 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004543/0.9733, allocations: 2.338 MB / 0.5183 GB, free: 42.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006102/0.9794, allocations: 5.482 MB / 0.5237 GB, free: 35.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006623/0.9861, allocations: 3.587 MB / 0.5272 GB, free: 31.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.884e-05/0.9862, allocations: 32 kB / 0.5272 GB, free: 31.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=773) (initialization): time 0.01948/1.006, allocations: 8.47 MB / 0.5355 GB, free: 23.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.08e-05/1.006, allocations: 52 kB / 0.5355 GB, free: 23.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/1.006, allocations: 112 kB / 0.5357 GB, free: 23.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005718/1.012, allocations: 1.054 MB / 0.5367 GB, free: 22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00692/1.019, allocations: 1.33 MB / 0.538 GB, free: 20.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00334/1.022, allocations: 2.501 MB / 0.5404 GB, free: 18.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004536/1.026, allocations: 319.8 kB / 0.5407 GB, free: 17.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005553/1.027, allocations: 336.9 kB / 0.541 GB, free: 17.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 499 * Number of states: 0 () * Number of discrete variables: 21 (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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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 (720): * Single equations (assignments): 711 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00418/1.031, allocations: 2.26 MB / 0.5433 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/1.032, allocations: 288.2 kB / 0.5435 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/1.045, allocations: 5.061 MB / 0.5485 GB, free: 9.699 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.808e-05/1.045, allocations: 51.12 kB / 0.5485 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/1.045, allocations: 0 / 0.5485 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-05/1.045, allocations: 11.95 kB / 0.5485 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02692/1.072, allocations: 11.57 MB / 0.5598 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.907e-05/1.072, allocations: 8 kB / 0.5598 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003523/1.075, allocations: 427.3 kB / 0.5602 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005931/1.081, allocations: 0.9074 MB / 0.5611 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002608/1.082, allocations: 59.98 kB / 0.5612 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003788/1.085, allocations: 2.299 MB / 0.5634 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.235e-05/1.086, allocations: 11.94 kB / 0.5634 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/1.104, allocations: 7.504 MB / 0.5708 GB, free: 2.438 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007891/1.105, allocations: 337.4 kB / 0.5711 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006798/1.106, allocations: 51.98 kB / 0.5711 GB, free: 2.035 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002226/1.108, allocations: 141 kB / 0.5713 GB, free: 1.898 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004565/1.108, allocations: 161.6 kB / 0.5714 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002463/1.109, allocations: 76.91 kB / 0.5715 GB, free: 1.664 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003554/1.112, allocations: 1.791 MB / 0.5733 GB, free: 15.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.112, allocations: 0 / 0.5733 GB, free: 15.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005077/1.117, allocations: 1.019 MB / 0.5743 GB, free: 14.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * 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 (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01969/1.137, allocations: 8.203 MB / 0.5823 GB, free: 6.484 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01487/1.152, allocations: 6.147 MB / 0.5883 GB, free: 308 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/1.152, allocations: 0 / 0.5883 GB, free: 308 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007046/1.159, allocations: 2.601 MB / 0.5908 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/1.162, allocations: 389.1 kB / 0.5912 GB, free: 13.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07637/1.238, allocations: 34.27 MB / 0.6246 GB, free: 8.215 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005774/1.244, allocations: 3.596 MB / 0.6282 GB, free: 4.582 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004449/1.248, allocations: 2.018 MB / 0.6301 GB, free: 2.566 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/1.248, allocations: 0 / 0.6301 GB, free: 2.566 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.145/5.393, allocations: 139.7 MB / 0.7666 GB, free: 63.07 MB / 490.7 MB