Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 84.7 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 166.5 kB / 23.95 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 177.1 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 1.094 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.386e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01208/0.0121, allocations: 9.863 MB / 334.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009143/0.02124, allocations: 3.868 MB / 338.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.02312, allocations: 80.91 kB / 338.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006544/0.02966, allocations: 3.249 MB / 342.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005397/0.03506, allocations: 1.995 MB / 344.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002075/0.03713, allocations: 0.8925 MB / 345 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006941/0.04407, allocations: 4.797 MB / 349.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004361/0.04843, allocations: 3.301 MB / 353.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003569/0.052, allocations: 2.424 MB / 355.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003494/0.0555, allocations: 2.225 MB / 357.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000724/0.05622, allocations: 352 kB / 358.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.05859, allocations: 1.19 MB / 359.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002148/0.06074, allocations: 2.135 MB / 361.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.06262, allocations: 1.309 MB / 362.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00932/0.07194, allocations: 7.441 MB / 370.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.07194, allocations: 0 / 370.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.07194, allocations: 0 / 370.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001687/0.07211, allocations: 0 / 370.2 MB, free: 7.852 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01123/0.08335, allocations: 5.118 MB / 375.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.08338, allocations: 8.031 kB / 375.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009483/0.09287, allocations: 2.221 MB / 377.5 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006346/0.09921, allocations: 2.709 MB / 380.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/0.09944, allocations: 246.3 kB / 380.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008713/0.1003, allocations: 323.8 kB / 380.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01923/0.1195, allocations: 10.48 MB / 391.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.1196, allocations: 47.62 kB / 391.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000431/0.1201, allocations: 155.9 kB / 391.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00365/0.1237, allocations: 2.029 MB / 393.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01828/0.142, allocations: 8.885 MB / 402.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05569/0.1977, allocations: 38.48 MB / 440.9 MB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0128/0.2105, allocations: 4.006 MB / 444.9 MB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003502/0.214, allocations: 2.289 MB / 447.2 MB, free: 8.898 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.2268, allocations: 6.319 MB / 453.5 MB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.003e-05/0.2269, allocations: 63.42 kB / 453.5 MB, free: 2.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=177): time 5.411e-06/0.2269, allocations: 0 / 453.5 MB, free: 2.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=198): time 0.2036/0.4305, allocations: 19.19 MB / 472.7 MB, free: 126.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.4306, allocations: 177.5 kB / 472.9 MB, free: 126.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005411/0.436, allocations: 3.984 MB / 476.9 MB, free: 125.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004139/0.4364, allocations: 56.3 kB / 476.9 MB, free: 125.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/0.4379, allocations: 3.239 MB / 480.2 MB, free: 123.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007222/0.4386, allocations: 0.7846 MB / 481 MB, free: 123.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001514/0.4402, allocations: 1.272 MB / 482.2 MB, free: 122.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.971e-05/0.4402, allocations: 301.1 kB / 482.5 MB, free: 122.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/0.4434, allocations: 2.371 MB / 484.9 MB, free: 121.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004351/0.4478, allocations: 6.094 MB / 491 MB, free: 115.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00761/0.4554, allocations: 9.135 MB / 0.4884 GB, free: 108.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/0.4555, allocations: 38.16 kB / 0.4884 GB, free: 108.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01312/0.4686, allocations: 9.204 MB / 0.4974 GB, free: 103.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.333e-05/0.4687, allocations: 63.98 kB / 0.4975 GB, free: 103.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.603e-05/0.4688, allocations: 128.8 kB / 0.4976 GB, free: 103.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002605/0.4714, allocations: 1.192 MB / 0.4988 GB, free: 102.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003826/0.4752, allocations: 1.435 MB / 0.5002 GB, free: 100.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007178/0.4824, allocations: 7.138 MB / 0.5072 GB, free: 93.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004705/0.4871, allocations: 383.4 kB / 0.5075 GB, free: 93.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006097/0.4877, allocations: 380.8 kB / 0.5079 GB, free: 92.84 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * 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.002977/0.4907, allocations: 2.174 MB / 0.51 GB, free: 90.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006085/0.4913, allocations: 337.7 kB / 0.5103 GB, free: 90.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006201/0.4975, allocations: 3.969 MB / 0.5142 GB, free: 86.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.4975, allocations: 23.94 kB / 0.5142 GB, free: 86.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/0.4975, allocations: 4 kB / 0.5142 GB, free: 86.31 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.4976, allocations: 7.969 kB / 0.5142 GB, free: 86.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.5113, allocations: 8.32 MB / 0.5224 GB, free: 77.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/0.5113, allocations: 4.656 kB / 0.5224 GB, free: 77.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.5127, allocations: 327.5 kB / 0.5227 GB, free: 77.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002435/0.5152, allocations: 1.019 MB / 0.5237 GB, free: 76.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001843/0.5154, allocations: 40 kB / 0.5237 GB, free: 76.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007335/0.5227, allocations: 6.737 MB / 0.5303 GB, free: 69.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.5227, allocations: 11.94 kB / 0.5303 GB, free: 69.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009569/0.5323, allocations: 6.941 MB / 0.5371 GB, free: 62.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/0.5333, allocations: 337.6 kB / 0.5374 GB, free: 62.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009137/0.5343, allocations: 35.94 kB / 0.5374 GB, free: 62.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/0.5363, allocations: 159.2 kB / 0.5376 GB, free: 62.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.5367, allocations: 129 kB / 0.5377 GB, free: 62.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/0.5369, allocations: 59.98 kB / 0.5378 GB, free: 61.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003438/0.5403, allocations: 2.317 MB / 0.54 GB, free: 59.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5403, allocations: 3.938 kB / 0.54 GB, free: 59.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005472/0.5458, allocations: 1.141 MB / 0.5412 GB, free: 58.51 MB / 430.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.0006285/0.5464, allocations: 201.9 kB / 0.5413 GB, free: 58.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007396/0.5538, allocations: 5.466 MB / 0.5467 GB, free: 52.87 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.5538, allocations: 384 / 0.5467 GB, free: 52.87 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002822/0.5566, allocations: 1.93 MB / 0.5486 GB, free: 50.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/0.5601, allocations: 409 kB / 0.549 GB, free: 50.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/0.5766, allocations: 10.03 MB / 0.5588 GB, free: 40.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004391/0.581, allocations: 2.833 MB / 0.5615 GB, free: 37.52 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004824/0.5858, allocations: 1.951 MB / 0.5634 GB, free: 35.56 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/0.587, allocations: 240.5 kB / 0.5637 GB, free: 35.33 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.587, allocations: 0 / 0.5637 GB, free: 35.33 MB / 430.1 MB Notification: Performance of Templates: time 0.0616/0.6486, allocations: 34.86 MB / 0.5977 GB, free: 0.9766 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.2055928111076355]