Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009681/0.0009679, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001026, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3986/0.3986, allocations: 39.99 MB / 310.4 MB, free: 9.926 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009175/0.0009177, allocations: 16 kB / 378.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.193, allocations: 57.95 MB / 436.8 MB, free: 2.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.3908/0.5838, allocations: 38.37 MB / 475.2 MB, free: 31.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02422/0.6081, allocations: 8.699 MB / 483.9 MB, free: 25.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01068/0.6188, allocations: 174.9 kB / 484 MB, free: 25.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007515/0.6263, allocations: 1.916 MB / 485.9 MB, free: 25.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01783/0.6442, allocations: 5.638 MB / 491.6 MB, free: 22.69 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003347/0.6476, allocations: 496.5 kB / 492.1 MB, free: 22.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007599/0.6552, allocations: 4.776 MB / 496.8 MB, free: 20.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009872/0.6651, allocations: 4.346 MB / 0.4894 GB, free: 19.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004065/0.6692, allocations: 1.269 MB / 0.4907 GB, free: 18.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004995/0.6742, allocations: 2.032 MB / 0.4927 GB, free: 18.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00127/0.6755, allocations: 166.7 kB / 0.4928 GB, free: 18.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003281/0.6788, allocations: 0.9212 MB / 0.4937 GB, free: 17.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003177/0.682, allocations: 1.849 MB / 0.4955 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002154/0.6842, allocations: 0.9487 MB / 0.4965 GB, free: 16.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.6973, allocations: 6.345 MB / 0.5027 GB, free: 13.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.6973, allocations: 0 / 0.5027 GB, free: 13.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.131e-06/0.6973, allocations: 4 kB / 0.5027 GB, free: 13.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005787/0.6979, allocations: 1.812 kB / 0.5027 GB, free: 13.7 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01764/0.7156, allocations: 4.522 MB / 0.5071 GB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.7157, allocations: 13.06 kB / 0.5071 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01259/0.7283, allocations: 3.297 MB / 0.5103 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00714/0.7354, allocations: 2.343 MB / 0.5126 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004349/0.7359, allocations: 272.5 kB / 0.5129 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002909/0.7388, allocations: 359.2 kB / 0.5132 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03086/0.7697, allocations: 12.69 MB / 0.5256 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002429/0.77, allocations: 39.66 kB / 0.5256 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002112/0.7722, allocations: 163.8 kB / 0.5258 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005031/0.7772, allocations: 2.766 MB / 0.5285 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03239/0.8096, allocations: 11.58 MB / 0.5398 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08004/0.8897, allocations: 40.54 MB / 0.5794 GB, free: 4.602 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01113/0.9009, allocations: 5.008 MB / 0.5843 GB, free: 15.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003825/0.9048, allocations: 2.406 MB / 0.5866 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.9176, allocations: 6.874 MB / 0.5933 GB, free: 5.707 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/0.9176, allocations: 52.56 kB / 0.5934 GB, free: 5.648 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 6.342e-06/0.9177, allocations: 0 / 0.5934 GB, free: 5.648 MB / 462.1 MB Notification: Performance of matching and sorting (n=259): time 0.05547/0.9731, allocations: 19.37 MB / 0.6123 GB, free: 2.141 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.9733, allocations: 77.36 kB / 0.6124 GB, free: 2.051 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007944/0.9812, allocations: 3.187 MB / 0.6155 GB, free: 14.85 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000817/0.9821, allocations: 61.7 kB / 0.6156 GB, free: 14.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004125/0.9862, allocations: 3.305 MB / 0.6188 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002543/0.9888, allocations: 0.9675 MB / 0.6197 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001831/0.9907, allocations: 124 kB / 0.6198 GB, free: 10.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.00106/0.9918, allocations: 0.5746 MB / 0.6204 GB, free: 9.746 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005776/0.9976, allocations: 2.491 MB / 0.6228 GB, free: 7.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3312/1.329, allocations: 5.89 MB / 0.6286 GB, free: 139.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007626/1.336, allocations: 3.83 MB / 0.6323 GB, free: 139.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/1.337, allocations: 32.59 kB / 0.6324 GB, free: 139.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02373/1.36, allocations: 10.16 MB / 0.6423 GB, free: 137.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/1.361, allocations: 61.34 kB / 0.6423 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/1.361, allocations: 115.8 kB / 0.6425 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007542/1.368, allocations: 2.392 MB / 0.6448 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004925/1.373, allocations: 1.369 MB / 0.6461 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/1.39, allocations: 10.71 MB / 0.6566 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/1.395, allocations: 331.4 kB / 0.6569 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001689/1.397, allocations: 366.3 kB / 0.6573 GB, free: 132 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 30 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (747): * Single equations (assignments): 739 * 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 {4 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.008043/1.405, allocations: 2.45 MB / 0.6596 GB, free: 130.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.406, allocations: 311.2 kB / 0.6599 GB, free: 130.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/1.419, allocations: 4.686 MB / 0.6645 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001354/1.419, allocations: 52.56 kB / 0.6646 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.698e-05/1.419, allocations: 5.594 kB / 0.6646 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.843e-05/1.419, allocations: 11.27 kB / 0.6646 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04364/1.463, allocations: 11.01 MB / 0.6753 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.673e-05/1.463, allocations: 4.531 kB / 0.6753 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002824/1.466, allocations: 429.3 kB / 0.6757 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002914/1.469, allocations: 0.6982 MB / 0.6764 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005609/1.469, allocations: 53.11 kB / 0.6765 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/1.473, allocations: 2.418 MB / 0.6788 GB, free: 123.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/1.473, allocations: 6.719 kB / 0.6788 GB, free: 123.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/1.489, allocations: 7.202 MB / 0.6859 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/1.49, allocations: 356.5 kB / 0.6862 GB, free: 119.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.492, allocations: 54.88 kB / 0.6863 GB, free: 119.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002884/1.495, allocations: 144.7 kB / 0.6864 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000528/1.495, allocations: 142.8 kB / 0.6865 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003677/1.496, allocations: 71.59 kB / 0.6866 GB, free: 119.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006657/1.502, allocations: 1.935 MB / 0.6885 GB, free: 117.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.873e-06/1.502, allocations: 0 / 0.6885 GB, free: 117.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01119/1.514, allocations: 1.148 MB / 0.6896 GB, free: 116.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (212): * Single equations (assignments): 203 * 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.001179/1.515, allocations: 186.6 kB / 0.6898 GB, free: 116.4 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01516/1.53, allocations: 6.221 MB / 0.6959 GB, free: 111 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/1.53, allocations: 0 / 0.6959 GB, free: 111 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005742/1.536, allocations: 2.549 MB / 0.6984 GB, free: 108.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005037/1.541, allocations: 471.3 kB / 0.6988 GB, free: 108.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03195/1.573, allocations: 13.64 MB / 0.7121 GB, free: 95.39 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008851/1.582, allocations: 3.793 MB / 0.7158 GB, free: 91.56 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008792/1.591, allocations: 2.087 MB / 0.7179 GB, free: 89.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/1.593, allocations: 247.4 kB / 0.7181 GB, free: 89.22 MB / 494.1 MB Notification: Performance of SimCode: time 3.286e-06/1.593, allocations: 0 / 0.7181 GB, free: 89.22 MB / 494.1 MB Notification: Performance of Templates: time 0.07944/1.672, allocations: 39.48 MB / 0.7567 GB, free: 49.84 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) Environment - environmentSimulation: