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.Joints.FreeMotionScalarInit.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.Joints.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_3|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",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadModel(ModelicaTest): time 2.254/2.254, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008297/0.00083, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2796, allocations: 54.87 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.04033/0.3199, allocations: 28.08 MB / 397.3 MB, free: 14.53 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02375/0.3437, allocations: 7.262 MB / 404.5 MB, free: 7.246 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008095/0.3519, allocations: 139.6 kB / 404.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006547/0.3585, allocations: 1.447 MB / 406.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02147/0.38, allocations: 4.243 MB / 410.4 MB, free: 1.402 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002265/0.3823, allocations: 431.3 kB / 410.8 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004989/0.3874, allocations: 2.129 MB / 412.9 MB, free: 14.85 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007338/0.3947, allocations: 3.364 MB / 416.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002303/0.3971, allocations: 0.9342 MB / 417.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002567/0.3997, allocations: 1.296 MB / 418.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006632/0.4004, allocations: 148 kB / 418.7 MB, free: 9.051 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002299/0.4027, allocations: 0.8465 MB / 419.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002297/0.4051, allocations: 1.52 MB / 421 MB, free: 6.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.4063, allocations: 0.8427 MB / 421.9 MB, free: 5.828 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00838/0.4147, allocations: 5.601 MB / 427.5 MB, free: 220 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.594e-06/0.4147, allocations: 0 / 427.5 MB, free: 220 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.403e-06/0.4148, allocations: 0 / 427.5 MB, free: 220 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000137/0.4149, allocations: 7.875 kB / 427.5 MB, free: 212 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.0108/0.4257, allocations: 4.115 MB / 431.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4258, allocations: 8.031 kB / 431.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/0.4426, allocations: 3.8 MB / 435.4 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005804/0.4485, allocations: 2.321 MB / 437.7 MB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/0.4488, allocations: 233.6 kB / 437.9 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/0.4499, allocations: 295.7 kB / 438.2 MB, free: 5.312 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02431/0.4742, allocations: 11.5 MB / 449.7 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.4744, allocations: 27.72 kB / 449.8 MB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006074/0.475, allocations: 135.8 kB / 449.9 MB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005635/0.4806, allocations: 2.628 MB / 452.5 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02671/0.5074, allocations: 10.73 MB / 463.2 MB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3602/0.8676, allocations: 36.41 MB / 499.7 MB, free: 66.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.8782, allocations: 4.412 MB / 0.4922 GB, free: 63.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001278/0.8795, allocations: 1.319 MB / 0.4935 GB, free: 62.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.8796, allocations: 51.34 kB / 0.4936 GB, free: 62.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 7.406e-06/0.8796, allocations: 4 kB / 0.4936 GB, free: 62.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=265): time 0.053/0.9326, allocations: 14.49 MB / 0.5077 GB, free: 53.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.9327, allocations: 73.41 kB / 0.5078 GB, free: 52.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004174/0.9369, allocations: 2.921 MB / 0.5107 GB, free: 50.01 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004179/0.9373, allocations: 62.95 kB / 0.5107 GB, free: 49.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001554/0.9389, allocations: 2.923 MB / 0.5136 GB, free: 47.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/0.9399, allocations: 0.9804 MB / 0.5145 GB, free: 46.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003756/0.9403, allocations: 112.9 kB / 0.5146 GB, free: 45.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003344/0.9407, allocations: 0.5588 MB / 0.5152 GB, free: 45.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004262/0.9449, allocations: 2.334 MB / 0.5175 GB, free: 43.03 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005992/0.951, allocations: 5.485 MB / 0.5228 GB, free: 36.05 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006115/0.9571, allocations: 3.587 MB / 0.5263 GB, free: 32.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.527e-05/0.9573, allocations: 28 kB / 0.5264 GB, free: 32.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=773) (initialization): time 0.01855/0.9758, allocations: 8.474 MB / 0.5346 GB, free: 23.96 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.447e-05/0.976, allocations: 52 kB / 0.5347 GB, free: 23.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.9761, allocations: 108 kB / 0.5348 GB, free: 23.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004074/0.9802, allocations: 1.058 MB / 0.5358 GB, free: 22.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005499/0.9857, allocations: 1.33 MB / 0.5371 GB, free: 21.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003041/0.9888, allocations: 2.505 MB / 0.5396 GB, free: 18.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004567/0.9934, allocations: 318.2 kB / 0.5399 GB, free: 18.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009315/0.9944, allocations: 342.1 kB / 0.5402 GB, free: 18.11 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.004429/0.9988, allocations: 2.251 MB / 0.5424 GB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005329/0.9994, allocations: 288.2 kB / 0.5427 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/1.011, allocations: 5.065 MB / 0.5476 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.549e-05/1.011, allocations: 47.98 kB / 0.5477 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/1.011, allocations: 4 kB / 0.5477 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.061e-05/1.011, allocations: 7.969 kB / 0.5477 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02543/1.037, allocations: 11.58 MB / 0.559 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.799e-05/1.037, allocations: 11.94 kB / 0.559 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/1.039, allocations: 423.4 kB / 0.5594 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004163/1.044, allocations: 0.9112 MB / 0.5603 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005445/1.044, allocations: 60.61 kB / 0.5603 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00369/1.048, allocations: 2.295 MB / 0.5626 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-05/1.048, allocations: 15.89 kB / 0.5626 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01741/1.065, allocations: 7.496 MB / 0.5699 GB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008411/1.066, allocations: 337.3 kB / 0.5702 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007725/1.067, allocations: 52.86 kB / 0.5703 GB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00212/1.069, allocations: 141.1 kB / 0.5704 GB, free: 2.633 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006319/1.07, allocations: 165.6 kB / 0.5706 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/1.07, allocations: 77.38 kB / 0.5707 GB, free: 2.395 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004093/1.074, allocations: 1.791 MB / 0.5724 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.229e-06/1.074, allocations: 4 kB / 0.5724 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006236/1.081, allocations: 1.018 MB / 0.5734 GB, free: 15.58 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.0008923/1.081, allocations: 204.8 kB / 0.5736 GB, free: 15.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01435/1.096, allocations: 6.147 MB / 0.5796 GB, free: 9.207 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.096, allocations: 3.938 kB / 0.5796 GB, free: 9.203 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006659/1.103, allocations: 2.596 MB / 0.5821 GB, free: 6.547 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002565/1.105, allocations: 388.3 kB / 0.5825 GB, free: 6.168 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0284/1.134, allocations: 13.51 MB / 0.5957 GB, free: 8.523 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007708/1.141, allocations: 3.592 MB / 0.5992 GB, free: 4.891 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001607/1.143, allocations: 291.4 kB / 0.5995 GB, free: 4.605 MB / 442.7 MB Notification: Performance of SimCode: time 1.769e-06/1.143, allocations: 0 / 0.5995 GB, free: 4.605 MB / 442.7 MB Notification: Performance of Templates: time 0.4401/1.583, allocations: 114.7 MB / 0.7115 GB, free: 116.9 MB / 490.7 MB