Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.0007719/0.0007718, allocations: 84.22 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.00108/0.001081, 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.464/1.464, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3305/0.3305, allocations: 38.03 MB / 308.4 MB, free: 10.37 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.1. 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.0005497/0.0005499, allocations: 20 kB / 376.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1282, allocations: 57.52 MB / 434 MB, free: 5.535 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.2721/0.4004, allocations: 38.37 MB / 472.3 MB, free: 32.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01969/0.4201, allocations: 8.69 MB / 481 MB, free: 28.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007545/0.4277, allocations: 174.6 kB / 481.2 MB, free: 28.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005063/0.4328, allocations: 1.923 MB / 483.1 MB, free: 27.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01339/0.4462, allocations: 5.632 MB / 488.8 MB, free: 25.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002409/0.4486, allocations: 498.6 kB / 489.2 MB, free: 25.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005739/0.4543, allocations: 4.773 MB / 494 MB, free: 23.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005292/0.4597, allocations: 4.352 MB / 498.4 MB, free: 21.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002446/0.4622, allocations: 1.27 MB / 499.6 MB, free: 21.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003998/0.4662, allocations: 2.03 MB / 0.4899 GB, free: 20.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008899/0.4671, allocations: 168.9 kB / 0.4901 GB, free: 20.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00257/0.4697, allocations: 0.9195 MB / 0.491 GB, free: 20.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002124/0.4718, allocations: 1.845 MB / 0.4928 GB, free: 19.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.473, allocations: 0.9467 MB / 0.4937 GB, free: 19.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008459/0.4814, allocations: 6.351 MB / 0.4999 GB, free: 16.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4815, allocations: 1.219 kB / 0.4999 GB, free: 16.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.569e-06/0.4815, allocations: 0 / 0.4999 GB, free: 16.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000361/0.4819, allocations: 3.938 kB / 0.4999 GB, free: 16.68 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.01131/0.4932, allocations: 4.513 MB / 0.5043 GB, free: 13.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.4932, allocations: 8.938 kB / 0.5043 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/0.5036, allocations: 3.292 MB / 0.5075 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005692/0.5093, allocations: 2.363 MB / 0.5098 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.5096, allocations: 267.9 kB / 0.5101 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001357/0.5109, allocations: 363.6 kB / 0.5104 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01834/0.5293, allocations: 12.69 MB / 0.5228 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.485e-05/0.5294, allocations: 35.72 kB / 0.5229 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004118/0.5298, allocations: 163.8 kB / 0.523 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003727/0.5336, allocations: 2.766 MB / 0.5257 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02184/0.5554, allocations: 11.58 MB / 0.537 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06075/0.6162, allocations: 40.53 MB / 0.5766 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.6267, allocations: 5.007 MB / 0.5815 GB, free: 3.621 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003117/0.6299, allocations: 2.405 MB / 0.5839 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009304/0.6392, allocations: 6.866 MB / 0.5906 GB, free: 9.973 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.6393, allocations: 52.56 kB / 0.5906 GB, free: 9.914 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.881e-06/0.6393, allocations: 3.938 kB / 0.5906 GB, free: 9.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=259): time 0.04499/0.6843, allocations: 19.37 MB / 0.6095 GB, free: 6.398 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.6844, allocations: 73.41 kB / 0.6096 GB, free: 6.312 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/0.6891, allocations: 3.198 MB / 0.6127 GB, free: 3.102 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.6894, allocations: 61.7 kB / 0.6128 GB, free: 3.035 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002204/0.6916, allocations: 3.305 MB / 0.616 GB, free: 15.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/0.6926, allocations: 0.9675 MB / 0.617 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/0.6929, allocations: 120 kB / 0.6171 GB, free: 14.58 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004706/0.6933, allocations: 0.5746 MB / 0.6176 GB, free: 14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003542/0.6969, allocations: 2.499 MB / 0.6201 GB, free: 11.49 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005554/0.7024, allocations: 5.891 MB / 0.6258 GB, free: 3.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005454/0.7079, allocations: 3.826 MB / 0.6296 GB, free: 104 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.742e-05/0.708, allocations: 32 kB / 0.6296 GB, free: 72 kB / 494.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.2674/0.9754, allocations: 10.16 MB / 0.6395 GB, free: 141.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.252e-05/0.9755, allocations: 56.5 kB / 0.6396 GB, free: 141.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/0.9756, allocations: 116.8 kB / 0.6397 GB, free: 141.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007486/0.9831, allocations: 2.389 MB / 0.642 GB, free: 141.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/0.9877, allocations: 1.376 MB / 0.6434 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01484/1.003, allocations: 10.72 MB / 0.6538 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004593/1.007, allocations: 328.7 kB / 0.6541 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/1.008, allocations: 360.5 kB / 0.6545 GB, free: 136.9 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.00668/1.015, allocations: 2.447 MB / 0.6569 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000776/1.016, allocations: 308 kB / 0.6572 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008704/1.025, allocations: 4.691 MB / 0.6617 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.471e-05/1.025, allocations: 48.19 kB / 0.6618 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/1.025, allocations: 2.375 kB / 0.6618 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/1.025, allocations: 17.67 kB / 0.6618 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02039/1.045, allocations: 11.01 MB / 0.6726 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/1.045, allocations: 7.844 kB / 0.6726 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/1.047, allocations: 423.2 kB / 0.673 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/1.049, allocations: 0.6987 MB / 0.6737 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002188/1.049, allocations: 58.62 kB / 0.6737 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/1.052, allocations: 2.411 MB / 0.6761 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.052, allocations: 3.844 kB / 0.6761 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009116/1.061, allocations: 7.206 MB / 0.6831 GB, free: 126 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009388/1.062, allocations: 360.5 kB / 0.6834 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003875/1.062, allocations: 48.97 kB / 0.6835 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/1.063, allocations: 143.4 kB / 0.6836 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/1.064, allocations: 139.7 kB / 0.6838 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/1.064, allocations: 81.33 kB / 0.6838 GB, free: 125.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002904/1.067, allocations: 1.932 MB / 0.6857 GB, free: 124 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.067, allocations: 0 / 0.6857 GB, free: 124 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005083/1.072, allocations: 1.141 MB / 0.6868 GB, free: 122.9 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.0005094/1.072, allocations: 193 kB / 0.687 GB, free: 122.7 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.008593/1.081, allocations: 6.219 MB / 0.6931 GB, free: 117.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.081, allocations: 0 / 0.6931 GB, free: 117.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003642/1.085, allocations: 2.552 MB / 0.6956 GB, free: 115 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/1.087, allocations: 459.2 kB / 0.696 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01935/1.107, allocations: 13.66 MB / 0.7094 GB, free: 102 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003188/1.11, allocations: 3.8 MB / 0.7131 GB, free: 98.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004076/1.114, allocations: 2.084 MB / 0.7151 GB, free: 96.11 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006375/1.115, allocations: 243.4 kB / 0.7153 GB, free: 95.88 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/1.115, allocations: 4 kB / 0.7153 GB, free: 95.87 MB / 494.1 MB Notification: Performance of Templates: time 0.05623/1.171, allocations: 39.48 MB / 0.7539 GB, free: 56.5 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1) Environment - environmentSimulation: