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.001378/0.001378, allocations: 78.09 kB / 20.68 MB, free: 1.035 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.001331/0.001331, allocations: 154.5 kB / 23.94 MB, free: 4.176 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.41/1.41, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.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 1.353e-06/1.353e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.316e-05, allocations: 2.281 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008983/0.009006, allocations: 8.106 MB / 327 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005181/0.01419, allocations: 2.253 MB / 329.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.01526, allocations: 35.22 kB / 329.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008309/0.01609, allocations: 327.4 kB / 329.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001475/0.01757, allocations: 0.5159 MB / 330.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.01899, allocations: 0.6725 MB / 330.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003/0.02199, allocations: 2.418 MB / 333.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.02318, allocations: 0.6904 MB / 333.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.02498, allocations: 1.308 MB / 335.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009158/0.0259, allocations: 0.6666 MB / 335.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000301/0.0262, allocations: 284.8 kB / 336.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005404/0.02674, allocations: 341 kB / 336.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000481/0.02722, allocations: 0.5107 MB / 337 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007942/0.02802, allocations: 0.684 MB / 337.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00362/0.03164, allocations: 3.493 MB / 341.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.03164, allocations: 1 kB / 341.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.03164, allocations: 0 / 341.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.723e-05/0.03169, allocations: 3.938 kB / 341.2 MB, free: 4.66 MB / 302.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.003986/0.03567, allocations: 1.882 MB / 343.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.03571, allocations: 9.094 kB / 343.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004094/0.03612, allocations: 193.7 kB / 343.3 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.03751, allocations: 0.7814 MB / 344.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004425/0.03795, allocations: 446.3 kB / 344.5 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/0.03823, allocations: 164.2 kB / 344.7 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003552/0.04178, allocations: 1.891 MB / 346.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.572e-05/0.04182, allocations: 4 kB / 346.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/0.04198, allocations: 68 kB / 346.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-05/0.04202, allocations: 36 kB / 346.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003683/0.04571, allocations: 1.562 MB / 348.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009088/0.0548, allocations: 5.011 MB / 353.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002335/0.05713, allocations: 0.9109 MB / 354.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.05832, allocations: 0.4933 MB / 354.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.554e-05/0.05838, allocations: 9 kB / 354.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001551/0.05993, allocations: 0.8692 MB / 355.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.735e-06/0.05994, allocations: 0 / 355.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03748/0.09742, allocations: 8.696 MB / 364.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002173/0.09763, allocations: 303.7 kB / 364.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.0988, allocations: 0.7697 MB / 365.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.09893, allocations: 57.69 kB / 365.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000644/0.09958, allocations: 0.676 MB / 366 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.1, allocations: 432.4 kB / 366.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005256/0.1005, allocations: 247.5 kB / 366.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002452/0.1008, allocations: 406.7 kB / 367.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002182/0.103, allocations: 0.8121 MB / 367.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002563/0.1055, allocations: 1.343 MB / 369.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/0.1096, allocations: 1.654 MB / 370.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.1096, allocations: 4 kB / 370.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005307/0.115, allocations: 2.077 MB / 373 MB, free: 4.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.115, allocations: 11.98 kB / 373 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.115, allocations: 8 kB / 373 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004669/0.1155, allocations: 186.6 kB / 373.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.1173, allocations: 351.4 kB / 373.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004358/0.1216, allocations: 4.401 MB / 377.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.1233, allocations: 168 kB / 378.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.1234, allocations: 48 kB / 378.1 MB, free: 15.11 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 (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.0007783/0.1242, allocations: 399.4 kB / 378.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.1244, allocations: 111.3 kB / 378.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/0.1247, allocations: 129.6 kB / 378.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.1247, allocations: 12 kB / 378.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.1247, allocations: 0 / 378.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.1247, allocations: 7.984 kB / 378.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008607/0.1333, allocations: 3.886 MB / 382.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/0.1333, allocations: 19.92 kB / 382.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.1346, allocations: 259.6 kB / 382.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006877/0.1353, allocations: 369.9 kB / 383.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.773e-05/0.1354, allocations: 39.98 kB / 383.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002147/0.1375, allocations: 2.145 MB / 385.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.568e-05/0.1375, allocations: 15.94 kB / 385.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005742/0.1433, allocations: 2.495 MB / 388 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/0.144, allocations: 247.2 kB / 388.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.1442, allocations: 47.98 kB / 388.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.1454, allocations: 143.8 kB / 388.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004016/0.1458, allocations: 172.2 kB / 388.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.1459, allocations: 43.98 kB / 388.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008012/0.1467, allocations: 0.5147 MB / 389.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1467, allocations: 0 / 389.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001358/0.148, allocations: 351.9 kB / 389.5 MB, free: 3.281 MB / 350.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.0003792/0.1484, allocations: 198.5 kB / 389.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004566/0.153, allocations: 1.936 MB / 391.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.153, allocations: 0 / 391.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002449/0.1554, allocations: 1.029 MB / 392.6 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.1567, allocations: 182.5 kB / 392.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005973/0.1626, allocations: 2.921 MB / 395.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007321/0.1634, allocations: 0.5901 MB / 396.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008114/0.1642, allocations: 172 kB / 396.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004162/0.1646, allocations: 80.5 kB / 396.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1646, allocations: 7.938 kB / 396.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Templates: time 0.03328/0.1979, allocations: 18.06 MB / 414.7 MB, free: 10.08 MB / 382.1 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: 5.000858400017023]