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.001742/0.001742, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002032/0.002032, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.489/1.489, allocations: 230.5 MB / 258.1 MB, free: 8.008 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.002237/0.002237, allocations: 59.91 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.367, allocations: 53.41 MB / 432.4 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.0125/0.3795, allocations: 9.48 MB / 441.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005739/0.3852, allocations: 2.458 MB / 444.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.3867, allocations: 35.81 kB / 444.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.3877, allocations: 344.9 kB / 444.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00152/0.3892, allocations: 0.5114 MB / 445.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.3906, allocations: 0.6554 MB / 445.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.3935, allocations: 2.372 MB / 448.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001221/0.3947, allocations: 0.741 MB / 449 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.396, allocations: 0.888 MB / 449.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.3972, allocations: 0.9027 MB / 450.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003273/0.3975, allocations: 280 kB / 451.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005668/0.398, allocations: 327.9 kB / 451.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004757/0.3985, allocations: 0.5143 MB / 451.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.3995, allocations: 0.992 MB / 452.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003804/0.4033, allocations: 3.408 MB / 456.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.4033, allocations: 0 / 456.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4033, allocations: 0 / 456.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.247e-05/0.4034, allocations: 0 / 456.3 MB, free: 14.74 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.004129/0.4075, allocations: 1.913 MB / 458.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4076, allocations: 15.97 kB / 458.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/0.4079, allocations: 187.8 kB / 458.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.4094, allocations: 0.7846 MB / 459.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004311/0.4099, allocations: 458.3 kB / 459.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.4101, allocations: 167.9 kB / 459.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003199/0.4133, allocations: 1.667 MB / 461.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.787e-05/0.4133, allocations: 3.953 kB / 461.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.4135, allocations: 68 kB / 461.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.622e-05/0.4135, allocations: 36 kB / 461.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003375/0.4169, allocations: 1.538 MB / 463.2 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009935/0.4268, allocations: 5.708 MB / 468.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002153/0.429, allocations: 0.8779 MB / 469.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.43, allocations: 477.1 kB / 470.2 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.202e-05/0.4301, allocations: 13 kB / 470.2 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001313/0.4314, allocations: 0.6411 MB / 470.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.895e-06/0.4314, allocations: 4 kB / 470.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03484/0.4663, allocations: 8.52 MB / 479.4 MB, free: 7.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002247/0.4665, allocations: 303.8 kB / 479.7 MB, free: 6.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.4678, allocations: 0.8091 MB / 480.5 MB, free: 6.008 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.468, allocations: 53.7 kB / 480.5 MB, free: 5.949 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006603/0.4686, allocations: 0.6839 MB / 481.2 MB, free: 5.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004366/0.4691, allocations: 428.4 kB / 481.6 MB, free: 4.832 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005057/0.4696, allocations: 243.5 kB / 481.9 MB, free: 4.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003081/0.4699, allocations: 410.7 kB / 482.3 MB, free: 4.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.4719, allocations: 0.7926 MB / 483.1 MB, free: 3.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/0.4742, allocations: 1.111 MB / 484.2 MB, free: 2.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003679/0.4779, allocations: 1.607 MB / 485.8 MB, free: 476 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4779, allocations: 0 / 485.8 MB, free: 476 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004953/0.4828, allocations: 2.034 MB / 487.8 MB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.4829, allocations: 8 kB / 487.8 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.4829, allocations: 8 kB / 487.8 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/0.4834, allocations: 218.5 kB / 488.1 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.4851, allocations: 347.5 kB / 488.4 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004959/0.49, allocations: 4.539 MB / 492.9 MB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.4918, allocations: 171.9 kB / 493.1 MB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.4919, allocations: 52 kB / 493.2 MB, free: 8.73 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.0009018/0.4928, allocations: 387.1 kB / 493.5 MB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.493, allocations: 107.3 kB / 493.6 MB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003087/0.4933, allocations: 134.1 kB / 493.8 MB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4934, allocations: 12.14 kB / 493.8 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.4934, allocations: 3.984 kB / 493.8 MB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.4934, allocations: 11.98 kB / 493.8 MB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009165/0.5026, allocations: 4.319 MB / 498.1 MB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.5026, allocations: 8 kB / 498.1 MB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.5038, allocations: 263.6 kB / 498.4 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006023/0.5044, allocations: 277.8 kB / 498.6 MB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.855e-05/0.5045, allocations: 39.98 kB / 498.7 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002328/0.5068, allocations: 2.095 MB / 0.489 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-05/0.5068, allocations: 20 kB / 0.4891 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005099/0.5119, allocations: 2.389 MB / 0.4914 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006411/0.5125, allocations: 255.2 kB / 0.4916 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.5127, allocations: 43.98 kB / 0.4917 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.5138, allocations: 143.8 kB / 0.4918 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.5141, allocations: 176.2 kB / 0.492 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.695e-05/0.5142, allocations: 47.98 kB / 0.492 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008557/0.5151, allocations: 0.5458 MB / 0.4926 GB, free: 13 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5151, allocations: 0 / 0.4926 GB, free: 13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001338/0.5164, allocations: 336 kB / 0.4929 GB, free: 12.68 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.001535/0.518, allocations: 416.5 kB / 0.4933 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004377/0.5223, allocations: 1.895 MB / 0.4951 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.5223, allocations: 4.25 kB / 0.4951 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.5246, allocations: 0.9767 MB / 0.4961 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.5257, allocations: 209.4 kB / 0.4963 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006403/0.5321, allocations: 3.19 MB / 0.4994 GB, free: 5.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009513/0.5331, allocations: 1.194 MB / 0.5006 GB, free: 4.672 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/0.5336, allocations: 87.44 kB / 0.5007 GB, free: 4.586 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5336, allocations: 3.938 kB / 0.5007 GB, free: 4.582 MB / 414.1 MB Notification: Performance of Templates: time 0.3225/0.8561, allocations: 36.88 MB / 0.5367 GB, free: 104 MB / 446.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/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_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: 10.844537901924923]