Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002515/0.00252, allocations: 348.4 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.597/3.597, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003614/0.003614, allocations: 225.1 kB / 397.9 MB, free: 4.988 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5002/0.5002, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004689/0.0004691, allocations: 12 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08573/0.08623, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.3653/0.4516, allocations: 36.82 MB / 0.6427 GB, free: 69.02 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02322/0.4749, allocations: 8.341 MB / 0.6508 GB, free: 63.44 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008536/0.4835, allocations: 171.1 kB / 0.651 GB, free: 63.41 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006817/0.4903, allocations: 1.82 MB / 0.6528 GB, free: 62.82 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02087/0.5113, allocations: 6.282 MB / 0.6589 GB, free: 58.84 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.5148, allocations: 0.511 MB / 0.6594 GB, free: 58.51 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00742/0.5223, allocations: 4.757 MB / 0.6641 GB, free: 54.11 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00794/0.5303, allocations: 4.332 MB / 0.6683 GB, free: 49.86 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002509/0.5328, allocations: 1.245 MB / 0.6695 GB, free: 48.61 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003689/0.5366, allocations: 2.009 MB / 0.6715 GB, free: 46.59 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009472/0.5376, allocations: 164 kB / 0.6716 GB, free: 46.43 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.5405, allocations: 0.9323 MB / 0.6725 GB, free: 45.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00226/0.5428, allocations: 1.815 MB / 0.6743 GB, free: 43.68 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.5439, allocations: 0.94 MB / 0.6752 GB, free: 42.73 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007881/0.5518, allocations: 6.301 MB / 0.6814 GB, free: 36.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.5519, allocations: 0 / 0.6814 GB, free: 36.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5519, allocations: 0 / 0.6814 GB, free: 36.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000235/0.5521, allocations: 0 / 0.6814 GB, free: 36.41 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.01379/0.5659, allocations: 4.535 MB / 0.6858 GB, free: 31.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.566, allocations: 8.031 kB / 0.6858 GB, free: 31.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02213/0.5882, allocations: 3.839 MB / 0.6896 GB, free: 27.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006219/0.5944, allocations: 2.344 MB / 0.6919 GB, free: 25.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.5947, allocations: 270.8 kB / 0.6921 GB, free: 25.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/0.5962, allocations: 347.8 kB / 0.6924 GB, free: 24.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03346/0.6297, allocations: 12.66 MB / 0.7048 GB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002869/0.63, allocations: 31.81 kB / 0.7048 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002077/0.6321, allocations: 163.8 kB / 0.705 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007055/0.6392, allocations: 2.747 MB / 0.7077 GB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03354/0.6728, allocations: 11.59 MB / 0.719 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09755/0.7704, allocations: 40.11 MB / 0.7582 GB, free: 4.383 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3/1.071, allocations: 4.891 MB / 0.7629 GB, free: 117.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005973/1.077, allocations: 2.382 MB / 0.7653 GB, free: 117.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01655/1.093, allocations: 6.501 MB / 0.7716 GB, free: 115.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/1.093, allocations: 53.92 kB / 0.7717 GB, free: 115.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 8.375e-06/1.093, allocations: 0 / 0.7717 GB, free: 115.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.1104/1.204, allocations: 19.02 MB / 0.7903 GB, free: 109.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/1.204, allocations: 73.28 kB / 0.7903 GB, free: 109.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008208/1.212, allocations: 3.157 MB / 0.7934 GB, free: 108.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005246/1.213, allocations: 62.61 kB / 0.7935 GB, free: 108.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002538/1.215, allocations: 3.292 MB / 0.7967 GB, free: 105.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00143/1.217, allocations: 0.9391 MB / 0.7976 GB, free: 105.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007445/1.217, allocations: 122.2 kB / 0.7977 GB, free: 105.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005062/1.218, allocations: 0.5714 MB / 0.7983 GB, free: 104.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006224/1.224, allocations: 2.474 MB / 0.8007 GB, free: 104 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00845/1.233, allocations: 5.858 MB / 0.8064 GB, free: 98.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008427/1.241, allocations: 3.792 MB / 0.8101 GB, free: 95.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.241, allocations: 32 kB / 0.8101 GB, free: 95.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.03371/1.275, allocations: 10.13 MB / 0.82 GB, free: 86.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.34e-05/1.275, allocations: 59.95 kB / 0.8201 GB, free: 86.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/1.275, allocations: 116 kB / 0.8202 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01675/1.292, allocations: 2.407 MB / 0.8226 GB, free: 83.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008057/1.3, allocations: 1.365 MB / 0.8239 GB, free: 82.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02818/1.329, allocations: 10.73 MB / 0.8344 GB, free: 71.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006596/1.335, allocations: 330.2 kB / 0.8347 GB, free: 71.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/1.336, allocations: 356 kB / 0.835 GB, free: 70.84 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 (738): * Single equations (assignments): 730 * 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.006102/1.343, allocations: 2.437 MB / 0.8374 GB, free: 68.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008057/1.343, allocations: 300.1 kB / 0.8377 GB, free: 68.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/1.356, allocations: 4.647 MB / 0.8422 GB, free: 63.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.924e-05/1.357, allocations: 11.95 kB / 0.8422 GB, free: 63.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/1.357, allocations: 0 / 0.8422 GB, free: 63.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/1.358, allocations: 351.9 kB / 0.8426 GB, free: 63.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001353/1.359, allocations: 40 kB / 0.8426 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002982/1.362, allocations: 142.6 kB / 0.8427 GB, free: 62.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006682/1.363, allocations: 125.8 kB / 0.8429 GB, free: 62.72 MB / 410.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01327/1.376, allocations: 4.388 MB / 0.8471 GB, free: 58.32 MB / 410.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02583/1.402, allocations: 6.654 MB / 0.8536 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00703/1.409, allocations: 1.851 MB / 0.8555 GB, free: 49.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004185/1.413, allocations: 1.92 MB / 0.8573 GB, free: 47.82 MB / 410.7 MB Notification: Performance of Backend: time 1.613e-06/1.413, allocations: 0 / 0.8573 GB, free: 47.82 MB / 410.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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.02563/1.439, allocations: 4.763 MB / 0.862 GB, free: 43.1 MB / 410.7 MB Notification: Performance of SimCode: time 0.02789/1.467, allocations: 12.68 MB / 0.8744 GB, free: 30.45 MB / 410.7 MB Notification: Performance of Templates: time 0.4993/1.966, allocations: 50.18 MB / 0.9234 GB, free: 117.7 MB / 426.7 MB