Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009997/0.0009997, allocations: 75.77 kB / 22.46 MB, free: 2.094 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.001062/0.001062, allocations: 158.9 kB / 25.75 MB, free: 8.965 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8659/0.8659, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.753e-05/2.966e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01412/0.01415, allocations: 12.14 MB / 263.3 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007082/0.02123, allocations: 4.112 MB / 267.4 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007657/0.022, allocations: 87.69 kB / 267.4 MB, free: 7.398 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003364/0.02536, allocations: 3.469 MB / 270.9 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002824/0.02818, allocations: 2.232 MB / 273.1 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.0293, allocations: 0.8927 MB / 274 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003784/0.03308, allocations: 4.937 MB / 279 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002509/0.03559, allocations: 3.595 MB / 282.6 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002354/0.03794, allocations: 2.658 MB / 285.2 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.04019, allocations: 2.541 MB / 287.8 MB, free: 2.957 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004013/0.0406, allocations: 392 kB / 288.2 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.04206, allocations: 1.24 MB / 289.4 MB, free: 1.332 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001426/0.04349, allocations: 2.388 MB / 291.8 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.04462, allocations: 1.472 MB / 293.3 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004311/0.04893, allocations: 5.402 MB / 298.7 MB, free: 8.035 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.04893, allocations: 0 / 298.7 MB, free: 8.035 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.04893, allocations: 0 / 298.7 MB, free: 8.035 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.077e-05/0.049, allocations: 0 / 298.7 MB, free: 8.035 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.007936/0.05694, allocations: 5.99 MB / 304.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.05698, allocations: 11.98 kB / 304.7 MB, free: 1.969 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00546/0.06244, allocations: 2.783 MB / 307.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003039/0.06548, allocations: 2.641 MB / 310.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.06561, allocations: 270.9 kB / 310.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004425/0.06605, allocations: 347.8 kB / 310.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007519/0.07357, allocations: 6.911 MB / 317.6 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.612e-05/0.07364, allocations: 43.64 kB / 317.6 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.07394, allocations: 167.8 kB / 317.8 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002205/0.07614, allocations: 2.346 MB / 320.2 MB, free: 1.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007584/0.08373, allocations: 3.898 MB / 324 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1452/0.2289, allocations: 46.54 MB / 370.6 MB, free: 64.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007757/0.2367, allocations: 2.871 MB / 373.5 MB, free: 64.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.238, allocations: 0.8901 MB / 374.3 MB, free: 64.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006158/0.2441, allocations: 4.976 MB / 379.3 MB, free: 63.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.2442, allocations: 59.45 kB / 379.4 MB, free: 63.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=216): time 4.018e-06/0.2442, allocations: 0 / 379.4 MB, free: 63.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=237): time 0.03119/0.2754, allocations: 14.93 MB / 394.3 MB, free: 51.01 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.2754, allocations: 176.2 kB / 394.5 MB, free: 50.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.2788, allocations: 3.747 MB / 398.2 MB, free: 47.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.279, allocations: 57.7 kB / 398.3 MB, free: 47.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001396/0.2803, allocations: 3.702 MB / 402 MB, free: 43.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005445/0.2809, allocations: 0.9645 MB / 402.9 MB, free: 42.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001415/0.2823, allocations: 1.483 MB / 404.4 MB, free: 41.19 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.189e-05/0.2823, allocations: 476.8 kB / 404.9 MB, free: 40.72 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.284, allocations: 0.8643 MB / 405.8 MB, free: 39.85 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/0.2872, allocations: 6.678 MB / 412.4 MB, free: 30.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005365/0.2925, allocations: 8.328 MB / 420.8 MB, free: 19.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.813e-05/0.2926, allocations: 38.94 kB / 420.8 MB, free: 19.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.006702/0.2993, allocations: 6.522 MB / 427.3 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.2993, allocations: 64 kB / 427.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.283e-05/0.2994, allocations: 136 kB / 427.5 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.3008, allocations: 0.8036 MB / 428.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00243/0.3032, allocations: 1.602 MB / 429.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/0.3065, allocations: 3.912 MB / 433.8 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.3088, allocations: 423.5 kB / 434.3 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002984/0.3091, allocations: 403.9 kB / 434.7 MB, free: 5.754 MB / 330.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: 42 (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 (835): * Single equations (assignments): 829 * 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.001042/0.3102, allocations: 0.7128 MB / 435.4 MB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003673/0.3106, allocations: 433.6 kB / 435.8 MB, free: 4.605 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.3137, allocations: 2.422 MB / 438.2 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.3137, allocations: 27.94 kB / 438.2 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3137, allocations: 4 kB / 438.2 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.3137, allocations: 19.89 kB / 438.3 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008659/0.3224, allocations: 6.853 MB / 445.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.3224, allocations: 7.938 kB / 445.1 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.3234, allocations: 432 kB / 445.5 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.3248, allocations: 0.6119 MB / 446.2 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001264/0.325, allocations: 51.98 kB / 446.2 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00361/0.3286, allocations: 3.618 MB / 449.8 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3286, allocations: 7.938 kB / 449.8 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004906/0.3335, allocations: 3.769 MB / 453.6 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008404/0.3343, allocations: 0.6652 MB / 454.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.3346, allocations: 43.98 kB / 454.3 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009298/0.3356, allocations: 183.7 kB / 454.5 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.3358, allocations: 153.6 kB / 454.6 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.3359, allocations: 68 kB / 454.7 MB, free: 1.363 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001671/0.3376, allocations: 1.607 MB / 456.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3376, allocations: 0 / 456.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003618/0.3412, allocations: 1.268 MB / 457.6 MB, free: 14.51 MB / 362.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 (198): * Single equations (assignments): 194 * 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.0003678/0.3416, allocations: 218.6 kB / 457.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.3461, allocations: 3.737 MB / 461.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3461, allocations: 4 kB / 461.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.3477, allocations: 1.295 MB / 462.8 MB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.3491, allocations: 436.4 kB / 463.3 MB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009847/0.3589, allocations: 9.058 MB / 472.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.3601, allocations: 1.452 MB / 473.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002749/0.3629, allocations: 1.785 MB / 475.5 MB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005994/0.3635, allocations: 260.4 kB / 475.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3635, allocations: 0 / 475.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of Templates: time 0.1525/0.516, allocations: 38.08 MB / 0.5018 GB, free: 148.4 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.136040399083868]