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.001688/0.001688, allocations: 119.5 kB / 18.5 MB, free: 4.551 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.001906/0.001906, allocations: 205.7 kB / 21.45 MB, free: 1.605 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.58/1.58, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.002141/0.002141, allocations: 67.89 kB / 373.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1173, allocations: 53.31 MB / 427.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2214/0.3387, allocations: 9.438 MB / 436.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004865/0.3436, allocations: 2.441 MB / 439 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.3449, allocations: 32.09 kB / 439.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009426/0.3459, allocations: 345.8 kB / 439.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.3474, allocations: 0.5036 MB / 439.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.3486, allocations: 0.6562 MB / 440.6 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002762/0.3514, allocations: 2.365 MB / 442.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3525, allocations: 0.7465 MB / 443.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.354, allocations: 0.8675 MB / 444.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.355, allocations: 0.9009 MB / 445.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004222/0.3555, allocations: 277.1 kB / 445.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005475/0.356, allocations: 336.8 kB / 446 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003559/0.3564, allocations: 0.5128 MB / 446.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007601/0.3571, allocations: 0.9852 MB / 447.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003836/0.361, allocations: 3.408 MB / 450.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.361, allocations: 0 / 450.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.361, allocations: 0 / 450.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.984e-05/0.361, allocations: 1.031 kB / 450.9 MB, free: 15.65 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.004416/0.3654, allocations: 1.995 MB / 452.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3655, allocations: 10.47 kB / 453 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003798/0.3659, allocations: 195.4 kB / 453.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.3673, allocations: 0.8559 MB / 454 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/0.3676, allocations: 233.4 kB / 454.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002558/0.3679, allocations: 166.2 kB / 454.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003329/0.3712, allocations: 1.666 MB / 456.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.316e-05/0.3712, allocations: 14.62 kB / 456.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001552/0.3714, allocations: 65.75 kB / 456.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.694e-05/0.3714, allocations: 37.12 kB / 456.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003406/0.3748, allocations: 1.525 MB / 457.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009708/0.3845, allocations: 5.847 MB / 463.5 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.3866, allocations: 0.8802 MB / 464.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.3877, allocations: 476.2 kB / 464.9 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.335e-05/0.3878, allocations: 14.78 kB / 464.9 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/0.3892, allocations: 0.6436 MB / 465.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.815e-06/0.3892, allocations: 0 / 465.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03578/0.4249, allocations: 8.823 MB / 474.4 MB, free: 1.062 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.4251, allocations: 297.3 kB / 474.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.4264, allocations: 0.8068 MB / 475.5 MB, free: 84 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.4266, allocations: 53.7 kB / 475.5 MB, free: 24 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006482/0.4272, allocations: 0.6839 MB / 476.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004065/0.4276, allocations: 428.3 kB / 476.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005308/0.4282, allocations: 252.7 kB / 476.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002256/0.4284, allocations: 406.7 kB / 477.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.4304, allocations: 0.7903 MB / 478.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002319/0.4327, allocations: 1.111 MB / 479.2 MB, free: 12.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003794/0.4365, allocations: 1.596 MB / 480.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4365, allocations: 4 kB / 480.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005037/0.4416, allocations: 2.034 MB / 482.8 MB, free: 8.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.4416, allocations: 8 kB / 482.8 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.4416, allocations: 8 kB / 482.8 MB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005313/0.4421, allocations: 225.3 kB / 483 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.4438, allocations: 351.5 kB / 483.4 MB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004745/0.4486, allocations: 4.838 MB / 488.2 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/0.4505, allocations: 171.8 kB / 488.4 MB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.4506, allocations: 48 kB / 488.4 MB, free: 2.441 MB / 382.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.0008981/0.4515, allocations: 392.4 kB / 488.8 MB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.4517, allocations: 115.3 kB / 488.9 MB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002769/0.452, allocations: 134.1 kB / 489.1 MB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.452, allocations: 16 kB / 489.1 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.796e-05/0.452, allocations: 0 / 489.1 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.4521, allocations: 7.969 kB / 489.1 MB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008392/0.4604, allocations: 4.343 MB / 493.4 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.4605, allocations: 8 kB / 493.4 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.4616, allocations: 260 kB / 493.7 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005654/0.4622, allocations: 282.1 kB / 494 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.4623, allocations: 43.98 kB / 494 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/0.4644, allocations: 2.204 MB / 496.2 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/0.4644, allocations: 15.94 kB / 496.2 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005203/0.4696, allocations: 2.401 MB / 498.6 MB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007043/0.4703, allocations: 332.3 kB / 499 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.4705, allocations: 44 kB / 499 MB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.4716, allocations: 143.8 kB / 499.1 MB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003689/0.472, allocations: 168.2 kB / 499.3 MB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.022e-05/0.4721, allocations: 43.98 kB / 499.3 MB, free: 6.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008382/0.4729, allocations: 0.5459 MB / 499.9 MB, free: 6.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4729, allocations: 0 / 499.9 MB, free: 6.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001409/0.4743, allocations: 339.9 kB / 0.4885 GB, free: 6.117 MB / 398.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.001521/0.4758, allocations: 422.3 kB / 0.4889 GB, free: 5.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004438/0.4803, allocations: 1.887 MB / 0.4907 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.4803, allocations: 0 / 0.4907 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002319/0.4826, allocations: 1.008 MB / 0.4917 GB, free: 2.879 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.4839, allocations: 208.2 kB / 0.4919 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006494/0.4904, allocations: 3.15 MB / 0.495 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.4914, allocations: 1.182 MB / 0.4962 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008908/0.4923, allocations: 172.4 kB / 0.4963 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004219/0.4927, allocations: 79.44 kB / 0.4964 GB, free: 13.9 MB / 414.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4927, allocations: 0 / 0.4964 GB, free: 13.9 MB / 414.1 MB Notification: Performance of Templates: time 0.03626/0.529, allocations: 19.41 MB / 0.5154 GB, free: 10.59 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/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: 5.432880020700395]