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.00144/0.00144, allocations: 88.86 kB / 21.44 MB, free: 276 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.001453/0.001453, allocations: 163.3 kB / 24.71 MB, free: 3.527 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.364/1.364, allocations: 158.6 MB / 186.5 MB, free: 6.391 MB / 174.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: Performance of FrontEnd - loaded program: time 2.564e-06/2.564e-06, allocations: 0 / 299 MB, free: 8.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.076e-05/3.332e-05, allocations: 6.281 kB / 299 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01121/0.01124, allocations: 8.001 MB / 307 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005645/0.01688, allocations: 2.272 MB / 309.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001816/0.0187, allocations: 39.81 kB / 309.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.01992, allocations: 325 kB / 309.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.02208, allocations: 0.5189 MB / 310.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.02376, allocations: 0.667 MB / 310.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.02764, allocations: 2.41 MB / 313.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.02937, allocations: 0.7021 MB / 313.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002381/0.03175, allocations: 1.306 MB / 315.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.033, allocations: 0.6739 MB / 315.9 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004876/0.03349, allocations: 276 kB / 316.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007387/0.03423, allocations: 328 kB / 316.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005197/0.03475, allocations: 0.5141 MB / 317 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009525/0.0357, allocations: 0.6938 MB / 317.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004181/0.03988, allocations: 3.494 MB / 321.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.03989, allocations: 0 / 321.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.69e-06/0.03989, allocations: 4 kB / 321.2 MB, free: 2.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.392e-05/0.03999, allocations: 0 / 321.2 MB, free: 2.363 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.0045/0.04449, allocations: 1.882 MB / 323 MB, free: 452 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.04454, allocations: 11.98 kB / 323.1 MB, free: 440 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004742/0.04501, allocations: 187.9 kB / 323.2 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1487/0.1937, allocations: 0.7756 MB / 324 MB, free: 33.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003126/0.1941, allocations: 446.5 kB / 324.5 MB, free: 32.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002256/0.1943, allocations: 160.8 kB / 324.6 MB, free: 32.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003075/0.1974, allocations: 1.894 MB / 326.5 MB, free: 31.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/0.1974, allocations: 5.328 kB / 326.5 MB, free: 31.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.1975, allocations: 69.31 kB / 326.6 MB, free: 31.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.1976, allocations: 37.53 kB / 326.6 MB, free: 31.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003237/0.2008, allocations: 1.559 MB / 328.2 MB, free: 31.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007985/0.2088, allocations: 5.012 MB / 333.2 MB, free: 28.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.2109, allocations: 0.9067 MB / 334.1 MB, free: 27.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.2119, allocations: 0.4964 MB / 334.6 MB, free: 27.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.491e-05/0.212, allocations: 10.12 kB / 334.6 MB, free: 27.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001337/0.2133, allocations: 0.8811 MB / 335.5 MB, free: 27.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.965e-06/0.2134, allocations: 0 / 335.5 MB, free: 27.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.03403/0.2474, allocations: 8.686 MB / 344.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.2474, allocations: 307.7 kB / 344.5 MB, free: 22.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008172/0.2483, allocations: 0.7775 MB / 345.2 MB, free: 21.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.2484, allocations: 53.7 kB / 345.3 MB, free: 21.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/0.2487, allocations: 0.6773 MB / 346 MB, free: 20.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00023/0.2489, allocations: 422 kB / 346.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004044/0.2493, allocations: 251.5 kB / 346.6 MB, free: 19.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.624e-05/0.2494, allocations: 402.7 kB / 347 MB, free: 19.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/0.2512, allocations: 0.816 MB / 347.8 MB, free: 18.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001918/0.2531, allocations: 1.343 MB / 349.2 MB, free: 17.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00339/0.2565, allocations: 1.657 MB / 350.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.2565, allocations: 4 kB / 350.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004222/0.2607, allocations: 2.077 MB / 352.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.2608, allocations: 8 kB / 352.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.2608, allocations: 11.94 kB / 352.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003993/0.2612, allocations: 181.7 kB / 353.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.2628, allocations: 351.5 kB / 353.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.2656, allocations: 4.412 MB / 357.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.2671, allocations: 164 kB / 358 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.2672, allocations: 50.58 kB / 358.1 MB, free: 7.875 MB / 302.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.00067/0.2679, allocations: 391.6 kB / 358.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.2681, allocations: 111.3 kB / 358.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.2683, allocations: 133.6 kB / 358.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2683, allocations: 14.08 kB / 358.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.2683, allocations: 3.469 kB / 358.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.2683, allocations: 3.984 kB / 358.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006576/0.2749, allocations: 3.895 MB / 362.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.2749, allocations: 8 kB / 362.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.276, allocations: 267.7 kB / 362.9 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004841/0.2765, allocations: 373.1 kB / 363.3 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-05/0.2765, allocations: 35.98 kB / 363.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.2777, allocations: 2.137 MB / 365.4 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.2777, allocations: 15.94 kB / 365.4 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00545/0.2832, allocations: 2.499 MB / 367.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005962/0.2838, allocations: 252.6 kB / 368.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.284, allocations: 44 kB / 368.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.2851, allocations: 143.6 kB / 368.4 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003922/0.2855, allocations: 172.2 kB / 368.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.535e-05/0.2856, allocations: 47.98 kB / 368.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007899/0.2864, allocations: 0.5147 MB / 369.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2864, allocations: 0 / 369.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001291/0.2877, allocations: 347.9 kB / 369.4 MB, free: 12.09 MB / 318.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.0003993/0.2881, allocations: 187.6 kB / 369.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.2927, allocations: 1.935 MB / 371.6 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.2927, allocations: 4 kB / 371.6 MB, free: 9.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002429/0.2952, allocations: 1.028 MB / 372.6 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.2964, allocations: 181.9 kB / 372.8 MB, free: 8.707 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006202/0.3026, allocations: 2.946 MB / 375.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000722/0.3034, allocations: 0.594 MB / 376.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008371/0.3042, allocations: 160 kB / 376.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.3046, allocations: 80.5 kB / 376.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3046, allocations: 0 / 376.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of Templates: time 0.03382/0.3384, allocations: 18.07 MB / 394.6 MB, free: 2.652 MB / 334.1 MB " [Timeout remaining time 660] 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.164840675890446]