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.001982/0.001982, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.002519/0.002519, allocations: 215.5 kB / 24.48 MB, free: 3.836 MB / 14.72 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 1.528/1.528, allocations: 230.5 MB / 258.1 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002028/0.002028, allocations: 63.91 kB / 379 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2892, allocations: 53.42 MB / 432.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01146/0.3007, allocations: 8.203 MB / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00565/0.3063, allocations: 2.399 MB / 443 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.3077, allocations: 35.81 kB / 443 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009863/0.3086, allocations: 341 kB / 443.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.3101, allocations: 0.5152 MB / 443.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.3113, allocations: 0.6593 MB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002572/0.3139, allocations: 2.364 MB / 446.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.3151, allocations: 0.7022 MB / 447.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.3163, allocations: 0.8491 MB / 448.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.3173, allocations: 0.7893 MB / 449.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003252/0.3176, allocations: 280 kB / 449.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006454/0.3183, allocations: 348 kB / 449.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004614/0.3187, allocations: 0.5142 MB / 450.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007971/0.3195, allocations: 0.8055 MB / 451.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003393/0.3229, allocations: 3.436 MB / 454.6 MB, free: 216 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.433e-06/0.3229, allocations: 4 kB / 454.6 MB, free: 212 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3229, allocations: 0 / 454.6 MB, free: 212 kB / 350.1 MB Notification: Performance of Transformations before backend: time 2.929e-05/0.3229, allocations: 0 / 454.6 MB, free: 212 kB / 350.1 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.003763/0.3267, allocations: 1.921 MB / 456.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3268, allocations: 11.98 kB / 456.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003942/0.3271, allocations: 191.8 kB / 456.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.3286, allocations: 0.7938 MB / 457.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004186/0.329, allocations: 450.3 kB / 458 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002477/0.3293, allocations: 159.9 kB / 458.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003339/0.3326, allocations: 1.879 MB / 460 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.3327, allocations: 7.953 kB / 460 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/0.3328, allocations: 64 kB / 460.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-05/0.3328, allocations: 36 kB / 460.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003482/0.3363, allocations: 1.534 MB / 461.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008839/0.3452, allocations: 5.006 MB / 466.7 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.3474, allocations: 0.8989 MB / 467.6 MB, free: 2.828 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.3485, allocations: 485.1 kB / 468 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/0.3485, allocations: 13 kB / 468 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001445/0.35, allocations: 0.8536 MB / 468.9 MB, free: 1.391 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.407e-06/0.35, allocations: 0 / 468.9 MB, free: 1.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03393/0.3839, allocations: 8.543 MB / 477.4 MB, free: 8.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/0.3841, allocations: 307.7 kB / 477.7 MB, free: 8.434 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.3853, allocations: 0.7931 MB / 478.5 MB, free: 7.629 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.3854, allocations: 57.64 kB / 478.6 MB, free: 7.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000603/0.386, allocations: 0.6839 MB / 479.3 MB, free: 6.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000401/0.3864, allocations: 432.4 kB / 479.7 MB, free: 6.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004904/0.3869, allocations: 247.5 kB / 479.9 MB, free: 6.195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.3871, allocations: 410.7 kB / 480.3 MB, free: 5.785 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.3892, allocations: 0.7965 MB / 481.1 MB, free: 4.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002415/0.3916, allocations: 1.323 MB / 482.5 MB, free: 3.504 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003834/0.3954, allocations: 1.603 MB / 484.1 MB, free: 1.809 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3954, allocations: 4 kB / 484.1 MB, free: 1.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005056/0.4005, allocations: 2.045 MB / 486.1 MB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.4005, allocations: 8 kB / 486.1 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.4005, allocations: 8 kB / 486.1 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005236/0.4011, allocations: 218.4 kB / 486.3 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/0.4028, allocations: 351.5 kB / 486.7 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004457/0.4072, allocations: 4.432 MB / 491.1 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.409, allocations: 179.8 kB / 491.3 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4091, allocations: 56 kB / 491.4 MB, free: 10.2 MB / 398.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 (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.0008894/0.41, allocations: 387.5 kB / 491.7 MB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.4102, allocations: 115.2 kB / 491.8 MB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.4104, allocations: 133.8 kB / 492 MB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.4104, allocations: 12 kB / 492 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.4104, allocations: 0 / 492 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4105, allocations: 3.984 kB / 492 MB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007949/0.4184, allocations: 3.828 MB / 495.8 MB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.4184, allocations: 12 kB / 495.8 MB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.4196, allocations: 263.5 kB / 496.1 MB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005441/0.4201, allocations: 277.7 kB / 496.4 MB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.539e-05/0.4202, allocations: 39.98 kB / 496.4 MB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00194/0.4222, allocations: 2.068 MB / 498.5 MB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/0.4222, allocations: 20.06 kB / 498.5 MB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005083/0.4273, allocations: 2.409 MB / 0.4892 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007501/0.428, allocations: 247.3 kB / 0.4894 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.4282, allocations: 48 kB / 0.4894 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.4292, allocations: 139.8 kB / 0.4896 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003554/0.4296, allocations: 180.2 kB / 0.4897 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/0.4297, allocations: 47.98 kB / 0.4898 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007971/0.4305, allocations: 0.5186 MB / 0.4903 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4305, allocations: 0 / 0.4903 GB, free: 15.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001248/0.4317, allocations: 343.9 kB / 0.4906 GB, free: 14.68 MB / 414.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001568/0.4333, allocations: 448.5 kB / 0.491 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004412/0.4377, allocations: 1.902 MB / 0.4929 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.4377, allocations: 0 / 0.4929 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/0.44, allocations: 0.9927 MB / 0.4939 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.4412, allocations: 198.4 kB / 0.4941 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006182/0.4474, allocations: 3.19 MB / 0.4972 GB, free: 7.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007111/0.4481, allocations: 0.6019 MB / 0.4978 GB, free: 7.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000477/0.4486, allocations: 87.42 kB / 0.4978 GB, free: 7.16 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4486, allocations: 0 / 0.4978 GB, free: 7.16 MB / 414.1 MB Notification: Performance of Templates: time 0.04763/0.4962, allocations: 37.16 MB / 0.5341 GB, free: 1.996 MB / 446.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/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: 10.430908584967256]