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.0007761/0.0007761, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001088/0.001864, allocations: 449.8 kB / 10.44 MB, free: 252 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.001677/0.001677, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001889/0.003566, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9965/0.9965, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07722/1.074, allocations: 53.65 MB / 243.4 MB, free: 15.51 MB / 250.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.282e-06/1.282e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046e-05/1.174e-05, allocations: 5.688 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.008013/0.008024, allocations: 10.73 MB / 255.4 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00474/0.01276, allocations: 4.145 MB / 259.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005387/0.0133, allocations: 83.62 kB / 259.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.01626, allocations: 3.224 MB / 262.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.01855, allocations: 1.975 MB / 264.9 MB, free: 9.969 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009356/0.01948, allocations: 0.8341 MB / 265.7 MB, free: 9.133 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003428/0.02291, allocations: 4.514 MB / 270.2 MB, free: 4.609 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/0.02532, allocations: 3.198 MB / 273.4 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1091/0.1344, allocations: 2.891 MB / 276.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002666/0.1371, allocations: 2.121 MB / 278.4 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004792/0.1376, allocations: 347.8 kB / 278.8 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.1392, allocations: 1.223 MB / 280 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.1404, allocations: 1.916 MB / 281.9 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009736/0.1414, allocations: 1.071 MB / 283 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002973/0.1444, allocations: 4.496 MB / 287.5 MB, free: 4.059 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.1444, allocations: 0.5312 kB / 287.5 MB, free: 4.059 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1444, allocations: 0 / 287.5 MB, free: 4.059 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.067e-05/0.1444, allocations: 1.219 kB / 287.5 MB, free: 4.059 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.004321/0.1488, allocations: 5.68 MB / 293.2 MB, free: 1.957 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.1488, allocations: 9.906 kB / 293.2 MB, free: 1.957 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002554/0.1513, allocations: 1.116 MB / 294.3 MB, free: 1.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/0.1533, allocations: 2.015 MB / 296.3 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.323e-05/0.1534, allocations: 243.4 kB / 296.5 MB, free: 1.352 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003195/0.1537, allocations: 327.2 kB / 296.9 MB, free: 1.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004575/0.1582, allocations: 5.094 MB / 302 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.789e-05/0.1583, allocations: 45.08 kB / 302 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.1586, allocations: 152.3 kB / 302.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001607/0.1602, allocations: 1.674 MB / 303.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003798/0.164, allocations: 2.595 MB / 306.4 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01981/0.1838, allocations: 31.49 MB / 337.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004113/0.1879, allocations: 1.893 MB / 339.8 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006313/0.1885, allocations: 429.2 kB / 340.2 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003848/0.1924, allocations: 3.528 MB / 343.7 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.1924, allocations: 55.55 kB / 343.8 MB, free: 4.949 MB / 314.7 MB Notification: Performance of pre-optimization done (n=145): time 2.695e-06/0.1924, allocations: 4 kB / 343.8 MB, free: 4.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.01302/0.2054, allocations: 5.708 MB / 349.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.2055, allocations: 145.5 kB / 349.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002189/0.2077, allocations: 3.302 MB / 353 MB, free: 12.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.2077, allocations: 49.7 kB / 353 MB, free: 12.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/0.2092, allocations: 3.14 MB / 356.1 MB, free: 9.402 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00033/0.2095, allocations: 0.6235 MB / 356.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008956/0.2104, allocations: 1.175 MB / 357.9 MB, free: 7.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/0.2105, allocations: 303.8 kB / 358.2 MB, free: 7.465 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.2116, allocations: 0.761 MB / 359 MB, free: 6.699 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002928/0.2145, allocations: 4.548 MB / 363.5 MB, free: 428 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004312/0.2188, allocations: 6.286 MB / 369.8 MB, free: 8.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.572e-05/0.2188, allocations: 40 kB / 369.9 MB, free: 8.578 MB / 346.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.004143/0.223, allocations: 4.278 MB / 374.2 MB, free: 4.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002916/0.2233, allocations: 67.94 kB / 374.2 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.773e-05/0.2234, allocations: 148 kB / 374.4 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000705/0.2241, allocations: 374.4 kB / 374.7 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.2263, allocations: 1.548 MB / 376.3 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.2281, allocations: 2.191 MB / 378.5 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.2298, allocations: 275.1 kB / 378.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002696/0.2301, allocations: 336.6 kB / 379.1 MB, free: 15.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 (772): * Single equations (assignments): 768 * 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 prepare postOptimizeDAE: time 0.0009828/0.2311, allocations: 0.6352 MB / 379.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.2313, allocations: 207.8 kB / 379.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.2325, allocations: 0.8813 MB / 380.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.2325, allocations: 19.94 kB / 380.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2325, allocations: 0 / 380.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.2325, allocations: 11.97 kB / 380.8 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004624/0.2371, allocations: 3.992 MB / 384.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/0.2372, allocations: 15.98 kB / 384.8 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.2377, allocations: 247.6 kB / 385.1 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.238, allocations: 305.6 kB / 385.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007282/0.2387, allocations: 378.1 kB / 385.7 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-05/0.2388, allocations: 35.98 kB / 385.8 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.2402, allocations: 1.922 MB / 387.7 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.2402, allocations: 11.94 kB / 387.7 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.2421, allocations: 1.813 MB / 389.5 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.2423, allocations: 43.97 kB / 389.6 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005487/0.2429, allocations: 28 kB / 389.6 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.243, allocations: 100.3 kB / 389.7 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.678e-05/0.2431, allocations: 39.98 kB / 389.7 MB, free: 4.617 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008909/0.2439, allocations: 1.194 MB / 390.9 MB, free: 3.438 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2439, allocations: 0 / 390.9 MB, free: 3.438 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002373/0.2463, allocations: 1.012 MB / 391.9 MB, free: 2.426 MB / 362.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.0002871/0.2466, allocations: 176.6 kB / 392.1 MB, free: 2.246 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00228/0.2489, allocations: 2.635 MB / 394.7 MB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001647/0.2491, allocations: 111.5 kB / 394.8 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.2501, allocations: 1.067 MB / 395.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/0.2523, allocations: 2.598 MB / 398.5 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009767/0.2621, allocations: 7.697 MB / 406.2 MB, free: 3.605 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.2634, allocations: 1.259 MB / 407.5 MB, free: 2.316 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001328/0.2648, allocations: 491.4 kB / 407.9 MB, free: 1.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008691/0.2656, allocations: 0.5012 MB / 408.4 MB, free: 1.332 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2656, allocations: 0 / 408.4 MB, free: 1.332 MB / 378.7 MB Notification: Performance of Templates: time 0.146/0.4116, allocations: 28.28 MB / 436.7 MB, free: 122.7 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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.294783104211092]