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.FreeMotionScalarInit4.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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.FreeMotionScalarInit4") Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004291/0.0004292, allocations: 12 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.292, allocations: 54.87 MB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.04966/0.3417, allocations: 34.84 MB / 404 MB, free: 9.809 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.3639, allocations: 8.703 MB / 412.7 MB, free: 1.074 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006389/0.3703, allocations: 171.6 kB / 412.9 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005578/0.3759, allocations: 1.793 MB / 414.7 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01736/0.3933, allocations: 5.139 MB / 419.8 MB, free: 9.953 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.3961, allocations: 0.4952 MB / 420.3 MB, free: 9.457 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00526/0.4014, allocations: 2.377 MB / 422.7 MB, free: 7.078 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008137/0.4096, allocations: 4.305 MB / 427 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.4118, allocations: 1.039 MB / 428.1 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.4145, allocations: 1.433 MB / 429.5 MB, free: 252 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007598/0.4153, allocations: 164 kB / 429.6 MB, free: 88 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002569/0.4179, allocations: 0.8973 MB / 430.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002688/0.4207, allocations: 1.695 MB / 432.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.4221, allocations: 0.9361 MB / 433.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009407/0.4315, allocations: 6.31 MB / 439.5 MB, free: 6.219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.336e-06/0.4316, allocations: 4 kB / 439.5 MB, free: 6.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4316, allocations: 0 / 439.5 MB, free: 6.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001647/0.4318, allocations: 4 kB / 439.5 MB, free: 6.211 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.01169/0.4435, allocations: 4.532 MB / 444 MB, free: 1.609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4435, allocations: 12.03 kB / 444 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01694/0.4605, allocations: 3.854 MB / 447.9 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006434/0.467, allocations: 2.531 MB / 450.4 MB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003494/0.4674, allocations: 270.7 kB / 450.7 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00148/0.4689, allocations: 359.7 kB / 451 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03111/0.5, allocations: 12.65 MB / 463.7 MB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000158/0.5002, allocations: 39.66 kB / 463.7 MB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007404/0.501, allocations: 171.7 kB / 463.9 MB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005767/0.5067, allocations: 2.739 MB / 466.6 MB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02983/0.5366, allocations: 11.58 MB / 478.2 MB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3386/0.8753, allocations: 40.22 MB / 0.5063 GB, free: 97.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.013/0.8883, allocations: 4.893 MB / 0.5111 GB, free: 95.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01193/0.9003, allocations: 6.557 MB / 0.5175 GB, free: 93.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.9004, allocations: 54.22 kB / 0.5175 GB, free: 93.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 6.69e-06/0.9004, allocations: 0 / 0.5175 GB, free: 93.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.064/0.9644, allocations: 19.59 MB / 0.5366 GB, free: 80.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.9645, allocations: 76.59 kB / 0.5367 GB, free: 80.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004889/0.9694, allocations: 3.275 MB / 0.5399 GB, free: 77.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003938/0.9699, allocations: 64.52 kB / 0.54 GB, free: 77.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001783/0.9716, allocations: 3.28 MB / 0.5432 GB, free: 74.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009974/0.9727, allocations: 0.9352 MB / 0.5441 GB, free: 73.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004547/0.9731, allocations: 122.9 kB / 0.5442 GB, free: 73.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003654/0.9735, allocations: 0.5753 MB / 0.5448 GB, free: 72.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004493/0.978, allocations: 2.46 MB / 0.5472 GB, free: 70.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006195/0.9843, allocations: 5.848 MB / 0.5529 GB, free: 62.62 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006335/0.9906, allocations: 3.783 MB / 0.5566 GB, free: 58.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-05/0.9908, allocations: 36 kB / 0.5566 GB, free: 58.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02409/1.015, allocations: 10.04 MB / 0.5664 GB, free: 48.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.015, allocations: 56 kB / 0.5665 GB, free: 48.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/1.015, allocations: 120 kB / 0.5666 GB, free: 48.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0106/1.026, allocations: 2.414 MB / 0.5689 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005214/1.031, allocations: 1.357 MB / 0.5703 GB, free: 44.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02144/1.053, allocations: 11.17 MB / 0.5812 GB, free: 33.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004965/1.058, allocations: 336.9 kB / 0.5815 GB, free: 33.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008862/1.058, allocations: 360 kB / 0.5818 GB, free: 32.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 726 * 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: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.004667/1.063, allocations: 2.428 MB / 0.5842 GB, free: 30.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005706/1.064, allocations: 304 kB / 0.5845 GB, free: 30.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0097/1.073, allocations: 4.642 MB / 0.589 GB, free: 25.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.114e-05/1.074, allocations: 49.39 kB / 0.5891 GB, free: 25.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.074, allocations: 4 kB / 0.5891 GB, free: 25.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.852e-05/1.074, allocations: 11.95 kB / 0.5891 GB, free: 25.38 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02213/1.096, allocations: 11 MB / 0.5998 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.629e-05/1.096, allocations: 4.5 kB / 0.5999 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002349/1.098, allocations: 419.3 kB / 0.6003 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002452/1.101, allocations: 0.7047 MB / 0.6009 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004508/1.101, allocations: 53.16 kB / 0.601 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/1.104, allocations: 2.436 MB / 0.6034 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.077e-06/1.104, allocations: 7.938 kB / 0.6034 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/1.117, allocations: 7.123 MB / 0.6103 GB, free: 3.266 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/1.118, allocations: 361 kB / 0.6107 GB, free: 2.891 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006473/1.118, allocations: 46.03 kB / 0.6107 GB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/1.12, allocations: 139.8 kB / 0.6109 GB, free: 2.711 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004002/1.121, allocations: 145.7 kB / 0.611 GB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002326/1.121, allocations: 69.16 kB / 0.6111 GB, free: 2.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003403/1.124, allocations: 2.01 MB / 0.613 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.41e-07/1.124, allocations: 0 / 0.613 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006185/1.13, allocations: 1.144 MB / 0.6141 GB, free: 15.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (206): * Single equations (assignments): 197 * 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.0008198/1.131, allocations: 211 kB / 0.6143 GB, free: 15.15 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0137/1.145, allocations: 6.138 MB / 0.6203 GB, free: 9.023 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.145, allocations: 0 / 0.6203 GB, free: 9.023 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00611/1.151, allocations: 2.529 MB / 0.6228 GB, free: 6.445 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00253/1.154, allocations: 425.8 kB / 0.6232 GB, free: 6.035 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02915/1.183, allocations: 14.04 MB / 0.6369 GB, free: 7.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00767/1.191, allocations: 3.877 MB / 0.6407 GB, free: 3.996 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/1.192, allocations: 295.4 kB / 0.641 GB, free: 3.707 MB / 458.7 MB Notification: Performance of SimCode: time 1.728e-06/1.192, allocations: 0 / 0.641 GB, free: 3.707 MB / 458.7 MB Notification: Performance of Templates: time 0.4292/1.621, allocations: 114.4 MB / 0.7527 GB, free: 98.66 MB / 490.7 MB