Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001474/0.001474, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001662/0.001662, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 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 1.478/1.478, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 62.58 kB / 347.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2847, allocations: 49.15 MB / 396.9 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009499/0.2942, allocations: 8.007 MB / 404.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005421/0.2997, allocations: 2.288 MB / 407.2 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002159/0.3018, allocations: 31.75 kB / 407.2 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.3034, allocations: 322.3 kB / 407.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003518/0.3069, allocations: 0.4955 MB / 408 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002513/0.3094, allocations: 0.6589 MB / 408.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004728/0.3141, allocations: 2.351 MB / 411 MB, free: 76 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003115/0.3172, allocations: 0.6824 MB / 411.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.3197, allocations: 0.8493 MB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00272/0.3225, allocations: 0.7777 MB / 413.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001068/0.3235, allocations: 277.8 kB / 413.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.3252, allocations: 347.7 kB / 413.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.3265, allocations: 0.508 MB / 414.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00244/0.3289, allocations: 0.7899 MB / 415.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005472/0.3344, allocations: 3.386 MB / 418.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3344, allocations: 0 / 418.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3344, allocations: 0 / 418.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001192/0.3345, allocations: 0 / 418.6 MB, free: 10.91 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.006526/0.3411, allocations: 1.903 MB / 420.5 MB, free: 9.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.3411, allocations: 16.34 kB / 420.5 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008933/0.342, allocations: 187.4 kB / 420.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.3443, allocations: 0.7824 MB / 421.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005279/0.3448, allocations: 446.6 kB / 421.9 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004406/0.3453, allocations: 164.8 kB / 422.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005059/0.3503, allocations: 1.891 MB / 424 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.95e-05/0.3504, allocations: 6.328 kB / 424 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002111/0.3506, allocations: 61.41 kB / 424 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.121e-05/0.3506, allocations: 37.66 kB / 424.1 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004028/0.3547, allocations: 1.566 MB / 425.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01227/0.3669, allocations: 5.002 MB / 430.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.3694, allocations: 0.8985 MB / 431.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3706, allocations: 0.5008 MB / 432 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.225e-05/0.3707, allocations: 9 kB / 432.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001603/0.3723, allocations: 0.8692 MB / 432.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 3.476e-06/0.3723, allocations: 0 / 432.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.03726/0.4095, allocations: 8.697 MB / 441.6 MB, free: 5.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002115/0.4097, allocations: 303.7 kB / 441.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.4111, allocations: 0.7775 MB / 442.7 MB, free: 4.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001425/0.4113, allocations: 53.7 kB / 442.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007034/0.412, allocations: 0.676 MB / 443.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005312/0.4125, allocations: 436.4 kB / 443.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005586/0.413, allocations: 247.5 kB / 444.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002534/0.4133, allocations: 406.7 kB / 444.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002177/0.4155, allocations: 0.8121 MB / 445.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002695/0.4182, allocations: 1.343 MB / 446.6 MB, free: 456 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004182/0.4224, allocations: 1.654 MB / 448.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.4224, allocations: 4 kB / 448.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005451/0.4278, allocations: 2.073 MB / 450.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.4278, allocations: 11.94 kB / 450.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.4279, allocations: 11.98 kB / 450.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004931/0.4284, allocations: 186.5 kB / 450.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.4301, allocations: 351.4 kB / 450.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004824/0.4349, allocations: 4.412 MB / 455.3 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.4366, allocations: 176 kB / 455.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.4367, allocations: 44 kB / 455.6 MB, free: 7.109 MB / 366.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 (169): * Single equations (assignments): 166 * 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.0008783/0.4376, allocations: 391.5 kB / 455.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/0.4379, allocations: 107.3 kB / 456 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003104/0.4382, allocations: 129.6 kB / 456.2 MB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.4382, allocations: 12 kB / 456.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.4382, allocations: 0 / 456.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4382, allocations: 7.922 kB / 456.2 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009163/0.4474, allocations: 3.898 MB / 460.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.722e-05/0.4474, allocations: 12 kB / 460.1 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.4487, allocations: 263.6 kB / 460.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000751/0.4494, allocations: 369.8 kB / 460.7 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.4496, allocations: 39.98 kB / 460.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.4519, allocations: 2.141 MB / 462.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-05/0.4519, allocations: 15.94 kB / 462.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005695/0.4576, allocations: 2.511 MB / 465.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008567/0.4584, allocations: 251.2 kB / 465.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003005/0.4587, allocations: 43.98 kB / 465.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.46, allocations: 143.8 kB / 465.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003855/0.4604, allocations: 176.2 kB / 466 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.617e-05/0.4605, allocations: 43.98 kB / 466.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008678/0.4613, allocations: 0.5147 MB / 466.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4613, allocations: 0 / 466.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001541/0.4629, allocations: 344 kB / 466.9 MB, free: 11.28 MB / 382.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003871/0.4633, allocations: 182.9 kB / 467.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004879/0.4681, allocations: 1.936 MB / 469 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.4682, allocations: 4 kB / 469 MB, free: 9.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002578/0.4707, allocations: 1.041 MB / 470.1 MB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.4722, allocations: 183 kB / 470.3 MB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007195/0.4794, allocations: 3.132 MB / 473.4 MB, free: 4.594 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009402/0.4804, allocations: 0.5862 MB / 474 MB, free: 3.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009546/0.4813, allocations: 168 kB / 474.1 MB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000429/0.4817, allocations: 79.42 kB / 474.2 MB, free: 3.727 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4817, allocations: 0 / 474.2 MB, free: 3.727 MB / 382.1 MB Notification: Performance of Templates: time 0.03756/0.5193, allocations: 19.79 MB / 494 MB, free: 15.86 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.527578115463257]