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.001497/0.001497, allocations: 116.1 kB / 21.18 MB, free: 0.5898 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.001669/0.001669, allocations: 209.9 kB / 24.47 MB, free: 3.996 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.406/1.406, allocations: 230.4 MB / 258.1 MB, free: 8.152 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.001928/0.001928, allocations: 67.83 kB / 378.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3072, allocations: 53.31 MB / 432.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01254/0.3198, allocations: 9.473 MB / 441.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006541/0.3263, allocations: 2.461 MB / 444 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.3278, allocations: 31.94 kB / 444 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.3289, allocations: 344.9 kB / 444.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.3305, allocations: 0.5113 MB / 444.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001393/0.3319, allocations: 0.6516 MB / 445.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003012/0.3349, allocations: 2.36 MB / 447.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001221/0.3361, allocations: 0.7481 MB / 448.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.3375, allocations: 0.8724 MB / 449.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.3386, allocations: 0.9065 MB / 450.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003233/0.339, allocations: 279.9 kB / 450.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004824/0.3394, allocations: 332 kB / 451 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005034/0.3399, allocations: 0.5104 MB / 451.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009702/0.3409, allocations: 0.9842 MB / 452.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003871/0.3448, allocations: 3.404 MB / 455.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3448, allocations: 0 / 455.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3448, allocations: 0 / 455.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.861e-05/0.3449, allocations: 0 / 455.9 MB, free: 15.41 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.004514/0.3494, allocations: 1.992 MB / 457.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.3494, allocations: 12.92 kB / 457.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003594/0.3498, allocations: 187.8 kB / 458.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.3513, allocations: 0.8581 MB / 458.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000315/0.3516, allocations: 232.7 kB / 459.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002595/0.3519, allocations: 171.9 kB / 459.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003353/0.3552, allocations: 1.663 MB / 461 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.407e-05/0.3553, allocations: 11.94 kB / 461 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.3555, allocations: 60 kB / 461.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-05/0.3555, allocations: 44 kB / 461.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003528/0.359, allocations: 1.527 MB / 462.6 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/0.3691, allocations: 5.843 MB / 468.5 MB, free: 2.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/0.3713, allocations: 0.8826 MB / 469.4 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.3724, allocations: 480.9 kB / 469.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.045e-05/0.3725, allocations: 13 kB / 469.9 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001361/0.3738, allocations: 0.645 MB / 470.5 MB, free: 380 kB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.715e-06/0.3738, allocations: 0 / 470.5 MB, free: 380 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03617/0.41, allocations: 8.811 MB / 479.3 MB, free: 7.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002087/0.4102, allocations: 311.7 kB / 479.6 MB, free: 7.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.4116, allocations: 0.8013 MB / 480.4 MB, free: 6.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.4118, allocations: 53.7 kB / 480.5 MB, free: 6.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006727/0.4124, allocations: 0.68 MB / 481.1 MB, free: 5.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004341/0.4129, allocations: 436.3 kB / 481.6 MB, free: 5.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005077/0.4134, allocations: 247.5 kB / 481.8 MB, free: 4.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.4136, allocations: 406.7 kB / 482.2 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/0.4157, allocations: 0.7887 MB / 483 MB, free: 3.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.4181, allocations: 1.115 MB / 484.1 MB, free: 2.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.422, allocations: 1.596 MB / 485.7 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.422, allocations: 4 kB / 485.7 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005155/0.4271, allocations: 2.034 MB / 487.7 MB, free: 14.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.4272, allocations: 14.59 kB / 487.8 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.4272, allocations: 8 kB / 487.8 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.4277, allocations: 218.4 kB / 488 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.4294, allocations: 355.5 kB / 488.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/0.434, allocations: 4.851 MB / 493.2 MB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.4357, allocations: 167.9 kB / 493.3 MB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.4358, allocations: 48 kB / 493.4 MB, free: 8.59 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.000846/0.4366, allocations: 391.1 kB / 493.8 MB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.4369, allocations: 111.3 kB / 493.9 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/0.4371, allocations: 134.1 kB / 494 MB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.4371, allocations: 15.94 kB / 494 MB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4371, allocations: 4 kB / 494 MB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.4372, allocations: 7.969 kB / 494 MB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008227/0.4454, allocations: 4.35 MB / 498.4 MB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/0.4454, allocations: 12 kB / 498.4 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.4465, allocations: 267.6 kB / 498.7 MB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005267/0.4471, allocations: 274 kB / 498.9 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-05/0.4472, allocations: 39.98 kB / 499 MB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.4492, allocations: 2.197 MB / 0.4894 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.374e-05/0.4492, allocations: 19.88 kB / 0.4894 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/0.4543, allocations: 2.39 MB / 0.4918 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006354/0.4549, allocations: 328.3 kB / 0.4921 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.4551, allocations: 48 kB / 0.4921 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.4562, allocations: 143.8 kB / 0.4923 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003349/0.4565, allocations: 168.2 kB / 0.4924 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.613e-05/0.4566, allocations: 47.98 kB / 0.4925 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008585/0.4574, allocations: 0.542 MB / 0.493 GB, free: 12.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4574, allocations: 0 / 0.493 GB, free: 12.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001219/0.4587, allocations: 339.9 kB / 0.4933 GB, free: 12.27 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.001428/0.4601, allocations: 436.1 kB / 0.4937 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004513/0.4646, allocations: 1.883 MB / 0.4956 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.423e-05/0.4646, allocations: 4 kB / 0.4956 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.4669, allocations: 0.9807 MB / 0.4965 GB, free: 9.066 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.4682, allocations: 195.1 kB / 0.4967 GB, free: 8.875 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00618/0.4744, allocations: 3.202 MB / 0.4999 GB, free: 5.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009196/0.4753, allocations: 1.19 MB / 0.501 GB, free: 4.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004746/0.4758, allocations: 87.44 kB / 0.5011 GB, free: 4.195 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4758, allocations: 0 / 0.5011 GB, free: 4.195 MB / 414.1 MB Notification: Performance of Templates: time 0.2683/0.7441, allocations: 36.87 MB / 0.5371 GB, free: 103.5 MB / 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.666873381007463]