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.001314/0.001314, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 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.006693/0.006693, allocations: 144.5 kB / 24.68 MB, free: 9.434 MB / 18.57 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 0.8926/0.8926, allocations: 173.4 MB / 201.2 MB, free: 9.406 MB / 186.7 MB " [Timeout remaining time 179] 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 1.743e-06/1.743e-06, allocations: 0 / 319.7 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.749e-05/2.924e-05, allocations: 6.219 kB / 319.7 MB, free: 5.824 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006974/0.007003, allocations: 8.087 MB / 327.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00556/0.01256, allocations: 2.267 MB / 330.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/0.01441, allocations: 31.88 kB / 330.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.0155, allocations: 333 kB / 330.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002095/0.0176, allocations: 0.515 MB / 330.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.01872, allocations: 0.6669 MB / 331.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001904/0.02062, allocations: 2.418 MB / 334 MB, free: 7.441 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008023/0.02142, allocations: 0.6944 MB / 334.7 MB, free: 6.695 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.02253, allocations: 1.306 MB / 336 MB, free: 5.387 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005957/0.02313, allocations: 0.67 MB / 336.7 MB, free: 4.715 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004743/0.0236, allocations: 276 kB / 337 MB, free: 4.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003616/0.02396, allocations: 339.9 kB / 337.3 MB, free: 4.113 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.02422, allocations: 0.5142 MB / 337.8 MB, free: 3.598 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004033/0.02463, allocations: 0.6822 MB / 338.5 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.02675, allocations: 3.498 MB / 342 MB, free: 15.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.02675, allocations: 0 / 342 MB, free: 15.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.02675, allocations: 0 / 342 MB, free: 15.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.02678, allocations: 0 / 342 MB, free: 15.4 MB / 314.7 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.002254/0.02904, allocations: 1.885 MB / 343.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.02907, allocations: 12.03 kB / 343.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.02934, allocations: 191.8 kB / 344.1 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.0305, allocations: 0.7736 MB / 344.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.03073, allocations: 450.3 kB / 345.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.03088, allocations: 156.3 kB / 345.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002001/0.03288, allocations: 1.895 MB / 347.3 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.03292, allocations: 11.98 kB / 347.3 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.373e-05/0.03301, allocations: 60 kB / 347.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.03303, allocations: 39.94 kB / 347.4 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.03499, allocations: 1.566 MB / 349 MB, free: 8.168 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005445/0.04044, allocations: 5.003 MB / 354 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.04167, allocations: 0.9027 MB / 354.9 MB, free: 2.039 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006102/0.04228, allocations: 0.4972 MB / 355.4 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.421e-05/0.04232, allocations: 12.94 kB / 355.4 MB, free: 1.523 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008132/0.04313, allocations: 0.8703 MB / 356.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.295e-06/0.04314, allocations: 0 / 356.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01755/0.06069, allocations: 8.706 MB / 365 MB, free: 7.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.0608, allocations: 295.7 kB / 365.3 MB, free: 7.445 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.06183, allocations: 0.7736 MB / 366.1 MB, free: 6.664 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.06191, allocations: 53.7 kB / 366.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/0.06228, allocations: 0.6838 MB / 366.8 MB, free: 5.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.06251, allocations: 420.4 kB / 367.2 MB, free: 5.496 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002929/0.06281, allocations: 247.5 kB / 367.4 MB, free: 5.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.06294, allocations: 410.8 kB / 367.8 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.06403, allocations: 0.8121 MB / 368.7 MB, free: 4.027 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.06532, allocations: 1.339 MB / 370 MB, free: 2.523 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.06736, allocations: 1.658 MB / 371.7 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.06736, allocations: 4 kB / 371.7 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003034/0.0704, allocations: 2.085 MB / 373.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.07042, allocations: 8 kB / 373.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.07043, allocations: 8 kB / 373.8 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.07074, allocations: 178.5 kB / 373.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008109/0.07155, allocations: 359.4 kB / 374.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.07417, allocations: 4.4 MB / 378.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000869/0.07504, allocations: 164 kB / 378.8 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.978e-05/0.07511, allocations: 56 kB / 378.9 MB, free: 9.195 MB / 346.7 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.0005994/0.07571, allocations: 391.4 kB / 379.3 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.07583, allocations: 103.3 kB / 379.4 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.07595, allocations: 133.5 kB / 379.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.07595, allocations: 12.14 kB / 379.5 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.07596, allocations: 4 kB / 379.5 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.07597, allocations: 11.95 kB / 379.5 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00472/0.08069, allocations: 3.89 MB / 383.4 MB, free: 4.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.0807, allocations: 8 kB / 383.4 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005579/0.08125, allocations: 263.6 kB / 383.7 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003703/0.08162, allocations: 369.7 kB / 384.1 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.679e-05/0.08168, allocations: 35.98 kB / 384.1 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.0828, allocations: 2.141 MB / 386.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.08281, allocations: 19.94 kB / 386.3 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.08589, allocations: 2.499 MB / 388.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003943/0.08628, allocations: 251.2 kB / 389 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.015e-05/0.08637, allocations: 40 kB / 389 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005101/0.08688, allocations: 143.8 kB / 389.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.08712, allocations: 176.2 kB / 389.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/0.08716, allocations: 47.98 kB / 389.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004947/0.08766, allocations: 0.5069 MB / 389.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.08766, allocations: 0 / 389.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009135/0.08857, allocations: 359.9 kB / 390.3 MB, free: 13.37 MB / 362.7 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.0002866/0.08886, allocations: 194.8 kB / 390.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002473/0.09133, allocations: 1.937 MB / 392.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.09134, allocations: 0 / 392.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.09261, allocations: 1.005 MB / 393.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.09337, allocations: 182.6 kB / 393.6 MB, free: 10.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/0.09731, allocations: 2.989 MB / 396.6 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.09775, allocations: 0.594 MB / 397.1 MB, free: 6.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.09812, allocations: 80.5 kB / 397.2 MB, free: 6.152 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.09812, allocations: 0 / 397.2 MB, free: 6.152 MB / 362.7 MB Notification: Performance of Templates: time 0.02836/0.1265, allocations: 36.72 MB / 433.9 MB, free: 1.449 MB / 394.7 MB " [Timeout remaining time 660] 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/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: 6.1650400031358]