Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 104 kB / 21.18 MB, free: 0.6719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 194.4 kB / 24.46 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 55.91 kB / 371.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3044, allocations: 52.17 MB / 423.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01169/0.3161, allocations: 8.111 MB / 431.9 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005701/0.3218, allocations: 2.248 MB / 434.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.3232, allocations: 31.88 kB / 434.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009721/0.3242, allocations: 337 kB / 434.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001609/0.3258, allocations: 0.4958 MB / 435 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.3272, allocations: 0.6633 MB / 435.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002961/0.3302, allocations: 2.337 MB / 438 MB, free: 260 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.3315, allocations: 0.6947 MB / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.3328, allocations: 0.8413 MB / 439.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.3338, allocations: 0.7854 MB / 440.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003374/0.3342, allocations: 284 kB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005852/0.3348, allocations: 332 kB / 441 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004483/0.3352, allocations: 0.5064 MB / 441.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008096/0.336, allocations: 0.7899 MB / 442.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003539/0.3396, allocations: 3.394 MB / 445.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3396, allocations: 0 / 445.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3396, allocations: 3.938 kB / 445.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.595e-05/0.3396, allocations: 0 / 445.7 MB, free: 8.562 MB / 350.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.004105/0.3437, allocations: 1.896 MB / 447.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3438, allocations: 12.92 kB / 447.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004506/0.3442, allocations: 187.8 kB / 447.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.3457, allocations: 0.786 MB / 448.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00044/0.3461, allocations: 442.3 kB / 449 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/0.3464, allocations: 163.9 kB / 449.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.3499, allocations: 1.887 MB / 451 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.142e-05/0.3499, allocations: 4 kB / 451 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.3501, allocations: 68 kB / 451.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.781e-05/0.3501, allocations: 36 kB / 451.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/0.3536, allocations: 1.566 MB / 452.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009257/0.3629, allocations: 5.01 MB / 457.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002253/0.3651, allocations: 0.91 MB / 458.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.3663, allocations: 0.4957 MB / 459.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.927e-05/0.3663, allocations: 13 kB / 459.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001524/0.3679, allocations: 0.8692 MB / 460 MB, free: 9.707 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.776e-06/0.3679, allocations: 0 / 460 MB, free: 9.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03553/0.4034, allocations: 8.69 MB / 468.7 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002035/0.4036, allocations: 299.7 kB / 469 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.4048, allocations: 0.7736 MB / 469.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.4049, allocations: 57.73 kB / 469.8 MB, free: 15.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006086/0.4055, allocations: 0.6799 MB / 470.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003973/0.4059, allocations: 432.3 kB / 470.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004817/0.4064, allocations: 243.5 kB / 471.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.4066, allocations: 410.7 kB / 471.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002132/0.4087, allocations: 0.8199 MB / 472.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002466/0.4112, allocations: 1.335 MB / 473.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.4151, allocations: 1.654 MB / 475.3 MB, free: 9.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.4151, allocations: 7.984 kB / 475.4 MB, free: 9.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00515/0.4203, allocations: 2.077 MB / 477.4 MB, free: 7.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.4203, allocations: 15.94 kB / 477.4 MB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.4203, allocations: 11.94 kB / 477.5 MB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004219/0.4207, allocations: 178.5 kB / 477.6 MB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/0.4224, allocations: 355.5 kB / 478 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.4267, allocations: 4.412 MB / 482.4 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.4282, allocations: 167.8 kB / 482.6 MB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4283, allocations: 48 kB / 482.6 MB, free: 2.336 MB / 382.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.0007696/0.4291, allocations: 383.5 kB / 483 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.4293, allocations: 103.3 kB / 483.1 MB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.4296, allocations: 137.6 kB / 483.2 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.4296, allocations: 12 kB / 483.2 MB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.4296, allocations: 4 kB / 483.2 MB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.4296, allocations: 7.922 kB / 483.2 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007997/0.4376, allocations: 3.893 MB / 487.1 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.4376, allocations: 8 kB / 487.1 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/0.4388, allocations: 268.2 kB / 487.4 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006099/0.4394, allocations: 369.4 kB / 487.8 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.4395, allocations: 35.98 kB / 487.8 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001907/0.4414, allocations: 2.141 MB / 489.9 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/0.4414, allocations: 19.92 kB / 490 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005256/0.4467, allocations: 2.515 MB / 492.5 MB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000659/0.4473, allocations: 255.1 kB / 492.7 MB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.4475, allocations: 47.98 kB / 492.8 MB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.4486, allocations: 143.8 kB / 492.9 MB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003472/0.4489, allocations: 172.2 kB / 493.1 MB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.745e-05/0.449, allocations: 47.98 kB / 493.1 MB, free: 7.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000776/0.4498, allocations: 0.5108 MB / 493.6 MB, free: 6.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4498, allocations: 4 kB / 493.6 MB, free: 6.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001266/0.4511, allocations: 344 kB / 494 MB, free: 6.504 MB / 398.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.0003492/0.4514, allocations: 180.2 kB / 494.2 MB, free: 6.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004319/0.4557, allocations: 1.938 MB / 496.1 MB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.4558, allocations: 4 kB / 496.1 MB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002222/0.458, allocations: 1.012 MB / 497.1 MB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.459, allocations: 179.1 kB / 497.3 MB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006081/0.4651, allocations: 3.173 MB / 0.4887 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007043/0.4658, allocations: 0.5901 MB / 0.4893 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004527/0.4663, allocations: 91.42 kB / 0.4894 GB, free: 15.09 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4663, allocations: 0 / 0.4894 GB, free: 15.09 MB / 414.1 MB Notification: Performance of Templates: time 0.04512/0.5114, allocations: 36.66 MB / 0.5252 GB, free: 10.44 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.551628293003887]