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.0009691/0.0009691, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001035/0.001035, allocations: 166 kB / 24.82 MB, free: 9.266 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.9673/0.9673, allocations: 177.1 MB / 205.3 MB, free: 5.465 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 2.645e-06/2.645e-06, allocations: 4 kB / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.476e-05, allocations: 2.312 kB / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01047/0.01049, allocations: 10.58 MB / 284 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008737/0.01923, allocations: 3.952 MB / 287.9 MB, free: 2.652 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001814/0.02104, allocations: 79.69 kB / 288 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1348/0.1558, allocations: 3.357 MB / 291.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004538/0.1603, allocations: 2.001 MB / 293.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.162, allocations: 0.9026 MB / 294.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006307/0.1683, allocations: 4.814 MB / 299.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004564/0.1729, allocations: 3.391 MB / 302.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005489/0.1784, allocations: 2.97 MB / 305.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002873/0.1812, allocations: 2.247 MB / 307.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008272/0.1821, allocations: 348 kB / 308 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.1837, allocations: 1.184 MB / 309.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.1849, allocations: 2.14 MB / 311.4 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.1863, allocations: 1.314 MB / 312.7 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004198/0.1905, allocations: 4.853 MB / 317.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1906, allocations: 0 / 317.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1906, allocations: 0 / 317.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001775/0.1907, allocations: 0 / 317.5 MB, free: 3.387 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.006338/0.1971, allocations: 5.332 MB / 322.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1971, allocations: 8.031 kB / 322.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0045/0.2016, allocations: 1.668 MB / 324.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003907/0.2055, allocations: 2.157 MB / 326.7 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.2057, allocations: 244.6 kB / 326.9 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005782/0.2063, allocations: 318.6 kB / 327.3 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009024/0.2153, allocations: 5.657 MB / 332.9 MB, free: 4.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.2154, allocations: 45.47 kB / 333 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003241/0.2157, allocations: 152.6 kB / 333.1 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001864/0.2176, allocations: 1.761 MB / 334.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006536/0.2241, allocations: 2.552 MB / 337.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03874/0.2629, allocations: 43.34 MB / 380.8 MB, free: 4.047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005716/0.2686, allocations: 1.991 MB / 382.8 MB, free: 2.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008622/0.2695, allocations: 0.5235 MB / 383.3 MB, free: 1.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004748/0.2742, allocations: 3.851 MB / 387.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.2742, allocations: 54.38 kB / 387.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=145): time 4.619e-06/0.2742, allocations: 0 / 387.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=150): time 0.01616/0.2904, allocations: 6.462 MB / 393.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.2905, allocations: 167.2 kB / 393.8 MB, free: 6.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/0.2941, allocations: 3.696 MB / 397.5 MB, free: 3.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001659/0.2943, allocations: 45.7 kB / 397.5 MB, free: 3.086 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.296, allocations: 3.561 MB / 401.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006599/0.2967, allocations: 0.6477 MB / 401.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001171/0.2978, allocations: 1.382 MB / 403.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2979, allocations: 476.8 kB / 403.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008717/0.2988, allocations: 0.5624 MB / 404.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003878/0.3027, allocations: 6.353 MB / 410.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005863/0.3086, allocations: 7.547 MB / 418.1 MB, free: 9.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/0.3087, allocations: 48 kB / 418.1 MB, free: 9.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.006781/0.3154, allocations: 5.005 MB / 423.1 MB, free: 4.176 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.84e-05/0.3155, allocations: 63.94 kB / 423.2 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.015e-05/0.3156, allocations: 140 kB / 423.3 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007905/0.3164, allocations: 364 kB / 423.7 MB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/0.3186, allocations: 1.376 MB / 425 MB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.3207, allocations: 2.756 MB / 427.8 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/0.3234, allocations: 267.7 kB / 428.1 MB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005759/0.324, allocations: 324 kB / 428.4 MB, free: 14.79 MB / 394.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.001141/0.3251, allocations: 0.6781 MB / 429.1 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.3256, allocations: 381.7 kB / 429.4 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.327, allocations: 0.9896 MB / 430.4 MB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.327, allocations: 19.98 kB / 430.4 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.327, allocations: 7.984 kB / 430.4 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.327, allocations: 3.984 kB / 430.5 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006192/0.3332, allocations: 4.715 MB / 435.2 MB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.3332, allocations: 8 kB / 435.2 MB, free: 7.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005292/0.3337, allocations: 207.7 kB / 435.4 MB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008477/0.3346, allocations: 183.7 kB / 435.6 MB, free: 7.406 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.55e-05/0.3346, allocations: 35.98 kB / 435.6 MB, free: 7.371 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.3364, allocations: 2.509 MB / 438.1 MB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3364, allocations: 8 kB / 438.1 MB, free: 4.742 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.3386, allocations: 2.166 MB / 440.3 MB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005302/0.3391, allocations: 313.6 kB / 440.6 MB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.3393, allocations: 35.98 kB / 440.6 MB, free: 2.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005739/0.3399, allocations: 32 kB / 440.6 MB, free: 2.066 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.34, allocations: 104.2 kB / 440.7 MB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.34, allocations: 43.98 kB / 440.8 MB, free: 1.922 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001463/0.3415, allocations: 1.465 MB / 442.3 MB, free: 484 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3415, allocations: 0 / 442.3 MB, free: 484 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.1403/0.4818, allocations: 1.004 MB / 443.3 MB, free: 121.9 MB / 394.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.0004673/0.4823, allocations: 179.4 kB / 443.4 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004309/0.4866, allocations: 2.753 MB / 446.2 MB, free: 121.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.4866, allocations: 1.125 kB / 446.2 MB, free: 121.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000795/0.4874, allocations: 0.6271 MB / 446.8 MB, free: 121.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/0.4894, allocations: 408 kB / 447.2 MB, free: 121.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/0.5002, allocations: 7.643 MB / 454.9 MB, free: 118.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.5014, allocations: 1.263 MB / 456.1 MB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001272/0.5027, allocations: 492.7 kB / 456.6 MB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006959/0.5034, allocations: 0.5501 MB / 457.2 MB, free: 117.7 MB / 394.7 MB Notification: Performance of SimCode: time 2.245e-06/0.5034, allocations: 0 / 457.2 MB, free: 117.7 MB / 394.7 MB Notification: Performance of Templates: time 0.04258/0.546, allocations: 29.38 MB / 486.5 MB, free: 98.88 MB / 394.7 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=240 -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.78759253770113]