Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 179.1 kB / 18.09 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.3 MB / 242.1 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008425/0.0008426, allocations: 85.41 kB / 293.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3454/0.3454, allocations: 44.14 MB / 388.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003661, allocations: 19.98 kB / 461.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3318, allocations: 61.87 MB / 0.5107 GB, free: 38.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.4696, allocations: 110.5 MB / 0.6187 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4699, allocations: 83.94 kB / 0.6187 GB, free: 460 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5439/1.014, allocations: 116.2 MB / 0.7323 GB, free: 93.33 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.014, allocations: 0 / 0.7323 GB, free: 93.33 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00037/1.014, allocations: 114.9 kB / 0.7324 GB, free: 93.32 MB / 490.7 MB 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.01759/1.032, allocations: 6.022 MB / 0.7382 GB, free: 90.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.032, allocations: 11.22 kB / 0.7383 GB, free: 90.29 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02078/1.053, allocations: 5.298 MB / 0.7434 GB, free: 89.48 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01376/1.067, allocations: 6.21 MB / 0.7495 GB, free: 86.81 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004336/1.067, allocations: 430.5 kB / 0.7499 GB, free: 86.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002597/1.07, allocations: 0.5701 MB / 0.7505 GB, free: 86.48 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/1.099, allocations: 13.55 MB / 0.7637 GB, free: 78.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006937/1.1, allocations: 90.86 kB / 0.7638 GB, free: 78.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002921/1.102, allocations: 270.1 kB / 0.764 GB, free: 78.69 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001958/1.104, allocations: 1.285 MB / 0.7653 GB, free: 78.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02347/1.128, allocations: 11.28 MB / 0.7763 GB, free: 69.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06143/1.189, allocations: 61.23 MB / 0.8361 GB, free: 6.168 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/1.201, allocations: 5.5 MB / 0.8415 GB, free: 0.5117 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004059/1.205, allocations: 3.263 MB / 0.8447 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007263/1.206, allocations: 0.6916 MB / 0.8453 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/1.206, allocations: 60.5 kB / 0.8454 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 6.542e-06/1.206, allocations: 0 / 0.8454 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=311): time 0.4033/1.609, allocations: 32.56 MB / 0.8772 GB, free: 115 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.953e-05/1.609, allocations: 273 kB / 0.8775 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008836/1.618, allocations: 5.168 MB / 0.8825 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008312/1.619, allocations: 73.98 kB / 0.8826 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002585/1.621, allocations: 3.975 MB / 0.8865 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001562/1.623, allocations: 1.158 MB / 0.8876 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004094/1.623, allocations: 149.6 kB / 0.8877 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004789/1.624, allocations: 0.6217 MB / 0.8883 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004991/1.629, allocations: 3.263 MB / 0.8915 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006901/1.636, allocations: 7.457 MB / 0.8988 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01393/1.65, allocations: 11.63 MB / 0.9102 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002098/1.65, allocations: 44.59 kB / 0.9102 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02869/1.679, allocations: 12.42 MB / 0.9223 GB, free: 93.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003417/1.679, allocations: 73.42 kB / 0.9224 GB, free: 93.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005147/1.68, allocations: 146.1 kB / 0.9225 GB, free: 93.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006282/1.686, allocations: 2.111 MB / 0.9246 GB, free: 93.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006747/1.693, allocations: 1.72 MB / 0.9263 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0181/1.711, allocations: 14.37 MB / 0.9403 GB, free: 85.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007199/1.718, allocations: 447.6 kB / 0.9407 GB, free: 85.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001774/1.72, allocations: 445.3 kB / 0.9412 GB, free: 85.22 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (909): * Single equations (assignments): 904 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007427/1.727, allocations: 2.763 MB / 0.9439 GB, free: 83.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/1.729, allocations: 493 kB / 0.9443 GB, free: 83.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/1.742, allocations: 6.97 MB / 0.9511 GB, free: 80.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.491e-05/1.742, allocations: 33.34 kB / 0.9512 GB, free: 80.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.488e-05/1.742, allocations: 15.45 kB / 0.9512 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.285e-05/1.742, allocations: 11.77 kB / 0.9512 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02942/1.771, allocations: 15.82 MB / 0.9666 GB, free: 74.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-05/1.772, allocations: 6.875 kB / 0.9667 GB, free: 74.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00219/1.774, allocations: 0.4898 MB / 0.9671 GB, free: 74.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004114/1.778, allocations: 1.872 MB / 0.969 GB, free: 74.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003845/1.778, allocations: 58.36 kB / 0.969 GB, free: 74.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/1.793, allocations: 12.84 MB / 0.9816 GB, free: 64.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.793, allocations: 11.94 kB / 0.9816 GB, free: 64.63 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01502/1.808, allocations: 11.12 MB / 0.9924 GB, free: 54.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/1.81, allocations: 0.5363 MB / 0.993 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009709/1.811, allocations: 67 kB / 0.993 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002314/1.813, allocations: 214.2 kB / 0.9932 GB, free: 54.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005617/1.814, allocations: 200.1 kB / 0.9934 GB, free: 54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/1.814, allocations: 90.41 kB / 0.9935 GB, free: 53.92 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00494/1.819, allocations: 3.256 MB / 0.9967 GB, free: 51.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/1.819, allocations: 0 / 0.9967 GB, free: 51.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007882/1.827, allocations: 1.471 MB / 0.9981 GB, free: 49.79 MB / 0.5105 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 244 * 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.0007416/1.828, allocations: 219.2 kB / 0.9983 GB, free: 49.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01093/1.839, allocations: 8.141 MB / 1.006 GB, free: 42.39 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.839, allocations: 4 kB / 1.006 GB, free: 42.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006088/1.845, allocations: 3.886 MB / 1.01 GB, free: 39.08 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009108/1.854, allocations: 0.653 MB / 1.011 GB, free: 38.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02685/1.881, allocations: 16.57 MB / 1.027 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005982/1.887, allocations: 4.322 MB / 1.031 GB, free: 19.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006185/1.893, allocations: 2.45 MB / 1.034 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/1.894, allocations: 351.4 kB / 1.034 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of SimCode: time 6.22e-07/1.894, allocations: 3.938 kB / 1.034 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of Templates: time 0.4059/2.3, allocations: 60.24 MB / 1.093 GB, free: 122.9 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches