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.0007385/0.0007385, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001003/0.001742, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006735/0.0006735, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008726/0.001546, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8849/0.8849, allocations: 158.6 MB / 171.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1498/1.035, allocations: 49.49 MB / 220.5 MB, free: 1.453 MB / 218.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.665e-06/2.665e-06, allocations: 0 / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.908e-05/4.175e-05, allocations: 10.31 kB / 221.8 MB, free: 168 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01349/0.01353, allocations: 11.94 MB / 233.8 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008018/0.02155, allocations: 4.286 MB / 238.1 MB, free: 15.87 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.02312, allocations: 87.62 kB / 238.1 MB, free: 15.79 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003549/0.02667, allocations: 3.282 MB / 241.4 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004219/0.03089, allocations: 2.193 MB / 243.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.03229, allocations: 0.8497 MB / 244.5 MB, free: 9.438 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005012/0.0373, allocations: 4.693 MB / 249.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003353/0.04066, allocations: 3.382 MB / 252.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004244/0.0449, allocations: 3.009 MB / 255.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00303/0.04793, allocations: 2.365 MB / 257.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007761/0.04871, allocations: 392 kB / 258.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002033/0.05074, allocations: 1.276 MB / 259.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001653/0.05239, allocations: 2.128 MB / 261.7 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.05395, allocations: 1.2 MB / 262.9 MB, free: 6.887 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005909/0.05986, allocations: 4.997 MB / 267.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-05/0.05987, allocations: 0 / 267.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.05987, allocations: 0 / 267.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001447/0.06002, allocations: 4 kB / 267.9 MB, free: 1.867 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.006837/0.06686, allocations: 6.208 MB / 274.1 MB, free: 11.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.06689, allocations: 12.02 kB / 274.1 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003058/0.06995, allocations: 1.253 MB / 275.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00281/0.07276, allocations: 2.155 MB / 277.5 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.07296, allocations: 274.9 kB / 277.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.07332, allocations: 347.8 kB / 278.1 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007101/0.08042, allocations: 5.571 MB / 283.7 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.491e-05/0.0805, allocations: 43.62 kB / 283.8 MB, free: 1.156 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002881/0.08079, allocations: 167.8 kB / 283.9 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1131/0.1939, allocations: 2.063 MB / 286 MB, free: 44.6 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007796/0.2017, allocations: 2.876 MB / 288.9 MB, free: 44.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03138/0.2331, allocations: 33.85 MB / 322.7 MB, free: 20.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004299/0.2374, allocations: 2.044 MB / 324.8 MB, free: 19.89 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006317/0.238, allocations: 0.4918 MB / 325.2 MB, free: 19.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004797/0.2428, allocations: 3.872 MB / 329.1 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.2428, allocations: 59.8 kB / 329.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of pre-optimization done (n=184): time 4.729e-06/0.2429, allocations: 3.188 kB / 329.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=189): time 0.0132/0.2561, allocations: 6.162 MB / 335.3 MB, free: 9.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.2561, allocations: 149.8 kB / 335.5 MB, free: 9.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002493/0.2586, allocations: 3.438 MB / 338.9 MB, free: 6.348 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001589/0.2587, allocations: 53.7 kB / 339 MB, free: 6.289 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008846/0.2596, allocations: 3.418 MB / 342.4 MB, free: 2.852 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004046/0.26, allocations: 0.7636 MB / 343.2 MB, free: 2.082 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007992/0.2608, allocations: 1.263 MB / 344.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 2.836e-05/0.2609, allocations: 301.1 kB / 344.7 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.2621, allocations: 0.8542 MB / 345.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003183/0.2653, allocations: 4.802 MB / 350.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005103/0.2704, allocations: 6.202 MB / 356.6 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.382e-05/0.2705, allocations: 47.94 kB / 356.6 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.006015/0.2765, allocations: 4.602 MB / 361.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.454e-05/0.2765, allocations: 64 kB / 361.3 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.2766, allocations: 148.2 kB / 361.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.2777, allocations: 371.9 kB / 361.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/0.2805, allocations: 1.681 MB / 363.5 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.2825, allocations: 2.204 MB / 365.7 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/0.2854, allocations: 299.7 kB / 366 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003868/0.2858, allocations: 348 kB / 366.3 MB, free: 6.762 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * 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 (834): * Single equations (assignments): 828 * 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.001462/0.2872, allocations: 0.6584 MB / 367 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004756/0.2877, allocations: 243.2 kB / 367.2 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/0.2893, allocations: 1.117 MB / 368.3 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/0.2893, allocations: 24 kB / 368.4 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.2893, allocations: 4 kB / 368.4 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.2893, allocations: 7.969 kB / 368.4 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007157/0.2965, allocations: 4.614 MB / 373 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.2965, allocations: 8 kB / 373 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008483/0.2974, allocations: 327.6 kB / 373.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.2984, allocations: 469.3 kB / 373.8 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008361/0.2992, allocations: 390.6 kB / 374.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.2993, allocations: 39.98 kB / 374.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/0.3013, allocations: 1.922 MB / 376.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.3013, allocations: 8 kB / 376.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.3039, allocations: 2.13 MB / 378.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004278/0.3043, allocations: 36 kB / 378.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006942/0.305, allocations: 39.98 kB / 378.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.3051, allocations: 128.6 kB / 378.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.3052, allocations: 47.94 kB / 378.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001236/0.3064, allocations: 1.25 MB / 379.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3064, allocations: 0 / 379.7 MB, free: 8.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003548/0.31, allocations: 1.148 MB / 380.9 MB, free: 7.82 MB / 330.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 (161): * Single equations (assignments): 157 * 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.0004032/0.3104, allocations: 180.8 kB / 381.1 MB, free: 7.637 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003669/0.3141, allocations: 2.786 MB / 383.8 MB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000199/0.3143, allocations: 120 kB / 384 MB, free: 4.746 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000737/0.315, allocations: 0.628 MB / 384.6 MB, free: 4.102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/0.3172, allocations: 0.9206 MB / 385.5 MB, free: 3.188 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.3323, allocations: 8.622 MB / 394.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001415/0.3337, allocations: 1.413 MB / 395.5 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001645/0.3354, allocations: 0.5252 MB / 396.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008677/0.3362, allocations: 0.5559 MB / 396.6 MB, free: 7.863 MB / 346.7 MB Notification: Performance of SimCode: time 1.653e-06/0.3362, allocations: 0 / 396.6 MB, free: 7.863 MB / 346.7 MB Notification: Performance of Templates: time 0.1603/0.4965, allocations: 33.61 MB / 430.2 MB, free: 110.7 MB / 362.7 MB " [Timeout remaining time 660] 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 -ignoreHideResult -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: 3.766974496655166]