Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.008009/0.008009, allocations: 107.9 kB / 21.97 MB, free: 5.184 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.001507/0.001507, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 259 MB, free: 8.027 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.348, allocations: 53.37 MB / 433.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01292/0.3609, allocations: 9.475 MB / 442.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005998/0.3669, allocations: 2.458 MB / 445.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.368, allocations: 39.75 kB / 445.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009386/0.3689, allocations: 348.9 kB / 445.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.3702, allocations: 0.5036 MB / 446 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.3714, allocations: 0.6593 MB / 446.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00272/0.3741, allocations: 2.36 MB / 449 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.3754, allocations: 0.7527 MB / 449.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.3768, allocations: 0.888 MB / 450.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.378, allocations: 0.9027 MB / 451.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003346/0.3783, allocations: 276 kB / 451.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.3788, allocations: 336 kB / 452.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000505/0.3793, allocations: 0.5104 MB / 452.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.3804, allocations: 0.9841 MB / 453.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003705/0.3841, allocations: 3.412 MB / 457.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3841, allocations: 0 / 457.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3841, allocations: 4 kB / 457.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.3841, allocations: 4 kB / 457.1 MB, free: 14.95 MB / 366.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.003853/0.388, allocations: 1.909 MB / 459 MB, free: 13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.388, allocations: 12.03 kB / 459 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003361/0.3883, allocations: 195.8 kB / 459.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.3898, allocations: 0.7808 MB / 460 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000323/0.3901, allocations: 236.7 kB / 460.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002591/0.3904, allocations: 159.9 kB / 460.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0033/0.3937, allocations: 1.679 MB / 462 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.948e-05/0.3937, allocations: 11.95 kB / 462 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.3938, allocations: 60 kB / 462.1 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.3939, allocations: 36 kB / 462.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003336/0.3972, allocations: 1.535 MB / 463.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009544/0.4068, allocations: 5.708 MB / 469.4 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002044/0.4088, allocations: 0.8826 MB / 470.3 MB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.4098, allocations: 481.1 kB / 470.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.721e-05/0.4099, allocations: 20.92 kB / 470.8 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001282/0.4112, allocations: 0.6333 MB / 471.4 MB, free: 244 kB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.375e-06/0.4112, allocations: 0 / 471.4 MB, free: 244 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03324/0.4444, allocations: 8.526 MB / 479.9 MB, free: 7.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001962/0.4446, allocations: 303.7 kB / 480.2 MB, free: 7.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/0.4459, allocations: 0.8013 MB / 481 MB, free: 6.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.446, allocations: 53.7 kB / 481.1 MB, free: 6.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006653/0.4467, allocations: 0.6839 MB / 481.7 MB, free: 5.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004211/0.4471, allocations: 436.4 kB / 482.2 MB, free: 5.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004915/0.4476, allocations: 247.5 kB / 482.4 MB, free: 5.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002381/0.4479, allocations: 402.7 kB / 482.8 MB, free: 4.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.4497, allocations: 0.7964 MB / 483.6 MB, free: 3.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/0.4519, allocations: 1.111 MB / 484.7 MB, free: 2.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003536/0.4555, allocations: 1.607 MB / 486.3 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4555, allocations: 0 / 486.3 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004676/0.4602, allocations: 2.034 MB / 488.4 MB, free: 14.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.4602, allocations: 8 kB / 488.4 MB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.4602, allocations: 8 kB / 488.4 MB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004983/0.4607, allocations: 218.4 kB / 488.6 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.4623, allocations: 347.5 kB / 488.9 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004517/0.4668, allocations: 4.529 MB / 493.5 MB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.4684, allocations: 179.8 kB / 493.6 MB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.4685, allocations: 52.08 kB / 493.7 MB, free: 9.199 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: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,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.0008302/0.4694, allocations: 387.2 kB / 494.1 MB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.4696, allocations: 111.3 kB / 494.2 MB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002444/0.4698, allocations: 130.1 kB / 494.3 MB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.4698, allocations: 12 kB / 494.3 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.4699, allocations: 4 kB / 494.3 MB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4699, allocations: 7.969 kB / 494.3 MB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008022/0.4779, allocations: 4.323 MB / 498.6 MB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.4779, allocations: 8.219 kB / 498.6 MB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.479, allocations: 267.6 kB / 498.9 MB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005338/0.4796, allocations: 277.6 kB / 499.2 MB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.76e-05/0.4796, allocations: 39.98 kB / 499.2 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.4816, allocations: 2.094 MB / 0.4896 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.4816, allocations: 15.94 kB / 0.4896 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004771/0.4863, allocations: 2.401 MB / 0.4919 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006424/0.487, allocations: 247.2 kB / 0.4922 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.4872, allocations: 51.92 kB / 0.4922 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.4882, allocations: 135.8 kB / 0.4923 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003644/0.4885, allocations: 176.2 kB / 0.4925 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.434e-05/0.4886, allocations: 47.98 kB / 0.4925 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008467/0.4895, allocations: 0.542 MB / 0.4931 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4895, allocations: 0 / 0.4931 GB, free: 13.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001332/0.4908, allocations: 336 kB / 0.4934 GB, free: 13.15 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: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.00152/0.4923, allocations: 427 kB / 0.4938 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004386/0.4967, allocations: 1.887 MB / 0.4956 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.4967, allocations: 4 kB / 0.4957 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002312/0.499, allocations: 0.9886 MB / 0.4966 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.5004, allocations: 194.1 kB / 0.4968 GB, free: 9.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00672/0.5071, allocations: 3.204 MB / 0.4999 GB, free: 6.359 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.5083, allocations: 1.194 MB / 0.5011 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005003/0.5088, allocations: 91.42 kB / 0.5012 GB, free: 5.047 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5088, allocations: 0 / 0.5012 GB, free: 5.047 MB / 414.1 MB Notification: Performance of Templates: time 0.05228/0.5611, allocations: 36.88 MB / 0.5372 GB, free: 200 kB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.529717769939452]