Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2306/0.2306, allocations: 46.11 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 75.16 kB / 417.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1463, allocations: 62.45 MB / 480 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01202/0.1584, allocations: 11.71 MB / 491.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008283/0.1667, allocations: 3.948 MB / 495.7 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002157/0.1689, allocations: 59.88 kB / 495.7 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002478/0.1714, allocations: 1.175 MB / 496.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004474/0.1759, allocations: 1.728 MB / 498.6 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.1772, allocations: 499 kB / 499.1 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005126/0.1823, allocations: 4.052 MB / 0.4914 GB, free: 14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002096/0.1844, allocations: 1.787 MB / 0.4931 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001547/0.186, allocations: 1.152 MB / 0.4943 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001837/0.1878, allocations: 1.658 MB / 0.4959 GB, free: 9.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003929/0.1882, allocations: 220 kB / 0.4961 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.1903, allocations: 1.073 MB / 0.4971 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.1917, allocations: 1.578 MB / 0.4987 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00198/0.1937, allocations: 1.832 MB / 0.5005 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3329/0.5266, allocations: 5.813 MB / 0.5061 GB, free: 18.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.5267, allocations: 0 / 0.5061 GB, free: 18.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5267, allocations: 1.75 kB / 0.5061 GB, free: 18.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002801/0.527, allocations: 0 / 0.5061 GB, free: 18.59 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: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.01249/0.5395, allocations: 4.101 MB / 0.5101 GB, free: 16.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.5395, allocations: 11.81 kB / 0.5102 GB, free: 16.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01337/0.5529, allocations: 3.181 MB / 0.5133 GB, free: 16.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006478/0.5595, allocations: 1.998 MB / 0.5152 GB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002655/0.5598, allocations: 181 kB / 0.5154 GB, free: 16.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002215/0.562, allocations: 330.8 kB / 0.5157 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02102/0.583, allocations: 10.3 MB / 0.5258 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001061/0.5832, allocations: 24.22 kB / 0.5258 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004388/0.5836, allocations: 115.3 kB / 0.5259 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004149/0.5878, allocations: 2.437 MB / 0.5283 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01957/0.6074, allocations: 9.844 MB / 0.5379 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05992/0.6673, allocations: 34.6 MB / 0.5717 GB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009119/0.6765, allocations: 4.305 MB / 0.5759 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003632/0.6802, allocations: 2.156 MB / 0.578 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001495/0.6817, allocations: 1.316 MB / 0.5793 GB, free: 13.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.6818, allocations: 51.38 kB / 0.5793 GB, free: 13.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=236): time 5.42e-06/0.6818, allocations: 0 / 0.5793 GB, free: 13.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.04078/0.7226, allocations: 16.74 MB / 0.5957 GB, free: 12.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001595/0.7242, allocations: 1.615 MB / 0.5972 GB, free: 10.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/0.7278, allocations: 2.665 MB / 0.5998 GB, free: 7.957 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004488/0.7283, allocations: 59.97 kB / 0.5999 GB, free: 7.895 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002013/0.7303, allocations: 2.609 MB / 0.6024 GB, free: 5.297 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.7314, allocations: 0.92 MB / 0.6033 GB, free: 4.383 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/0.7331, allocations: 1.104 MB / 0.6044 GB, free: 3.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.7333, allocations: 305.2 kB / 0.6047 GB, free: 2.969 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004652/0.7379, allocations: 2.412 MB / 0.6071 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006995/0.745, allocations: 5.352 MB / 0.6123 GB, free: 9.824 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.7565, allocations: 8.417 MB / 0.6205 GB, free: 408 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/0.7567, allocations: 32 kB / 0.6205 GB, free: 376 kB / 462.1 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.024/0.7807, allocations: 9.697 MB / 0.63 GB, free: 6.992 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.497e-05/0.7808, allocations: 51.77 kB / 0.6301 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0145/0.7953, allocations: 4.889 MB / 0.6348 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/0.8076, allocations: 2.464 MB / 0.6372 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00469/0.8123, allocations: 1.255 MB / 0.6385 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009266/0.8216, allocations: 6.398 MB / 0.6447 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004667/0.8263, allocations: 390.7 kB / 0.6451 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009041/0.8273, allocations: 316 kB / 0.6454 GB, free: 6.941 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (672): * Single equations (assignments): 660 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003727/0.831, allocations: 2.036 MB / 0.6474 GB, free: 4.895 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005276/0.8316, allocations: 268.5 kB / 0.6476 GB, free: 4.629 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/0.8416, allocations: 5.318 MB / 0.6528 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009165/0.8508, allocations: 4.608 MB / 0.6573 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.8509, allocations: 0 / 0.6573 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.193e-05/0.8509, allocations: 7.969 kB / 0.6573 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02597/0.8769, allocations: 14.32 MB / 0.6713 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/0.8769, allocations: 12 kB / 0.6713 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/0.8788, allocations: 399.4 kB / 0.6717 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004614/0.8834, allocations: 1.244 MB / 0.6729 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004255/0.8838, allocations: 66.45 kB / 0.673 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00525/0.8891, allocations: 4.756 MB / 0.6776 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001186/0.8903, allocations: 1.566 MB / 0.6792 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/0.904, allocations: 7.992 MB / 0.687 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008786/0.9049, allocations: 329.5 kB / 0.6873 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000472/0.9054, allocations: 58.72 kB / 0.6873 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.9069, allocations: 203.6 kB / 0.6875 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003924/0.9073, allocations: 156.9 kB / 0.6877 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/0.9075, allocations: 75.97 kB / 0.6878 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002409/0.9099, allocations: 1.644 MB / 0.6894 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/0.91, allocations: 0 / 0.6894 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004358/0.9143, allocations: 1.029 MB / 0.6904 GB, free: 7.98 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005009/0.9148, allocations: 198.6 kB / 0.6906 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01733/0.9322, allocations: 9.877 MB / 0.7002 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/0.9322, allocations: 8.188 kB / 0.7002 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005304/0.9375, allocations: 2.851 MB / 0.703 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.9402, allocations: 379.7 kB / 0.7034 GB, free: 10.57 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01755/0.9578, allocations: 10.32 MB / 0.7134 GB, free: 100 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2355/1.193, allocations: 3.178 MB / 0.7165 GB, free: 197.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005287/1.199, allocations: 2.056 MB / 0.7186 GB, free: 197.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008217/1.199, allocations: 219.4 kB / 0.7188 GB, free: 197.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/1.199, allocations: 0 / 0.7188 GB, free: 197.4 MB / 0.545 GB Notification: Performance of Templates: time 0.06271/1.262, allocations: 36.44 MB / 0.7544 GB, free: 177.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches