Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000986/0.0009857, allocations: 198.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007282/0.0007282, allocations: 99.22 kB / 297.4 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002016/0.0002016, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1777, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1051/0.2828, allocations: 101.2 MB / 0.4979 GB, free: 6.348 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.2831, allocations: 93.83 kB / 0.498 GB, free: 6.258 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.329/0.6121, allocations: 91.65 MB / 0.5875 GB, free: 23.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6122, allocations: 0 / 0.5875 GB, free: 23.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001815/0.6124, allocations: 88 kB / 0.5876 GB, free: 23.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01009/0.6225, allocations: 4.567 MB / 0.5921 GB, free: 18.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.6225, allocations: 12.03 kB / 0.5921 GB, free: 18.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01299/0.6355, allocations: 3.617 MB / 0.5956 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006504/0.642, allocations: 3.621 MB / 0.5992 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.6422, allocations: 329.2 kB / 0.5995 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000821/0.6431, allocations: 448.2 kB / 0.5999 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01568/0.6587, allocations: 11.19 MB / 0.6108 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/0.659, allocations: 55.66 kB / 0.6109 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008941/0.6599, allocations: 223.8 kB / 0.6111 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001411/0.6613, allocations: 1.097 MB / 0.6122 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/0.6779, allocations: 9.12 MB / 0.6211 GB, free: 4.043 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04932/0.7273, allocations: 50.31 MB / 0.6702 GB, free: 200 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1727/0.9, allocations: 4.697 MB / 0.6748 GB, free: 98.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002174/0.9022, allocations: 2.332 MB / 0.6771 GB, free: 98.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008535/0.9108, allocations: 7.225 MB / 0.6841 GB, free: 96.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.9108, allocations: 53.81 kB / 0.6842 GB, free: 96.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 3.927e-06/0.9109, allocations: 0 / 0.6842 GB, free: 96.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.03507/0.9459, allocations: 17.32 MB / 0.7011 GB, free: 93.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.946, allocations: 170.8 kB / 0.7013 GB, free: 93.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005217/0.9512, allocations: 4.583 MB / 0.7057 GB, free: 93.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.9514, allocations: 60.36 kB / 0.7058 GB, free: 93.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.9527, allocations: 3.252 MB / 0.709 GB, free: 91.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004556/0.9532, allocations: 0.7495 MB / 0.7097 GB, free: 90.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/0.9534, allocations: 123.5 kB / 0.7098 GB, free: 90.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.9537, allocations: 0.5665 MB / 0.7104 GB, free: 90.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002474/0.9562, allocations: 2.206 MB / 0.7125 GB, free: 89.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003522/0.9597, allocations: 5.954 MB / 0.7183 GB, free: 83.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006354/0.9661, allocations: 8.904 MB / 0.727 GB, free: 77.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.321e-05/0.9662, allocations: 38.78 kB / 0.7271 GB, free: 77.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=804) (initialization): time 0.01019/0.9763, allocations: 8.69 MB / 0.7356 GB, free: 73.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.989e-05/0.9764, allocations: 65.5 kB / 0.7356 GB, free: 73.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.9765, allocations: 131.4 kB / 0.7357 GB, free: 73.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.9782, allocations: 0.8917 MB / 0.7366 GB, free: 73.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003419/0.9816, allocations: 1.473 MB / 0.7381 GB, free: 73.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005166/0.9868, allocations: 5.783 MB / 0.7437 GB, free: 68.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/0.9897, allocations: 351.9 kB / 0.744 GB, free: 68.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003532/0.99, allocations: 379.4 kB / 0.7444 GB, free: 67.67 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 49 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 752 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002256/0.9923, allocations: 2.231 MB / 0.7466 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003944/0.9927, allocations: 398.8 kB / 0.747 GB, free: 65.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004576/0.9973, allocations: 3.586 MB / 0.7505 GB, free: 62.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.9973, allocations: 24 kB / 0.7505 GB, free: 62.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.9973, allocations: 4 kB / 0.7505 GB, free: 62.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.9973, allocations: 6.891 kB / 0.7505 GB, free: 62.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/1.008, allocations: 9.127 MB / 0.7594 GB, free: 54.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/1.008, allocations: 4 kB / 0.7594 GB, free: 54.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/1.01, allocations: 386.9 kB / 0.7598 GB, free: 54.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/1.011, allocations: 0.7148 MB / 0.7605 GB, free: 54.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/1.011, allocations: 43.47 kB / 0.7605 GB, free: 54.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005027/1.016, allocations: 5.327 MB / 0.7657 GB, free: 49.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.016, allocations: 7.938 kB / 0.7657 GB, free: 49.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006385/1.023, allocations: 6.424 MB / 0.772 GB, free: 43.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004825/1.023, allocations: 473.6 kB / 0.7725 GB, free: 43.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003584/1.024, allocations: 32 kB / 0.7725 GB, free: 43.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/1.025, allocations: 124.2 kB / 0.7726 GB, free: 43.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/1.025, allocations: 122.9 kB / 0.7727 GB, free: 43.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/1.025, allocations: 59.89 kB / 0.7728 GB, free: 42.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002764/1.028, allocations: 2.924 MB / 0.7756 GB, free: 40.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.028, allocations: 0 / 0.7756 GB, free: 40.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003136/1.031, allocations: 1.057 MB / 0.7767 GB, free: 39.51 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003205/1.031, allocations: 201.3 kB / 0.7769 GB, free: 39.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005257/1.037, allocations: 5.418 MB / 0.7821 GB, free: 34.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.037, allocations: 0 / 0.7821 GB, free: 34.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002199/1.039, allocations: 1.917 MB / 0.784 GB, free: 32.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00456/1.044, allocations: 494 kB / 0.7845 GB, free: 32.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/1.054, allocations: 12.36 MB / 0.7966 GB, free: 21.14 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00267/1.057, allocations: 3.452 MB / 0.7999 GB, free: 18.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007833/1.058, allocations: 314.5 kB / 0.8002 GB, free: 18.16 MB / 442.7 MB Notification: Performance of SimCode: time 7.92e-07/1.058, allocations: 0 / 0.8002 GB, free: 18.16 MB / 442.7 MB Notification: Performance of Templates: time 1.567/2.625, allocations: 81.2 MB / 0.8795 GB, free: 101.3 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches