Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.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.001814/0.001814, allocations: 83.84 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002178/0.002178, allocations: 164.1 kB / 23.96 MB, free: 4.145 MB / 14.72 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 1.451/1.451, allocations: 177.1 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4704,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4704,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 325.1 MB, free: 400 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.169e-05, allocations: 6.219 kB / 325.1 MB, free: 392 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01065/0.01067, allocations: 8.231 MB / 333.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005606/0.01628, allocations: 2.396 MB / 335.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.01763, allocations: 35.94 kB / 335.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009622/0.01859, allocations: 338.9 kB / 336.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001528/0.02012, allocations: 0.5365 MB / 336.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.02148, allocations: 0.6651 MB / 337.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002918/0.0244, allocations: 2.438 MB / 339.7 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.02568, allocations: 0.69 MB / 340.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002001/0.02768, allocations: 1.323 MB / 341.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009849/0.02867, allocations: 0.6778 MB / 342.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003321/0.029, allocations: 280 kB / 342.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006516/0.02965, allocations: 351.8 kB / 343 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004883/0.03014, allocations: 0.5258 MB / 343.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008038/0.03094, allocations: 0.6939 MB / 344.3 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003621/0.03456, allocations: 3.529 MB / 347.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.03457, allocations: 0 / 347.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.03457, allocations: 4 kB / 347.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.081e-05/0.0346, allocations: 4 kB / 347.8 MB, free: 14.2 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003882/0.03848, allocations: 1.905 MB / 349.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.03852, allocations: 16.03 kB / 349.7 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004194/0.03894, allocations: 191.8 kB / 349.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.04027, allocations: 0.7814 MB / 350.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004322/0.0407, allocations: 450.3 kB / 351.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.04095, allocations: 156.3 kB / 351.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003515/0.04447, allocations: 1.887 MB / 353.2 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/0.04451, allocations: 7.953 kB / 353.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000161/0.04468, allocations: 64 kB / 353.2 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.266e-05/0.04472, allocations: 43.97 kB / 353.3 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003639/0.04836, allocations: 1.523 MB / 354.8 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009175/0.05753, allocations: 5.014 MB / 359.8 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.05997, allocations: 0.8875 MB / 360.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.06118, allocations: 492.9 kB / 361.2 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.503e-05/0.06124, allocations: 12.94 kB / 361.2 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0016/0.06284, allocations: 0.8575 MB / 362 MB, free: 15.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.585e-06/0.06284, allocations: 0 / 362 MB, free: 15.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.03971/0.1026, allocations: 8.555 MB / 370.6 MB, free: 6.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002087/0.1028, allocations: 299.7 kB / 370.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.1041, allocations: 0.7893 MB / 371.7 MB, free: 5.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/0.1042, allocations: 53.7 kB / 371.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006439/0.1049, allocations: 0.6839 MB / 372.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004472/0.1053, allocations: 432.4 kB / 372.8 MB, free: 4.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/0.1059, allocations: 247.5 kB / 373.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002606/0.1061, allocations: 402.7 kB / 373.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.1084, allocations: 0.7965 MB / 374.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002641/0.111, allocations: 1.315 MB / 375.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004204/0.1152, allocations: 1.615 MB / 377.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1152, allocations: 0 / 377.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005393/0.1206, allocations: 2.041 MB / 379.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.1207, allocations: 8 kB / 379.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.1207, allocations: 8 kB / 379.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005084/0.1212, allocations: 218.4 kB / 379.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/0.123, allocations: 359.5 kB / 379.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004734/0.1277, allocations: 4.436 MB / 384.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/0.1294, allocations: 163.9 kB / 384.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.1295, allocations: 55.98 kB / 384.5 MB, free: 8.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007885/0.1303, allocations: 399.4 kB / 384.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.1305, allocations: 103.3 kB / 385 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/0.1308, allocations: 129.8 kB / 385.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.1308, allocations: 15.94 kB / 385.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1308, allocations: 0 / 385.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.1309, allocations: 7.969 kB / 385.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008322/0.1392, allocations: 3.824 MB / 388.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.1392, allocations: 11.94 kB / 389 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.1405, allocations: 263.7 kB / 389.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005776/0.1411, allocations: 281.5 kB / 389.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.1412, allocations: 39.98 kB / 389.5 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/0.1432, allocations: 2.059 MB / 391.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.339e-05/0.1432, allocations: 15.94 kB / 391.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005561/0.1487, allocations: 2.394 MB / 394 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007064/0.1495, allocations: 255.1 kB / 394.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.1497, allocations: 47.98 kB / 394.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.1508, allocations: 135.9 kB / 394.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003964/0.1512, allocations: 184.1 kB / 394.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.471e-05/0.1513, allocations: 43.98 kB / 394.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008442/0.1522, allocations: 0.5225 MB / 395.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1522, allocations: 0 / 395.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001302/0.1535, allocations: 347.9 kB / 395.5 MB, free: 12.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0016/0.1551, allocations: 458.5 kB / 396 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004875/0.1599, allocations: 1.886 MB / 397.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/0.1599, allocations: 0 / 397.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002535/0.1625, allocations: 1.021 MB / 398.9 MB, free: 9.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.1638, allocations: 188.5 kB / 399 MB, free: 9.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006178/0.17, allocations: 2.963 MB / 402 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007517/0.1707, allocations: 0.598 MB / 402.6 MB, free: 5.527 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008395/0.1716, allocations: 172 kB / 402.8 MB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004148/0.172, allocations: 76.48 kB / 402.8 MB, free: 5.277 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.172, allocations: 0 / 402.8 MB, free: 5.277 MB / 366.1 MB Notification: Performance of Templates: time 0.0331/0.2051, allocations: 18.33 MB / 421.2 MB, free: 3.156 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.103928178548813]