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.0009351/0.000935, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.266/1.266, allocations: 221.4 MB / 236 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008121/0.0008123, allocations: 88.02 kB / 287 MB, free: 224 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1814/0.1814, allocations: 44.14 MB / 382 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.926e-05, allocations: 4.219 kB / 451.8 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 61.92 MB / 0.5017 GB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3894/0.5015, allocations: 110.3 MB / 0.6094 GB, free: 11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.5018, allocations: 75.97 kB / 0.6095 GB, free: 10.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5763/1.078, allocations: 118.3 MB / 0.725 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.704e-06/1.078, allocations: 1.344 kB / 0.725 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003689/1.079, allocations: 116.3 kB / 0.7252 GB, free: 112 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.02005/1.099, allocations: 5.849 MB / 0.7309 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/1.099, allocations: 12.08 kB / 0.7309 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02744/1.126, allocations: 6.976 MB / 0.7377 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02209/1.148, allocations: 7.437 MB / 0.745 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004849/1.149, allocations: 428.9 kB / 0.7454 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003457/1.152, allocations: 0.5728 MB / 0.7459 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02829/1.181, allocations: 13.57 MB / 0.7592 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/1.181, allocations: 86.39 kB / 0.7593 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/1.182, allocations: 273.6 kB / 0.7595 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001601/1.184, allocations: 1.286 MB / 0.7608 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02294/1.207, allocations: 11.28 MB / 0.7718 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06448/1.271, allocations: 61.27 MB / 0.8316 GB, free: 58.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/1.284, allocations: 5.617 MB / 0.8371 GB, free: 55.23 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003521/1.287, allocations: 3.239 MB / 0.8403 GB, free: 52.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006011/1.288, allocations: 0.6893 MB / 0.8409 GB, free: 51.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/1.288, allocations: 60.5 kB / 0.841 GB, free: 51.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 7.284e-06/1.288, allocations: 4 kB / 0.841 GB, free: 51.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=311): time 0.07012/1.358, allocations: 28.72 MB / 0.8691 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.885e-05/1.358, allocations: 265.3 kB / 0.8693 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007094/1.366, allocations: 4.551 MB / 0.8737 GB, free: 23.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009024/1.366, allocations: 73.06 kB / 0.8738 GB, free: 23.37 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002251/1.369, allocations: 3.968 MB / 0.8777 GB, free: 19.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001678/1.37, allocations: 1.162 MB / 0.8788 GB, free: 18.78 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004226/1.371, allocations: 152 kB / 0.879 GB, free: 18.63 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003928/1.371, allocations: 0.6277 MB / 0.8796 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004078/1.375, allocations: 3.202 MB / 0.8827 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005456/1.381, allocations: 7.369 MB / 0.8899 GB, free: 5.465 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005816/1.387, allocations: 4.822 MB / 0.8946 GB, free: 0.6172 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.57e-05/1.387, allocations: 40 kB / 0.8947 GB, free: 0.5781 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02783/1.415, allocations: 12.29 MB / 0.9067 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.415, allocations: 76.02 kB / 0.9067 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002492/1.415, allocations: 151.9 kB / 0.9069 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005775/1.421, allocations: 2.126 MB / 0.909 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006576/1.427, allocations: 1.719 MB / 0.9106 GB, free: 164 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3331/1.76, allocations: 14.32 MB / 0.9246 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006172/1.767, allocations: 443 kB / 0.925 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001416/1.768, allocations: 443.8 kB / 0.9255 GB, free: 110.1 MB / 0.5261 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 () * 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.001283/1.769, allocations: 0.6705 MB / 0.9261 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/1.77, allocations: 494.7 kB / 0.9266 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/1.783, allocations: 6.902 MB / 0.9333 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.982e-05/1.783, allocations: 33.77 kB / 0.9334 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-05/1.783, allocations: 9.844 kB / 0.9334 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.473e-05/1.783, allocations: 24.36 kB / 0.9334 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02619/1.81, allocations: 15.76 MB / 0.9488 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.601e-05/1.81, allocations: 6.562 kB / 0.9488 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/1.812, allocations: 494.8 kB / 0.9493 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004187/1.816, allocations: 1.874 MB / 0.9511 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005293/1.817, allocations: 66.59 kB / 0.9512 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01473/1.831, allocations: 12.82 MB / 0.9637 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.832, allocations: 7.125 kB / 0.9637 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01423/1.846, allocations: 11.91 MB / 0.9753 GB, free: 94.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/1.847, allocations: 0.5361 MB / 0.9758 GB, free: 94.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007108/1.848, allocations: 59.36 kB / 0.9759 GB, free: 94.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/1.85, allocations: 208.5 kB / 0.9761 GB, free: 94.04 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000498/1.851, allocations: 199.7 kB / 0.9763 GB, free: 94.01 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002088/1.851, allocations: 86.11 kB / 0.9764 GB, free: 93.99 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004992/1.856, allocations: 3.216 MB / 0.9795 GB, free: 92.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.3e-07/1.856, allocations: 0 / 0.9795 GB, free: 92.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007946/1.864, allocations: 1.47 MB / 0.9809 GB, free: 92.72 MB / 0.5261 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 (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.001077/1.865, allocations: 216.1 kB / 0.9811 GB, free: 92.59 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01255/1.878, allocations: 8.048 MB / 0.989 GB, free: 89.86 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/1.878, allocations: 3.219 kB / 0.989 GB, free: 89.86 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006553/1.884, allocations: 3.828 MB / 0.9927 GB, free: 88.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003776/1.888, allocations: 0.6216 MB / 0.9934 GB, free: 88.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02106/1.909, allocations: 11.99 MB / 1.005 GB, free: 83.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004124/1.913, allocations: 4.442 MB / 1.009 GB, free: 80.85 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006341/1.92, allocations: 2.457 MB / 1.012 GB, free: 79.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/1.921, allocations: 338.5 kB / 1.012 GB, free: 78.99 MB / 0.5261 GB Notification: Performance of SimCode: time 1.212e-06/1.921, allocations: 0 / 1.012 GB, free: 78.99 MB / 0.5261 GB Notification: Performance of Templates: time 0.09859/2.02, allocations: 60.04 MB / 1.071 GB, free: 28.75 MB / 0.5261 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/jenkins/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