Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadModel(ModelicaTest): time 2.017/2.017, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007713/0.0007715, allocations: 12 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3518, allocations: 48.7 MB / 331.2 MB, free: 6.465 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.04763/0.3994, allocations: 34.84 MB / 366 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0242/0.4237, allocations: 8.67 MB / 374.7 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0081/0.4318, allocations: 167.6 kB / 374.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00585/0.4377, allocations: 1.801 MB / 376.7 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0186/0.4564, allocations: 5.135 MB / 381.8 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002961/0.4594, allocations: 0.503 MB / 382.3 MB, free: 11.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005568/0.465, allocations: 2.379 MB / 384.7 MB, free: 8.902 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008582/0.4736, allocations: 4.301 MB / 389 MB, free: 4.547 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002271/0.4759, allocations: 1.039 MB / 390 MB, free: 3.504 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002815/0.4788, allocations: 1.429 MB / 391.5 MB, free: 2.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008159/0.4796, allocations: 164 kB / 391.6 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002683/0.4823, allocations: 0.9011 MB / 392.5 MB, free: 1.008 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002732/0.4851, allocations: 1.695 MB / 394.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.4867, allocations: 0.94 MB / 395.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009738/0.4964, allocations: 6.314 MB / 401.5 MB, free: 8.031 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.702e-06/0.4965, allocations: 0 / 401.5 MB, free: 8.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.99e-06/0.4965, allocations: 3.938 kB / 401.5 MB, free: 8.027 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001786/0.4967, allocations: 0 / 401.5 MB, free: 8.027 MB / 330.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.01198/0.5087, allocations: 4.548 MB / 406 MB, free: 3.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.5088, allocations: 12.02 kB / 406 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0173/0.5261, allocations: 3.85 MB / 409.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006489/0.5326, allocations: 2.523 MB / 412.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003707/0.533, allocations: 270.8 kB / 412.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.5345, allocations: 359.7 kB / 413 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02918/0.5637, allocations: 12.67 MB / 425.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.5639, allocations: 27.81 kB / 425.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001208/0.5652, allocations: 159.8 kB / 425.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005907/0.5711, allocations: 2.747 MB / 428.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0305/0.6016, allocations: 11.6 MB / 440.2 MB, free: 0.668 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07818/0.6799, allocations: 40.21 MB / 480.4 MB, free: 7.531 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01402/0.6939, allocations: 4.9 MB / 485.3 MB, free: 2.402 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2528/0.9468, allocations: 6.544 MB / 491.9 MB, free: 127.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.9469, allocations: 51.94 kB / 491.9 MB, free: 127.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 7.421e-06/0.9469, allocations: 0 / 491.9 MB, free: 127.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.06611/1.013, allocations: 19.58 MB / 0.4995 GB, free: 121.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/1.013, allocations: 72.19 kB / 0.4996 GB, free: 121.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005321/1.018, allocations: 3.279 MB / 0.5028 GB, free: 119.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003846/1.019, allocations: 54.45 kB / 0.5028 GB, free: 119.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001809/1.021, allocations: 3.281 MB / 0.506 GB, free: 116.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/1.022, allocations: 0.9463 MB / 0.507 GB, free: 115.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004557/1.022, allocations: 120.9 kB / 0.5071 GB, free: 115.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003564/1.023, allocations: 0.5788 MB / 0.5077 GB, free: 115.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004528/1.027, allocations: 2.464 MB / 0.5101 GB, free: 112.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006274/1.033, allocations: 5.846 MB / 0.5158 GB, free: 105.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006467/1.04, allocations: 3.791 MB / 0.5195 GB, free: 101.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.481e-05/1.04, allocations: 32 kB / 0.5195 GB, free: 101.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02419/1.064, allocations: 10.03 MB / 0.5293 GB, free: 91.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.975e-05/1.064, allocations: 56.97 kB / 0.5293 GB, free: 91.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001255/1.065, allocations: 120 kB / 0.5295 GB, free: 91.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02076/1.085, allocations: 2.41 MB / 0.5318 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01234/1.098, allocations: 1.361 MB / 0.5331 GB, free: 87.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04975/1.148, allocations: 11.17 MB / 0.544 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007232/1.155, allocations: 328.3 kB / 0.5444 GB, free: 75.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000915/1.156, allocations: 357.6 kB / 0.5447 GB, free: 75.49 MB / 410.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.004828/1.161, allocations: 2.435 MB / 0.5471 GB, free: 73.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006159/1.161, allocations: 304 kB / 0.5474 GB, free: 72.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009471/1.171, allocations: 4.648 MB / 0.5519 GB, free: 68.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.433e-05/1.171, allocations: 44.95 kB / 0.552 GB, free: 67.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/1.171, allocations: 4 kB / 0.552 GB, free: 67.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-05/1.171, allocations: 15.95 kB / 0.552 GB, free: 67.97 MB / 410.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.02296/1.194, allocations: 11 MB / 0.5627 GB, free: 56.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.277e-05/1.194, allocations: 4 kB / 0.5627 GB, free: 56.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002414/1.196, allocations: 415.4 kB / 0.5631 GB, free: 56.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002479/1.199, allocations: 0.6933 MB / 0.5638 GB, free: 55.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/1.199, allocations: 57.84 kB / 0.5638 GB, free: 55.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/1.202, allocations: 2.432 MB / 0.5662 GB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.243e-06/1.202, allocations: 19.95 kB / 0.5662 GB, free: 53.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/1.216, allocations: 7.125 MB / 0.5732 GB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007892/1.217, allocations: 357 kB / 0.5735 GB, free: 45.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006941/1.218, allocations: 44 kB / 0.5736 GB, free: 45.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/1.219, allocations: 146.5 kB / 0.5737 GB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003943/1.22, allocations: 137.7 kB / 0.5739 GB, free: 45.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002273/1.22, allocations: 67.98 kB / 0.5739 GB, free: 45.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003472/1.223, allocations: 2.01 MB / 0.5759 GB, free: 43.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.55e-07/1.224, allocations: 0 / 0.5759 GB, free: 43.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006136/1.23, allocations: 1.151 MB / 0.577 GB, free: 41.95 MB / 410.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.0007604/1.23, allocations: 197.8 kB / 0.5772 GB, free: 41.75 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986: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.1/Mechanics/MultiBody/Joints.mo:1990:5-1992: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.1/Mechanics/MultiBody/Joints.mo:1987:5-1989: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.01299/1.243, allocations: 6.133 MB / 0.5832 GB, free: 35.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.244, allocations: 1.938 kB / 0.5832 GB, free: 35.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008882/1.252, allocations: 2.534 MB / 0.5857 GB, free: 33.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/1.256, allocations: 429.8 kB / 0.5861 GB, free: 32.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02786/1.284, allocations: 14.06 MB / 0.5998 GB, free: 18.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006107/1.29, allocations: 3.865 MB / 0.6036 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/1.292, allocations: 303.4 kB / 0.6039 GB, free: 14.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/1.292, allocations: 0 / 0.6039 GB, free: 14.3 MB / 410.7 MB Notification: Performance of Templates: time 0.3992/1.691, allocations: 114.4 MB / 0.7155 GB, free: 61.45 MB / 426.7 MB