Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json 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/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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 114.4 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009116/0.0009116, allocations: 43.94 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2602, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01219/0.2724, allocations: 11.42 MB / 412.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00826/0.2807, allocations: 4.069 MB / 416.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.2825, allocations: 67.81 kB / 416.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005719/0.2883, allocations: 3.193 MB / 419.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004835/0.2932, allocations: 1.955 MB / 421.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.295, allocations: 0.8305 MB / 422.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005711/0.3007, allocations: 4.447 MB / 426.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005445/0.3062, allocations: 4.052 MB / 430.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002417/0.3086, allocations: 1.659 MB / 432.4 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002999/0.3117, allocations: 2.161 MB / 434.6 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009498/0.3126, allocations: 352 kB / 434.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00242/0.3151, allocations: 1.26 MB / 436.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002131/0.3172, allocations: 2.065 MB / 438.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003061/0.3203, allocations: 2.361 MB / 440.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007872/0.3282, allocations: 7.634 MB / 448.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3282, allocations: 0 / 448.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3282, allocations: 0 / 448.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002347/0.3284, allocations: 0 / 448.2 MB, free: 9.156 MB / 366.1 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.01056/0.339, allocations: 5.182 MB / 453.4 MB, free: 3.902 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.3391, allocations: 12.02 kB / 453.4 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008486/0.3476, allocations: 2.174 MB / 455.6 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005786/0.3534, allocations: 2.854 MB / 458.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.3535, allocations: 242.3 kB / 458.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007434/0.3543, allocations: 323.8 kB / 459 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0168/0.3711, allocations: 10.83 MB / 469.8 MB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.3712, allocations: 43.67 kB / 469.9 MB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003969/0.3717, allocations: 159.8 kB / 470 MB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003304/0.375, allocations: 2.154 MB / 472.2 MB, free: 372 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/0.3915, allocations: 9.227 MB / 481.4 MB, free: 7.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04687/0.4384, allocations: 41.68 MB / 0.5108 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/0.4496, allocations: 4.49 MB / 0.5152 GB, free: 7.664 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/0.4529, allocations: 2.501 MB / 0.5177 GB, free: 5.156 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.4641, allocations: 7.372 MB / 0.5249 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.4642, allocations: 55.5 kB / 0.5249 GB, free: 13.51 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.059e-06/0.4642, allocations: 0 / 0.5249 GB, free: 13.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2649/0.7291, allocations: 18.76 MB / 0.5432 GB, free: 129.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.7292, allocations: 175.2 kB / 0.5434 GB, free: 129.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00527/0.7345, allocations: 4.619 MB / 0.5479 GB, free: 127.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002799/0.7348, allocations: 53.42 kB / 0.548 GB, free: 127.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001417/0.7362, allocations: 3.219 MB / 0.5511 GB, free: 124.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005927/0.7368, allocations: 0.7574 MB / 0.5519 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001305/0.7381, allocations: 1.295 MB / 0.5531 GB, free: 123.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.992e-05/0.7382, allocations: 308.7 kB / 0.5534 GB, free: 123.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/0.7409, allocations: 2.397 MB / 0.5558 GB, free: 122.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003839/0.7448, allocations: 6.145 MB / 0.5618 GB, free: 116.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007547/0.7524, allocations: 9.244 MB / 0.5708 GB, free: 106.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-05/0.7525, allocations: 40 kB / 0.5708 GB, free: 106.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01365/0.7661, allocations: 9.355 MB / 0.58 GB, free: 97.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.493e-05/0.7662, allocations: 62.81 kB / 0.58 GB, free: 97.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000128/0.7664, allocations: 132 kB / 0.5801 GB, free: 97.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002807/0.7692, allocations: 1.195 MB / 0.5813 GB, free: 96.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004412/0.7736, allocations: 1.446 MB / 0.5827 GB, free: 94.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007285/0.7809, allocations: 7.29 MB / 0.5898 GB, free: 87.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005083/0.786, allocations: 358.8 kB / 0.5902 GB, free: 86.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006769/0.7867, allocations: 380 kB / 0.5905 GB, free: 86.57 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],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 (772): * Single equations (assignments): 766 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003151/0.7899, allocations: 2.24 MB / 0.5927 GB, free: 84.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007757/0.7907, allocations: 386.9 kB / 0.5931 GB, free: 83.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005924/0.7966, allocations: 4.058 MB / 0.5971 GB, free: 79.87 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/0.7966, allocations: 32.41 kB / 0.5971 GB, free: 79.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.7967, allocations: 4 kB / 0.5971 GB, free: 79.83 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.7967, allocations: 7.969 kB / 0.5971 GB, free: 79.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01404/0.8107, allocations: 9.511 MB / 0.6064 GB, free: 70.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/0.8108, allocations: 8.5 kB / 0.6064 GB, free: 70.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.8122, allocations: 323.5 kB / 0.6067 GB, free: 69.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002397/0.8146, allocations: 1.022 MB / 0.6077 GB, free: 68.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001862/0.8148, allocations: 38.25 kB / 0.6077 GB, free: 68.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007075/0.8219, allocations: 6.873 MB / 0.6145 GB, free: 61.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.8219, allocations: 11.94 kB / 0.6145 GB, free: 61.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008493/0.8304, allocations: 7.052 MB / 0.6214 GB, free: 54.67 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.8316, allocations: 463.9 kB / 0.6218 GB, free: 54.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000433/0.832, allocations: 43.67 kB / 0.6218 GB, free: 54.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.8336, allocations: 119.8 kB / 0.622 GB, free: 54.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003064/0.8339, allocations: 132.9 kB / 0.6221 GB, free: 53.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.834, allocations: 56 kB / 0.6221 GB, free: 53.85 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003396/0.8374, allocations: 2.956 MB / 0.625 GB, free: 50.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8374, allocations: 0 / 0.625 GB, free: 50.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0046/0.842, allocations: 1.089 MB / 0.6261 GB, free: 49.81 MB / 462.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003564/0.8424, allocations: 175.9 kB / 0.6263 GB, free: 49.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006587/0.849, allocations: 5.766 MB / 0.6319 GB, free: 43.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.849, allocations: 0 / 0.6319 GB, free: 43.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002687/0.8517, allocations: 2.069 MB / 0.6339 GB, free: 41.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00278/0.8545, allocations: 0.5096 MB / 0.6344 GB, free: 41.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.868, allocations: 10.26 MB / 0.6444 GB, free: 30.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002735/0.8707, allocations: 3.453 MB / 0.6478 GB, free: 27.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003709/0.8745, allocations: 2.045 MB / 0.6498 GB, free: 25.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007674/0.8752, allocations: 267.4 kB / 0.65 GB, free: 25.17 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.8753, allocations: 0 / 0.65 GB, free: 25.17 MB / 462.1 MB Notification: Performance of Templates: time 0.06625/0.9415, allocations: 39.41 MB / 0.6885 GB, free: 2.066 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches