Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 92.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00327/0.00327, allocations: 158.5 kB / 24.7 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8379/0.8379, allocations: 177 MB / 204.9 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.73e-05/1.852e-05, allocations: 3.125 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006842/0.006861, allocations: 8.22 MB / 334 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.009264, allocations: 2.403 MB / 336.4 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004007/0.009664, allocations: 31.88 kB / 336.4 MB, free: 4.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008589/0.01052, allocations: 348.9 kB / 336.8 MB, free: 4.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006766/0.0112, allocations: 0.5266 MB / 337.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006054/0.01181, allocations: 0.667 MB / 338 MB, free: 3.137 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.01306, allocations: 2.434 MB / 340.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007019/0.01377, allocations: 0.6906 MB / 341.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008185/0.01458, allocations: 1.322 MB / 342.4 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.0151, allocations: 0.6817 MB / 343.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.01528, allocations: 280 kB / 343.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.01562, allocations: 355.8 kB / 343.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000514/0.01613, allocations: 0.5258 MB / 344.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.01652, allocations: 0.6822 MB / 344.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001923/0.01844, allocations: 3.541 MB / 348.5 MB, free: 8.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.01844, allocations: 0 / 348.5 MB, free: 8.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01844, allocations: 0 / 348.5 MB, free: 8.562 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.01846, allocations: 0 / 348.5 MB, free: 8.562 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.002029/0.02049, allocations: 1.917 MB / 350.4 MB, free: 6.605 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.02052, allocations: 11.98 kB / 350.4 MB, free: 6.594 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.02076, allocations: 191.8 kB / 350.6 MB, free: 6.406 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.02183, allocations: 0.7853 MB / 351.4 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.02207, allocations: 446.3 kB / 351.8 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.02222, allocations: 160.3 kB / 352 MB, free: 4.934 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.02412, allocations: 1.884 MB / 353.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.654e-05/0.02415, allocations: 11.95 kB / 353.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-05/0.02425, allocations: 64 kB / 353.9 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.02427, allocations: 43.98 kB / 354 MB, free: 2.855 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.02622, allocations: 1.527 MB / 355.5 MB, free: 1.324 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00511/0.03133, allocations: 5.014 MB / 360.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.03256, allocations: 0.8914 MB / 361.4 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006037/0.03316, allocations: 492.2 kB / 361.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.03321, allocations: 13 kB / 361.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007952/0.034, allocations: 0.8497 MB / 362.7 MB, free: 9.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 2.234e-06/0.034, allocations: 0 / 362.7 MB, free: 9.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01859/0.0526, allocations: 8.558 MB / 371.3 MB, free: 1.148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.0527, allocations: 295.7 kB / 371.6 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007347/0.05344, allocations: 0.7932 MB / 372.4 MB, free: 15.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.05351, allocations: 57.7 kB / 372.4 MB, free: 15.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006072/0.05412, allocations: 0.6799 MB / 373.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/0.05435, allocations: 424.4 kB / 373.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003042/0.05465, allocations: 247.6 kB / 373.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.05478, allocations: 414.7 kB / 374.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.05588, allocations: 0.7964 MB / 375 MB, free: 13.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.05718, allocations: 1.315 MB / 376.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/0.05922, allocations: 1.623 MB / 377.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.05922, allocations: 4 kB / 377.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002995/0.06222, allocations: 2.034 MB / 380 MB, free: 8.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.06223, allocations: 8 kB / 380 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.06225, allocations: 4 kB / 380 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.06254, allocations: 226.4 kB / 380.2 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008087/0.06335, allocations: 347.5 kB / 380.5 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.06599, allocations: 4.433 MB / 385 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006812/0.06667, allocations: 171.9 kB / 385.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.085e-05/0.06674, allocations: 48 kB / 385.2 MB, free: 2.582 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 (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.0005151/0.06726, allocations: 391.4 kB / 385.6 MB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.06738, allocations: 107.3 kB / 385.7 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.0675, allocations: 129.8 kB / 385.8 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.06751, allocations: 15.94 kB / 385.8 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.06752, allocations: 0 / 385.8 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.06753, allocations: 15.97 kB / 385.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004658/0.07219, allocations: 3.823 MB / 389.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.07219, allocations: 12 kB / 389.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005472/0.07274, allocations: 255.6 kB / 389.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003049/0.07305, allocations: 281.8 kB / 390.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.0731, allocations: 39.98 kB / 390.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.07412, allocations: 2.068 MB / 392.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.07413, allocations: 11.94 kB / 392.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.07709, allocations: 2.394 MB / 394.7 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.07741, allocations: 255.1 kB / 394.9 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.696e-05/0.07751, allocations: 44 kB / 395 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000515/0.07803, allocations: 139.8 kB / 395.1 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002251/0.07825, allocations: 176.2 kB / 395.3 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.0783, allocations: 52.12 kB / 395.3 MB, free: 7.934 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004331/0.07873, allocations: 0.5186 MB / 395.9 MB, free: 7.418 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07873, allocations: 0 / 395.9 MB, free: 7.418 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007315/0.07946, allocations: 339.9 kB / 396.2 MB, free: 7.086 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007222/0.08019, allocations: 451.2 kB / 396.6 MB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.08253, allocations: 1.895 MB / 398.5 MB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.08253, allocations: 4.188 kB / 398.5 MB, free: 4.828 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.08372, allocations: 0.9924 MB / 399.5 MB, free: 3.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006745/0.08439, allocations: 190.8 kB / 399.7 MB, free: 3.633 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003685/0.08808, allocations: 3.012 MB / 402.7 MB, free: 464 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.08849, allocations: 0.5941 MB / 403.3 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.08879, allocations: 92.48 kB / 403.4 MB, free: 15.73 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.08879, allocations: 0 / 403.4 MB, free: 15.73 MB / 378.7 MB Notification: Performance of Templates: time 0.02587/0.1147, allocations: 37.2 MB / 440.6 MB, free: 10.54 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.8425014186650515]