Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002623/0.002628, allocations: 355.3 kB / 15.95 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.167/3.167, allocations: 341.5 MB / 358.2 MB, free: 28.73 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003493/0.003493, allocations: 224.7 kB / 397.9 MB, free: 6.152 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5373/0.5373, allocations: 76.1 MB / 0.5014 GB, free: 0.8203 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006646/0.0006648, allocations: 12 kB / 0.5592 GB, free: 60.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09922/0.09992, allocations: 48.71 MB / 0.6067 GB, free: 11.54 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04056/0.1405, allocations: 29.65 MB / 0.6357 GB, free: 13.8 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02707/0.1677, allocations: 6.999 MB / 0.6425 GB, free: 6.777 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007691/0.1754, allocations: 131.7 kB / 0.6427 GB, free: 6.648 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007412/0.1829, allocations: 1.47 MB / 0.6441 GB, free: 5.172 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3605/0.5434, allocations: 5.148 MB / 0.6491 GB, free: 12.92 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002912/0.5464, allocations: 450.2 kB / 0.6496 GB, free: 12.92 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007931/0.5544, allocations: 4.328 MB / 0.6538 GB, free: 12.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007547/0.562, allocations: 3.358 MB / 0.6571 GB, free: 12.58 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/0.5649, allocations: 1.117 MB / 0.6582 GB, free: 12.58 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.5689, allocations: 1.829 MB / 0.6599 GB, free: 12.58 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001254/0.5702, allocations: 148.3 kB / 0.6601 GB, free: 12.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003657/0.5739, allocations: 0.8798 MB / 0.6609 GB, free: 12.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003325/0.5773, allocations: 1.665 MB / 0.6626 GB, free: 12.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002039/0.5794, allocations: 0.8448 MB / 0.6634 GB, free: 12.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00908/0.5885, allocations: 5.642 MB / 0.6689 GB, free: 10.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.5886, allocations: 0 / 0.6689 GB, free: 10.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.5886, allocations: 0 / 0.6689 GB, free: 10.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003381/0.5889, allocations: 0 / 0.6689 GB, free: 10.21 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01589/0.6048, allocations: 4.136 MB / 0.6729 GB, free: 7.711 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.6049, allocations: 9.625 kB / 0.6729 GB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02323/0.6282, allocations: 3.797 MB / 0.6767 GB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006646/0.6349, allocations: 2.142 MB / 0.6787 GB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/0.6352, allocations: 222.7 kB / 0.679 GB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002011/0.6372, allocations: 300.8 kB / 0.6792 GB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03291/0.6702, allocations: 11.98 MB / 0.6909 GB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001914/0.6704, allocations: 27.8 kB / 0.691 GB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00188/0.6723, allocations: 139.5 kB / 0.6911 GB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008037/0.6804, allocations: 2.707 MB / 0.6937 GB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03591/0.7164, allocations: 11.15 MB / 0.7046 GB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08705/0.8035, allocations: 36.99 MB / 0.7408 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01543/0.819, allocations: 4.694 MB / 0.7453 GB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005817/0.8248, allocations: 2.24 MB / 0.7475 GB, free: 4.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001816/0.8267, allocations: 1.322 MB / 0.7488 GB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.153e-05/0.8268, allocations: 54.2 kB / 0.7489 GB, free: 2.707 MB / 378.7 MB Notification: Performance of pre-optimization done (n=244): time 7.064e-06/0.8268, allocations: 0 / 0.7489 GB, free: 2.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=256): time 0.07137/0.8982, allocations: 13.53 MB / 0.7621 GB, free: 5.113 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.8983, allocations: 77.41 kB / 0.7622 GB, free: 5.027 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007085/0.9054, allocations: 2.793 MB / 0.7649 GB, free: 2.223 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006121/0.9061, allocations: 60.44 kB / 0.7649 GB, free: 2.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003494/0.9096, allocations: 2.956 MB / 0.7678 GB, free: 15.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001825/0.9115, allocations: 0.9416 MB / 0.7687 GB, free: 14.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007985/0.9123, allocations: 112 kB / 0.7689 GB, free: 14.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006968/0.913, allocations: 0.5616 MB / 0.7694 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006912/0.92, allocations: 2.283 MB / 0.7716 GB, free: 11.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01/0.93, allocations: 5.434 MB / 0.7769 GB, free: 4.348 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009522/0.9396, allocations: 3.53 MB / 0.7804 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/0.9398, allocations: 32 kB / 0.7804 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.03891/0.9787, allocations: 8.403 MB / 0.7886 GB, free: 8.383 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001637/0.9789, allocations: 52 kB / 0.7887 GB, free: 8.332 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002778/0.9792, allocations: 112 kB / 0.7888 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0103/0.9896, allocations: 1.037 MB / 0.7898 GB, free: 7.176 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01346/1.003, allocations: 1.316 MB / 0.7911 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006734/1.01, allocations: 2.478 MB / 0.7935 GB, free: 3.246 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.016, allocations: 311.8 kB / 0.7938 GB, free: 2.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/1.017, allocations: 339.7 kB / 0.7941 GB, free: 2.613 MB / 426.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 (715): * Single equations (assignments): 706 * 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 {(3,100.0%),(2,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.006955/1.024, allocations: 2.271 MB / 0.7963 GB, free: 336 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007204/1.025, allocations: 284.3 kB / 0.7966 GB, free: 48 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/1.043, allocations: 4.896 MB / 0.8014 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.615e-05/1.043, allocations: 7.969 kB / 0.8014 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/1.043, allocations: 0 / 0.8014 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008974/1.044, allocations: 321.4 kB / 0.8017 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/1.045, allocations: 39.95 kB / 0.8017 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/1.048, allocations: 127.8 kB / 0.8019 GB, free: 10.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005938/1.048, allocations: 129.8 kB / 0.802 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01339/1.062, allocations: 4.151 MB / 0.806 GB, free: 6.281 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.3238/1.386, allocations: 6.433 MB / 0.8123 GB, free: 151 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00458/1.39, allocations: 1.776 MB / 0.8141 GB, free: 151 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004299/1.395, allocations: 1.698 MB / 0.8157 GB, free: 150.9 MB / 442.7 MB Notification: Performance of Backend: time 1.092e-06/1.395, allocations: 0 / 0.8157 GB, free: 150.9 MB / 442.7 MB [/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 $DER.freeMotionScalarInit.angle_2 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:1984:5-1986:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01554/1.41, allocations: 4.631 MB / 0.8202 GB, free: 149.4 MB / 442.7 MB Notification: Performance of SimCode: time 0.02768/1.438, allocations: 11.89 MB / 0.8318 GB, free: 143 MB / 442.7 MB Notification: Performance of Templates: time 0.1134/1.551, allocations: 41.75 MB / 0.8726 GB, free: 112.3 MB / 442.7 MB