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.FreeMotionScalarInit3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_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.FreeMotionScalarInit3") Notification: Performance of loadModel(ModelicaTest): time 2.194/2.194, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.459e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2757, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1548/0.4306, allocations: 100.9 MB / 459 MB, free: 9.875 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4309, allocations: 75.95 kB / 459 MB, free: 9.801 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5648/0.9957, allocations: 95.68 MB / 0.5417 GB, free: 26.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.001e-06/0.9958, allocations: 0 / 0.5417 GB, free: 26.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001805/0.9959, allocations: 88 kB / 0.5418 GB, free: 25.96 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.01682/1.013, allocations: 4.643 MB / 0.5463 GB, free: 21.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/1.013, allocations: 12.03 kB / 0.5464 GB, free: 21.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01871/1.032, allocations: 3.62 MB / 0.5499 GB, free: 17.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/1.046, allocations: 4.878 MB / 0.5547 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002771/1.046, allocations: 160.3 kB / 0.5548 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002211/1.048, allocations: 291.9 kB / 0.5551 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02194/1.07, allocations: 8.423 MB / 0.5633 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04899/1.119, allocations: 11.12 MB / 0.5742 GB, free: 8.152 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003797/1.12, allocations: 31.7 kB / 0.5742 GB, free: 8.121 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002714/1.122, allocations: 16 kB / 0.5742 GB, free: 8.105 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004896/1.127, allocations: 1.314 MB / 0.5755 GB, free: 6.785 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08528/1.213, allocations: 39.4 MB / 0.614 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007542/1.22, allocations: 4.286 MB / 0.6182 GB, free: 10.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00457/1.225, allocations: 2.289 MB / 0.6204 GB, free: 7.754 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001768/1.227, allocations: 1.315 MB / 0.6217 GB, free: 6.219 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.052e-05/1.227, allocations: 68.48 kB / 0.6218 GB, free: 6.141 MB / 458.7 MB Notification: Performance of pre-optimization done (n=262): time 7.357e-06/1.227, allocations: 0 / 0.6218 GB, free: 6.141 MB / 458.7 MB Notification: Performance of matching and sorting (n=271): time 0.3028/1.53, allocations: 14.33 MB / 0.6357 GB, free: 104.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/1.53, allocations: 100.9 kB / 0.6358 GB, free: 104.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/1.534, allocations: 2.584 MB / 0.6384 GB, free: 104.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004104/1.535, allocations: 29.14 kB / 0.6384 GB, free: 104.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001977/1.537, allocations: 3.286 MB / 0.6416 GB, free: 102.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002095/1.539, allocations: 0.9749 MB / 0.6426 GB, free: 101.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009067/1.54, allocations: 3.875 kB / 0.6426 GB, free: 101.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008574/1.541, allocations: 0.5947 MB / 0.6431 GB, free: 101.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008445/1.549, allocations: 2.335 MB / 0.6454 GB, free: 101.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01161/1.561, allocations: 5.94 MB / 0.6512 GB, free: 96.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/1.573, allocations: 3.772 MB / 0.6549 GB, free: 96.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002019/1.574, allocations: 38.41 kB / 0.6549 GB, free: 96.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.03697/1.611, allocations: 8.411 MB / 0.6632 GB, free: 96.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001792/1.611, allocations: 66.05 kB / 0.6632 GB, free: 96.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000259/1.611, allocations: 130 kB / 0.6633 GB, free: 96.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007899/1.619, allocations: 1.134 MB / 0.6645 GB, free: 96.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008929/1.628, allocations: 1.485 MB / 0.6659 GB, free: 96.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006563/1.635, allocations: 4.483 MB / 0.6703 GB, free: 94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005505/1.64, allocations: 218.6 kB / 0.6705 GB, free: 94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/1.642, allocations: 380.3 kB / 0.6709 GB, free: 93.95 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (801): * Single equations (assignments): 793 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.001602/1.643, allocations: 432.9 kB / 0.6713 GB, free: 93.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007261/1.644, allocations: 309.5 kB / 0.6716 GB, free: 93.42 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.654, allocations: 4.767 MB / 0.6762 GB, free: 91.81 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.134e-05/1.654, allocations: 51.67 kB / 0.6763 GB, free: 91.81 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/1.654, allocations: 0 / 0.6763 GB, free: 91.81 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.72e-05/1.654, allocations: 13.39 kB / 0.6763 GB, free: 91.81 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0229/1.677, allocations: 10.6 MB / 0.6866 GB, free: 88.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.576e-05/1.677, allocations: 10.41 kB / 0.6866 GB, free: 88.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002682/1.68, allocations: 446.1 kB / 0.6871 GB, free: 88.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002415/1.682, allocations: 0.6578 MB / 0.6877 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004225/1.683, allocations: 30.38 kB / 0.6877 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/1.686, allocations: 2.356 MB / 0.69 GB, free: 86.49 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/1.686, allocations: 17.16 kB / 0.69 GB, free: 86.48 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/1.698, allocations: 8.014 MB / 0.6979 GB, free: 79.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008899/1.699, allocations: 354.1 kB / 0.6982 GB, free: 79.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008172/1.7, allocations: 12 kB / 0.6982 GB, free: 79.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/1.702, allocations: 114.9 kB / 0.6983 GB, free: 79.11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004783/1.703, allocations: 167 kB / 0.6985 GB, free: 78.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/1.703, allocations: 82.02 kB / 0.6986 GB, free: 78.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003083/1.706, allocations: 1.688 MB / 0.7002 GB, free: 77.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.706, allocations: 0 / 0.7002 GB, free: 77.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01047/1.717, allocations: 0.9427 MB / 0.7011 GB, free: 76.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 213 * 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.001055/1.718, allocations: 174.6 kB / 0.7013 GB, free: 76.36 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01049/1.728, allocations: 5.769 MB / 0.7069 GB, free: 71.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/1.728, allocations: 0 / 0.7069 GB, free: 71.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00475/1.733, allocations: 2.521 MB / 0.7094 GB, free: 68.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/1.735, allocations: 310.5 kB / 0.7097 GB, free: 68.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02024/1.755, allocations: 10.38 MB / 0.7198 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006259/1.762, allocations: 3.832 MB / 0.7236 GB, free: 56.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001441/1.763, allocations: 301.7 kB / 0.7239 GB, free: 56.17 MB / 458.7 MB Notification: Performance of SimCode: time 2.838e-06/1.763, allocations: 0 / 0.7239 GB, free: 56.17 MB / 458.7 MB Notification: Performance of Templates: time 0.4909/2.254, allocations: 111.1 MB / 0.8324 GB, free: 131.4 MB / 490.7 MB