Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001645/0.001645, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 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.001822/0.001822, allocations: 212.6 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 51.92 kB / 379 MB, free: 2.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2925, allocations: 53.36 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01152/0.304, allocations: 8.208 MB / 440.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006059/0.31, allocations: 2.395 MB / 442.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.3116, allocations: 39.81 kB / 443 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.3127, allocations: 344.9 kB / 443.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002111/0.3148, allocations: 0.5075 MB / 443.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.3164, allocations: 0.6593 MB / 444.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003345/0.3197, allocations: 2.364 MB / 446.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.321, allocations: 0.6981 MB / 447.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.3224, allocations: 0.8491 MB / 448.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.3235, allocations: 0.7893 MB / 449.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003568/0.3238, allocations: 280 kB / 449.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007465/0.3246, allocations: 356 kB / 449.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005269/0.3251, allocations: 0.5142 MB / 450.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000854/0.326, allocations: 0.8016 MB / 451.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00391/0.3299, allocations: 3.443 MB / 454.6 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3299, allocations: 0 / 454.6 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3299, allocations: 0 / 454.6 MB, free: 412 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.321e-05/0.3299, allocations: 0 / 454.6 MB, free: 412 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.004257/0.3342, allocations: 1.925 MB / 456.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3342, allocations: 8.031 kB / 456.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/0.3347, allocations: 191.8 kB / 456.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.3361, allocations: 0.786 MB / 457.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005044/0.3366, allocations: 446.3 kB / 457.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/0.3369, allocations: 163.9 kB / 458.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003435/0.3403, allocations: 1.879 MB / 459.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.925e-05/0.3404, allocations: 11.89 kB / 460 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.3405, allocations: 60 kB / 460 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/0.3406, allocations: 43.94 kB / 460.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003477/0.3441, allocations: 1.531 MB / 461.6 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009379/0.3534, allocations: 5.006 MB / 466.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.3557, allocations: 0.8996 MB / 467.5 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.3568, allocations: 481.8 kB / 468 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.058e-05/0.3568, allocations: 17 kB / 468 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.3583, allocations: 0.8575 MB / 468.8 MB, free: 1.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.927e-06/0.3583, allocations: 0 / 468.8 MB, free: 1.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03457/0.3929, allocations: 8.54 MB / 477.4 MB, free: 9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.3931, allocations: 315.6 kB / 477.7 MB, free: 8.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.3942, allocations: 0.7854 MB / 478.5 MB, free: 7.824 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.3944, allocations: 53.7 kB / 478.5 MB, free: 7.766 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006119/0.395, allocations: 0.6878 MB / 479.2 MB, free: 7.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004051/0.3954, allocations: 428.3 kB / 479.6 MB, free: 6.645 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004855/0.3959, allocations: 251.5 kB / 479.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000236/0.3961, allocations: 402.7 kB / 480.3 MB, free: 5.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.3982, allocations: 0.7965 MB / 481.1 MB, free: 5.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002468/0.4007, allocations: 1.323 MB / 482.4 MB, free: 3.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003885/0.4046, allocations: 1.611 MB / 484 MB, free: 2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.4046, allocations: 0 / 484 MB, free: 2 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005129/0.4097, allocations: 2.045 MB / 486.1 MB, free: 15.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.4097, allocations: 8 kB / 486.1 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.4097, allocations: 8 kB / 486.1 MB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000508/0.4103, allocations: 214.4 kB / 486.3 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/0.4119, allocations: 359.5 kB / 486.6 MB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004312/0.4162, allocations: 4.432 MB / 491.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.4178, allocations: 175.9 kB / 491.2 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.418, allocations: 52 kB / 491.3 MB, free: 10.39 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.0007735/0.4187, allocations: 395.6 kB / 491.7 MB, free: 10 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002322/0.419, allocations: 111.3 kB / 491.8 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.4192, allocations: 129.8 kB / 491.9 MB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.4193, allocations: 12 kB / 491.9 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.4193, allocations: 0 / 491.9 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.4193, allocations: 3.984 kB / 491.9 MB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008173/0.4275, allocations: 3.832 MB / 495.7 MB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.4275, allocations: 15.97 kB / 495.8 MB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.4286, allocations: 263.6 kB / 496 MB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005344/0.4292, allocations: 277.5 kB / 496.3 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.801e-05/0.4292, allocations: 35.98 kB / 496.3 MB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.4311, allocations: 2.067 MB / 498.4 MB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.248e-05/0.4312, allocations: 15.94 kB / 498.4 MB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005176/0.4363, allocations: 2.421 MB / 0.4891 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006963/0.437, allocations: 247.2 kB / 0.4893 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.4372, allocations: 44 kB / 0.4894 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.4383, allocations: 139.8 kB / 0.4895 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003675/0.4387, allocations: 180.2 kB / 0.4897 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.548e-05/0.4388, allocations: 43.98 kB / 0.4897 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007961/0.4395, allocations: 0.5264 MB / 0.4902 GB, free: 15.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4395, allocations: 0 / 0.4902 GB, free: 15.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001311/0.4409, allocations: 343.9 kB / 0.4906 GB, free: 14.87 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.001611/0.4425, allocations: 460.1 kB / 0.491 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004532/0.447, allocations: 1.899 MB / 0.4929 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/0.447, allocations: 0 / 0.4929 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002294/0.4493, allocations: 0.9886 MB / 0.4938 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.4506, allocations: 190.8 kB / 0.494 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006441/0.4571, allocations: 3.201 MB / 0.4971 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007389/0.4578, allocations: 0.598 MB / 0.4977 GB, free: 7.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005513/0.4584, allocations: 87.42 kB / 0.4978 GB, free: 7.375 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4584, allocations: 0 / 0.4978 GB, free: 7.375 MB / 414.1 MB Notification: Performance of Templates: time 0.04795/0.5063, allocations: 37.17 MB / 0.5341 GB, free: 2.227 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 10.035370133817196]