Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.Forces.ForcesAndTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques") translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009892/0.000989, allocations: 178.4 kB / 17.06 MB, free: 5.094 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.253/1.253, allocations: 223.2 MB / 241 MB, free: 11.83 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.0009313/0.000931, allocations: 104.8 kB / 292.2 MB, free: 10.89 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.2978/0.2978, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003109, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3459, allocations: 61.9 MB / 0.5096 GB, free: 37.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.4768, allocations: 110.9 MB / 0.6179 GB, free: 164 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4771, allocations: 83.95 kB / 0.6179 GB, free: 80 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6003/1.077, allocations: 137.9 MB / 0.7526 GB, free: 86.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.077, allocations: 3.938 kB / 0.7526 GB, free: 86.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003645/1.078, allocations: 140 kB / 0.7527 GB, free: 86.75 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.01981/1.098, allocations: 7.404 MB / 0.76 GB, free: 81.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/1.098, allocations: 10.47 kB / 0.76 GB, free: 81.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02715/1.125, allocations: 7.186 MB / 0.767 GB, free: 78.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01879/1.144, allocations: 7.323 MB / 0.7741 GB, free: 71.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006385/1.144, allocations: 0.5296 MB / 0.7747 GB, free: 71.36 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004543/1.149, allocations: 0.7067 MB / 0.7754 GB, free: 70.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0421/1.191, allocations: 17.48 MB / 0.7924 GB, free: 51.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006291/1.192, allocations: 91.2 kB / 0.7925 GB, free: 51.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00397/1.196, allocations: 335.8 kB / 0.7928 GB, free: 51.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002531/1.198, allocations: 1.632 MB / 0.7944 GB, free: 49.65 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0287/1.227, allocations: 14.16 MB / 0.8083 GB, free: 35.45 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3878/1.615, allocations: 76.67 MB / 0.8831 GB, free: 60.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02095/1.636, allocations: 7.937 MB / 0.8909 GB, free: 59.96 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02057/1.657, allocations: 10.11 MB / 0.9008 GB, free: 58.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/1.657, allocations: 62.25 kB / 0.9008 GB, free: 58.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=277): time 6.262e-06/1.657, allocations: 0 / 0.9008 GB, free: 58.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=319): time 0.0874/1.744, allocations: 33.21 MB / 0.9332 GB, free: 51.72 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.316e-05/1.744, allocations: 243.2 kB / 0.9335 GB, free: 51.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0107/1.755, allocations: 6.316 MB / 0.9396 GB, free: 50.45 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008014/1.756, allocations: 75.33 kB / 0.9397 GB, free: 50.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003515/1.759, allocations: 4.901 MB / 0.9445 GB, free: 46.62 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001601/1.761, allocations: 1.201 MB / 0.9457 GB, free: 45.75 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007474/1.762, allocations: 181.7 kB / 0.9458 GB, free: 45.61 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004041/1.762, allocations: 0.6905 MB / 0.9465 GB, free: 45.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004619/1.767, allocations: 3.508 MB / 0.9499 GB, free: 43.97 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007417/1.774, allocations: 8.776 MB / 0.9585 GB, free: 35.75 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008755/1.783, allocations: 5.441 MB / 0.9638 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001766/1.783, allocations: 52.91 kB / 0.9639 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.02896/1.812, allocations: 13.56 MB / 0.9771 GB, free: 29.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/1.812, allocations: 87.38 kB / 0.9772 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000252/1.813, allocations: 184 kB / 0.9774 GB, free: 28.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004008/1.817, allocations: 1.709 MB / 0.9791 GB, free: 27.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007996/1.825, allocations: 2.166 MB / 0.9812 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/1.837, allocations: 11.71 MB / 0.9926 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009351/1.846, allocations: 0.5105 MB / 0.9931 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002345/1.849, allocations: 0.5302 MB / 0.9936 GB, free: 14.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 83 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceArrow.color[3],forceAndTorque2.forceArrow.color[2],forceAndTorque2.forceArrow.color[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.headAtOrigin,forceAndTorque1.forceArrow.color[3],forceAndTorque1.forceArrow.color[2],forceAndTorque1.forceArrow.color[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1102): * Single equations (assignments): 1097 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008653/1.857, allocations: 3.346 MB / 0.9969 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/1.859, allocations: 0.605 MB / 0.9975 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.87, allocations: 6.724 MB / 1.004 GB, free: 5.465 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-05/1.87, allocations: 35.12 kB / 1.004 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/1.87, allocations: 8 kB / 1.004 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-05/1.87, allocations: 22.56 kB / 1.004 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03315/1.903, allocations: 15.82 MB / 1.02 GB, free: 8.336 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.513e-05/1.903, allocations: 8 kB / 1.02 GB, free: 8.328 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003042/1.906, allocations: 0.6201 MB / 1.02 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003669/1.91, allocations: 1.425 MB / 1.022 GB, free: 6.277 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005333/1.91, allocations: 56 kB / 1.022 GB, free: 6.223 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01498/1.925, allocations: 10.92 MB / 1.032 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/1.926, allocations: 11.94 kB / 1.032 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/1.943, allocations: 12.14 MB / 1.044 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00298/1.946, allocations: 0.6844 MB / 1.045 GB, free: 13.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002276/1.949, allocations: 67.73 kB / 1.045 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004001/1.953, allocations: 199.7 kB / 1.045 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008823/1.954, allocations: 205.9 kB / 1.045 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.954, allocations: 80 kB / 1.045 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01062/1.964, allocations: 4.53 MB / 1.05 GB, free: 8.895 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.102e-06/1.965, allocations: 0 / 1.05 GB, free: 8.895 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01274/1.977, allocations: 1.678 MB / 1.051 GB, free: 7.223 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * 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 (261): * Single equations (assignments): 256 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001324/1.979, allocations: 218.9 kB / 1.052 GB, free: 7.012 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01604/1.995, allocations: 8.704 MB / 1.06 GB, free: 14.31 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.995, allocations: 0.75 kB / 1.06 GB, free: 14.31 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005763/2.001, allocations: 3.424 MB / 1.063 GB, free: 10.86 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004895/2.005, allocations: 0.7626 MB / 1.064 GB, free: 10.13 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03563/2.041, allocations: 18.72 MB / 1.082 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009356/2.051, allocations: 5.198 MB / 1.088 GB, free: 2.156 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.009646/2.06, allocations: 3.001 MB / 1.09 GB, free: 15.16 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002322/2.063, allocations: 411.3 kB / 1.091 GB, free: 14.77 MB / 0.6042 GB Notification: Performance of SimCode: time 1.553e-06/2.063, allocations: 0 / 1.091 GB, free: 14.77 MB / 0.6042 GB Notification: Performance of Templates: time 0.4369/2.5, allocations: 64.96 MB / 1.154 GB, free: 180.4 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForcesAndTorques/ForcesAndTorques.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches