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.001199/0.001199, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001048/0.001048, allocations: 170.3 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9703/0.9703, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] 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.533e-06/1.533e-06, allocations: 0 / 273.5 MB, free: 1.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.15e-05/1.303e-05, allocations: 5.969 kB / 273.5 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01467/0.01468, allocations: 10.65 MB / 284.2 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006299/0.02098, allocations: 4.091 MB / 288.2 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000649/0.02163, allocations: 79.69 kB / 288.3 MB, free: 2.227 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1228/0.1444, allocations: 3.345 MB / 291.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004415/0.1488, allocations: 1.988 MB / 293.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1506, allocations: 0.8975 MB / 294.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006187/0.1567, allocations: 4.784 MB / 299.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003651/0.1604, allocations: 3.375 MB / 302.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004131/0.1645, allocations: 2.916 MB / 305.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.1672, allocations: 2.14 MB / 307.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006649/0.1679, allocations: 354.2 kB / 308.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.1696, allocations: 1.224 MB / 309.3 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.1708, allocations: 2.13 MB / 311.5 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.1719, allocations: 1.309 MB / 312.8 MB, free: 7.789 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003917/0.1758, allocations: 4.859 MB / 317.6 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1758, allocations: 0 / 317.6 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1758, allocations: 4 kB / 317.6 MB, free: 3.238 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000164/0.176, allocations: 0 / 317.6 MB, free: 3.238 MB / 266.7 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.00542/0.1814, allocations: 4.723 MB / 322.4 MB, free: 14.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1815, allocations: 12.03 kB / 322.4 MB, free: 14.85 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002832/0.1843, allocations: 1.116 MB / 323.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.1869, allocations: 2.013 MB / 325.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.187, allocations: 245.8 kB / 325.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003873/0.1874, allocations: 318.2 kB / 326.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006533/0.194, allocations: 5.103 MB / 331.2 MB, free: 6.062 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.592e-05/0.1941, allocations: 44.09 kB / 331.2 MB, free: 6.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/0.1943, allocations: 150.1 kB / 331.3 MB, free: 5.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001414/0.1957, allocations: 1.765 MB / 333.1 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005112/0.2008, allocations: 2.604 MB / 335.7 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02726/0.2281, allocations: 31.51 MB / 367.2 MB, free: 2.016 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004588/0.2327, allocations: 1.933 MB / 369.2 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006946/0.2334, allocations: 428.3 kB / 369.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005467/0.2388, allocations: 3.571 MB / 373.1 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.2389, allocations: 47.56 kB / 373.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 5.239e-06/0.2389, allocations: 4 kB / 373.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01602/0.2549, allocations: 5.732 MB / 378.9 MB, free: 6.188 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.255, allocations: 171.2 kB / 379.1 MB, free: 5.984 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.2576, allocations: 3.305 MB / 382.4 MB, free: 2.684 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.2578, allocations: 49.69 kB / 382.5 MB, free: 2.629 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001508/0.2593, allocations: 3.138 MB / 385.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004879/0.2598, allocations: 0.6242 MB / 386.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009143/0.2607, allocations: 1.172 MB / 387.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.2607, allocations: 301.1 kB / 387.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.2618, allocations: 0.7587 MB / 388.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002922/0.2647, allocations: 4.495 MB / 392.9 MB, free: 6.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004573/0.2693, allocations: 5.768 MB / 398.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.415e-05/0.2694, allocations: 40 kB / 398.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.005998/0.2754, allocations: 4.242 MB / 403 MB, free: 10.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.611e-05/0.2754, allocations: 72.16 kB / 403.1 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.301e-05/0.2755, allocations: 136 kB / 403.2 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008168/0.2764, allocations: 363.8 kB / 403.5 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/0.2789, allocations: 1.439 MB / 405 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.281, allocations: 2.192 MB / 407.2 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002637/0.2836, allocations: 275.7 kB / 407.4 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004053/0.2841, allocations: 328 kB / 407.8 MB, free: 5.281 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (762): * Single equations (assignments): 756 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0013/0.2854, allocations: 0.6234 MB / 408.4 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000433/0.2858, allocations: 207.8 kB / 408.6 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.2875, allocations: 0.8861 MB / 409.5 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.336e-05/0.2875, allocations: 19.94 kB / 409.5 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.2875, allocations: 4 kB / 409.5 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.2875, allocations: 3.984 kB / 409.5 MB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006029/0.2936, allocations: 4.005 MB / 413.5 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.2936, allocations: 4 kB / 413.5 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006136/0.2942, allocations: 231.7 kB / 413.7 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008062/0.295, allocations: 377.8 kB / 414.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.808e-05/0.2951, allocations: 32 kB / 414.1 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.2968, allocations: 1.924 MB / 416.1 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.2969, allocations: 12 kB / 416.1 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.2993, allocations: 1.818 MB / 417.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005775/0.2999, allocations: 309.6 kB / 418.2 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002323/0.3002, allocations: 35.98 kB / 418.2 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.3007, allocations: 28 kB / 418.3 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.3009, allocations: 96.38 kB / 418.3 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.317e-05/0.3009, allocations: 43.94 kB / 418.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001267/0.3022, allocations: 1.198 MB / 419.6 MB, free: 9.066 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3022, allocations: 0 / 419.6 MB, free: 9.066 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003762/0.306, allocations: 1.008 MB / 420.6 MB, free: 8.059 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (120): * Single equations (assignments): 116 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004206/0.3064, allocations: 160.1 kB / 420.8 MB, free: 7.891 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003438/0.3098, allocations: 2.493 MB / 423.2 MB, free: 5.406 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000452/0.3103, allocations: 104.2 kB / 423.3 MB, free: 5.293 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007028/0.311, allocations: 0.5233 MB / 423.9 MB, free: 4.754 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/0.3132, allocations: 0.6073 MB / 424.5 MB, free: 4.148 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.3234, allocations: 7.513 MB / 432 MB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.3247, allocations: 1.257 MB / 433.2 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001358/0.326, allocations: 499.2 kB / 433.7 MB, free: 10.69 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007601/0.3268, allocations: 0.509 MB / 434.2 MB, free: 10.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.723e-06/0.3268, allocations: 4 kB / 434.2 MB, free: 10.17 MB / 394.7 MB Notification: Performance of Templates: time 0.1486/0.4754, allocations: 29.29 MB / 463.5 MB, free: 121.9 MB / 394.7 MB " [Timeout remaining time 660] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.69338369788602]