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.001516/0.001516, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.001743/0.001743, allocations: 147 kB / 25.59 MB, free: 8.914 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.9699/0.9699, allocations: 173.4 MB / 202.3 MB, free: 8.246 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.643e-06/1.643e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.391e-05, allocations: 6.734 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007714/0.007737, allocations: 8.858 MB / 278.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004437/0.01217, allocations: 2.283 MB / 280.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001347/0.01352, allocations: 31.88 kB / 280.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007695/0.01429, allocations: 325 kB / 280.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.01575, allocations: 0.5189 MB / 281.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.01696, allocations: 0.667 MB / 281.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002655/0.01962, allocations: 2.406 MB / 284.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.02064, allocations: 0.702 MB / 285 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001596/0.02224, allocations: 1.306 MB / 286.3 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008311/0.02307, allocations: 0.6895 MB / 287 MB, free: 7.875 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003124/0.02338, allocations: 280 kB / 287.3 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004077/0.02379, allocations: 339.9 kB / 287.6 MB, free: 7.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002896/0.02408, allocations: 0.5141 MB / 288.1 MB, free: 6.754 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006534/0.02473, allocations: 0.69 MB / 288.8 MB, free: 6.062 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001833/0.02656, allocations: 1.612 MB / 290.4 MB, free: 4.445 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.02657, allocations: 4 kB / 290.4 MB, free: 4.441 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.02657, allocations: 0 / 290.4 MB, free: 4.441 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.449e-05/0.02661, allocations: 0 / 290.4 MB, free: 4.441 MB / 266.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.002163/0.02877, allocations: 1.994 MB / 292.4 MB, free: 2.398 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.02881, allocations: 8.922 kB / 292.4 MB, free: 2.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003743/0.02918, allocations: 319.8 kB / 292.7 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007671/0.02995, allocations: 0.7724 MB / 293.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/0.03019, allocations: 438.3 kB / 293.9 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.03035, allocations: 160.3 kB / 294.1 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.03163, allocations: 1.266 MB / 295.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.03167, allocations: 7.984 kB / 295.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.698e-05/0.03175, allocations: 60 kB / 295.4 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.03178, allocations: 36 kB / 295.5 MB, free: 15.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008313/0.03261, allocations: 0.5944 MB / 296.1 MB, free: 14.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0053/0.03791, allocations: 4.88 MB / 300.9 MB, free: 9.477 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006748/0.03858, allocations: 0.5169 MB / 301.5 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.03884, allocations: 214.2 kB / 301.7 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.942e-05/0.03888, allocations: 17 kB / 301.7 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004962/0.03938, allocations: 0.6328 MB / 302.3 MB, free: 7.965 MB / 282.7 MB Notification: Performance of pre-optimization done (n=89): time 2.195e-06/0.03938, allocations: 0 / 302.3 MB, free: 7.965 MB / 282.7 MB Notification: Performance of matching and sorting (n=118): time 0.008434/0.04782, allocations: 4.213 MB / 306.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.04793, allocations: 299.7 kB / 306.8 MB, free: 3.336 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005726/0.0485, allocations: 0.6823 MB / 307.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-05/0.04858, allocations: 53.7 kB / 307.5 MB, free: 2.578 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004311/0.04901, allocations: 0.7449 MB / 308.3 MB, free: 1.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.04926, allocations: 412.4 kB / 308.7 MB, free: 1.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/0.04958, allocations: 253 kB / 308.9 MB, free: 1.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.04977, allocations: 0.5858 MB / 309.5 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003754/0.05015, allocations: 275.8 kB / 309.8 MB, free: 300 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006424/0.05079, allocations: 0.9055 MB / 310.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.05191, allocations: 0.8854 MB / 311.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.05191, allocations: 4 kB / 311.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001353/0.05326, allocations: 1.113 MB / 312.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.05328, allocations: 12.06 kB / 312.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.05329, allocations: 8 kB / 312.7 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002862/0.05358, allocations: 154.9 kB / 312.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008516/0.05443, allocations: 339.5 kB / 313.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/0.05764, allocations: 5.588 MB / 318.8 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009984/0.05863, allocations: 147.9 kB / 318.9 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/0.05871, allocations: 36 kB / 319 MB, free: 6.402 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (167): * Single equations (assignments): 164 * 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.0004914/0.0592, allocations: 250.2 kB / 319.2 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.05939, allocations: 131.4 kB / 319.3 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.05952, allocations: 129.6 kB / 319.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.05953, allocations: 12 kB / 319.5 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/0.05955, allocations: 8 kB / 319.5 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.05956, allocations: 7.969 kB / 319.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003306/0.06286, allocations: 2.681 MB / 322.2 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.06287, allocations: 12.2 kB / 322.2 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00053/0.0634, allocations: 243.6 kB / 322.4 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003259/0.06373, allocations: 311.2 kB / 322.7 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/0.06379, allocations: 35.98 kB / 322.8 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.06525, allocations: 2.693 MB / 325.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.954e-06/0.06525, allocations: 15.94 kB / 325.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.06676, allocations: 1.495 MB / 327 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.0671, allocations: 247.2 kB / 327.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.0672, allocations: 47.98 kB / 327.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.06766, allocations: 115.9 kB / 327.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.06789, allocations: 148.2 kB / 327.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.06794, allocations: 43.92 kB / 327.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003047/0.06824, allocations: 406.8 kB / 328 MB, free: 12.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.06824, allocations: 0 / 328 MB, free: 12.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009696/0.06921, allocations: 347.9 kB / 328.3 MB, free: 12.52 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (110): * Single equations (assignments): 108 * 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.0002379/0.06945, allocations: 182.2 kB / 328.5 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.07076, allocations: 1.294 MB / 329.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.07077, allocations: 0 / 329.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005082/0.07128, allocations: 0.5252 MB / 330.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.07196, allocations: 218.1 kB / 330.5 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.07573, allocations: 2.749 MB / 333.3 MB, free: 7.258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/0.07592, allocations: 264.5 kB / 333.5 MB, free: 6.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004592/0.07638, allocations: 147.9 kB / 333.7 MB, free: 6.832 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005088/0.07689, allocations: 290 kB / 333.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of SimCode: time 1.393e-06/0.07689, allocations: 0 / 333.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of Templates: time 0.02464/0.1015, allocations: 19.99 MB / 353.9 MB, free: 2.766 MB / 330.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3880945374257863]