Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00163/0.00163, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008875/0.0008875, allocations: 103.6 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.194/0.194, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.991e-05/2.003e-05, allocations: 4 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3771/0.4796, allocations: 110.6 MB / 0.6123 GB, free: 8.328 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4798, allocations: 73.03 kB / 0.6124 GB, free: 8.293 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2903/0.7702, allocations: 119.6 MB / 0.7292 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.454e-06/0.7702, allocations: 0 / 0.7292 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003846/0.7706, allocations: 116 kB / 0.7293 GB, free: 8.535 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01995/0.7906, allocations: 5.921 MB / 0.7351 GB, free: 2.543 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.7906, allocations: 12.03 kB / 0.7351 GB, free: 2.531 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02741/0.818, allocations: 6.977 MB / 0.7419 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01668/0.8348, allocations: 6.679 MB / 0.7484 GB, free: 4.773 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003381/0.8352, allocations: 184 kB / 0.7486 GB, free: 4.594 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002361/0.8375, allocations: 351.7 kB / 0.7489 GB, free: 4.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3217/1.159, allocations: 7.997 MB / 0.7568 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02573/1.185, allocations: 12.17 MB / 0.7686 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003023/1.185, allocations: 88.12 kB / 0.7687 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009571/1.186, allocations: 36.41 kB / 0.7688 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001985/1.188, allocations: 1.282 MB / 0.77 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05716/1.246, allocations: 58.74 MB / 0.8274 GB, free: 80.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00512/1.251, allocations: 4.8 MB / 0.8321 GB, free: 77.85 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003041/1.254, allocations: 3.172 MB / 0.8352 GB, free: 76.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000566/1.254, allocations: 0.6845 MB / 0.8358 GB, free: 75.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/1.254, allocations: 64.83 kB / 0.8359 GB, free: 75.83 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 4.959e-06/1.254, allocations: 0 / 0.8359 GB, free: 75.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=315): time 0.05434/1.309, allocations: 29.37 MB / 0.8646 GB, free: 64.98 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.993e-05/1.309, allocations: 265.9 kB / 0.8648 GB, free: 64.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006197/1.315, allocations: 3.861 MB / 0.8686 GB, free: 63.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006241/1.316, allocations: 29.67 kB / 0.8686 GB, free: 63.27 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002135/1.318, allocations: 4.027 MB / 0.8726 GB, free: 60.28 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001208/1.319, allocations: 1.13 MB / 0.8737 GB, free: 59.43 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002981/1.319, allocations: 3.281 kB / 0.8737 GB, free: 59.43 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003136/1.32, allocations: 0.6308 MB / 0.8743 GB, free: 58.99 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003341/1.323, allocations: 3.141 MB / 0.8773 GB, free: 57.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004977/1.328, allocations: 7.414 MB / 0.8846 GB, free: 50.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005411/1.333, allocations: 4.785 MB / 0.8893 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-05/1.334, allocations: 40 kB / 0.8893 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.01694/1.351, allocations: 11.51 MB / 0.9005 GB, free: 36.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/1.351, allocations: 78.38 kB / 0.9006 GB, free: 36.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/1.351, allocations: 148 kB / 0.9008 GB, free: 36.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004614/1.355, allocations: 2.155 MB / 0.9029 GB, free: 34.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005714/1.361, allocations: 1.779 MB / 0.9046 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/1.375, allocations: 13.22 MB / 0.9175 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00608/1.381, allocations: 302.2 kB / 0.9178 GB, free: 20.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001222/1.383, allocations: 461.1 kB / 0.9182 GB, free: 20.49 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (937): * Single equations (assignments): 932 * Array equations: 3 * 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: 2 {(6,55.6%) 21,(6,55.6%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001036/1.384, allocations: 497.5 kB / 0.9187 GB, free: 20 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007943/1.384, allocations: 454.2 kB / 0.9191 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009969/1.394, allocations: 6.744 MB / 0.9257 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.032e-05/1.395, allocations: 43.23 kB / 0.9258 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/1.395, allocations: 12 kB / 0.9258 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.674e-05/1.395, allocations: 11.11 kB / 0.9258 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03014/1.425, allocations: 14.65 MB / 0.9401 GB, free: 2.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.07e-05/1.425, allocations: 8.75 kB / 0.9401 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003969/1.429, allocations: 0.4956 MB / 0.9406 GB, free: 1.602 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006724/1.436, allocations: 1.854 MB / 0.9424 GB, free: 260 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000775/1.436, allocations: 15.8 kB / 0.9424 GB, free: 248 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02398/1.46, allocations: 12.01 MB / 0.9541 GB, free: 5.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/1.46, allocations: 8 kB / 0.9541 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3415/1.802, allocations: 11.72 MB / 0.9656 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/1.803, allocations: 483.7 kB / 0.9661 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007374/1.804, allocations: 11.02 kB / 0.9661 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/1.806, allocations: 164.4 kB / 0.9662 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005671/1.807, allocations: 206.1 kB / 0.9664 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/1.807, allocations: 89.62 kB / 0.9665 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004748/1.812, allocations: 2.616 MB / 0.9691 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.162e-06/1.812, allocations: 0 / 0.9691 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007164/1.819, allocations: 1.275 MB / 0.9703 GB, free: 119.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * Array equations: 3 * 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: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006224/1.82, allocations: 169.1 kB / 0.9705 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0135/1.833, allocations: 8.156 MB / 0.9784 GB, free: 119 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.833, allocations: 3.906 kB / 0.9784 GB, free: 119 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005985/1.839, allocations: 3.787 MB / 0.9821 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/1.843, allocations: 0.5026 MB / 0.9826 GB, free: 118.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/1.861, allocations: 11.91 MB / 0.9943 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004737/1.866, allocations: 4.448 MB / 0.9986 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005865/1.872, allocations: 2.485 MB / 1.001 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/1.873, allocations: 328 kB / 1.001 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.302e-06/1.873, allocations: 0 / 1.001 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.08441/1.958, allocations: 53.96 MB / 1.054 GB, free: 104.3 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches