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.001743/0.001743, allocations: 81.86 kB / 21.25 MB, free: 0.5469 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.002092/0.002092, allocations: 162.6 kB / 24.5 MB, free: 3.715 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.457/1.457, allocations: 177.1 MB / 204.7 MB, free: 8.941 MB / 190.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.001953/0.001953, allocations: 61.42 kB / 325.5 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09383/0.09578, allocations: 53.39 MB / 378.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01128/0.1071, allocations: 8.214 MB / 387.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004627/0.1117, allocations: 2.403 MB / 389.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006497/0.1123, allocations: 31.88 kB / 389.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007931/0.1131, allocations: 344.9 kB / 389.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.1142, allocations: 0.5113 MB / 390.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.1153, allocations: 0.6555 MB / 391.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002325/0.1176, allocations: 2.364 MB / 393.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.1187, allocations: 0.7022 MB / 394.1 MB, free: 112 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009244/0.1196, allocations: 0.8492 MB / 395 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.1206, allocations: 0.7894 MB / 395.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003325/0.121, allocations: 283.9 kB / 396.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005745/0.1216, allocations: 347.8 kB / 396.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004893/0.122, allocations: 0.5221 MB / 396.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007973/0.1228, allocations: 0.7937 MB / 397.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00324/0.1261, allocations: 3.449 MB / 401.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1261, allocations: 3.938 kB / 401.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1261, allocations: 0 / 401.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.338e-05/0.1261, allocations: 0 / 401.2 MB, free: 9.062 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.003645/0.1298, allocations: 1.921 MB / 403.1 MB, free: 7.102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1298, allocations: 15.98 kB / 403.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003807/0.1302, allocations: 191.8 kB / 403.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.1315, allocations: 0.7821 MB / 404.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004146/0.1319, allocations: 450.3 kB / 404.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.1321, allocations: 163.9 kB / 404.7 MB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003311/0.1355, allocations: 1.879 MB / 406.5 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.889e-05/0.1355, allocations: 3.953 kB / 406.6 MB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001431/0.1356, allocations: 64 kB / 406.6 MB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.092e-05/0.1357, allocations: 36 kB / 406.7 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003473/0.1391, allocations: 1.534 MB / 408.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008524/0.1477, allocations: 5.014 MB / 413.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/0.1499, allocations: 0.8953 MB / 414.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.151, allocations: 489.1 kB / 414.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.908e-05/0.1511, allocations: 9 kB / 414.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001452/0.1525, allocations: 0.8536 MB / 415.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=92): time 2.865e-06/0.1525, allocations: 0 / 415.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.03516/0.1877, allocations: 8.544 MB / 424 MB, free: 1.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001685/0.1879, allocations: 303.7 kB / 424.3 MB, free: 1.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.1889, allocations: 0.7854 MB / 425.1 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.1891, allocations: 53.7 kB / 425.1 MB, free: 456 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005718/0.1896, allocations: 0.684 MB / 425.8 MB, free: 15.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.19, allocations: 436.3 kB / 426.2 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004784/0.1905, allocations: 247.5 kB / 426.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.1907, allocations: 410.8 kB / 426.9 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/0.1928, allocations: 0.7964 MB / 427.7 MB, free: 13.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/0.1952, allocations: 1.323 MB / 429 MB, free: 12.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003896/0.1991, allocations: 1.607 MB / 430.6 MB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.1991, allocations: 8 kB / 430.6 MB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004939/0.2041, allocations: 2.049 MB / 432.7 MB, free: 8.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.2041, allocations: 10.97 kB / 432.7 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.2041, allocations: 4 kB / 432.7 MB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004659/0.2046, allocations: 214.5 kB / 432.9 MB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/0.2063, allocations: 355.4 kB / 433.2 MB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.2106, allocations: 4.429 MB / 437.6 MB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.212, allocations: 168 kB / 437.8 MB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.2121, allocations: 55.94 kB / 437.9 MB, free: 3.078 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.0006476/0.2128, allocations: 387.5 kB / 438.2 MB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.213, allocations: 119.3 kB / 438.4 MB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002631/0.2133, allocations: 125.8 kB / 438.5 MB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.2133, allocations: 12 kB / 438.5 MB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.2133, allocations: 0 / 438.5 MB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.2133, allocations: 11.97 kB / 438.5 MB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007925/0.2212, allocations: 3.832 MB / 442.3 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.2212, allocations: 15.75 kB / 442.4 MB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.2224, allocations: 259.6 kB / 442.6 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004993/0.2229, allocations: 285.7 kB / 442.9 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.45e-05/0.223, allocations: 36 kB / 442.9 MB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/0.2248, allocations: 2.064 MB / 445 MB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/0.2248, allocations: 11.94 kB / 445 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.2298, allocations: 2.421 MB / 447.4 MB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005044/0.2303, allocations: 251.2 kB / 447.7 MB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.2305, allocations: 40 kB / 447.7 MB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.2316, allocations: 143.8 kB / 447.8 MB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003409/0.2319, allocations: 184.2 kB / 448 MB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-05/0.232, allocations: 47.98 kB / 448.1 MB, free: 8.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007338/0.2328, allocations: 0.5147 MB / 448.6 MB, free: 7.883 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2328, allocations: 4 kB / 448.6 MB, free: 7.879 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001092/0.2338, allocations: 340 kB / 448.9 MB, free: 7.547 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.001517/0.2354, allocations: 437.3 kB / 449.4 MB, free: 7.238 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004271/0.2396, allocations: 1.914 MB / 451.3 MB, free: 5.285 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.2396, allocations: 4 kB / 451.3 MB, free: 5.281 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.242, allocations: 1.012 MB / 452.3 MB, free: 4.254 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.243, allocations: 190.3 kB / 452.5 MB, free: 4.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006166/0.2492, allocations: 3.14 MB / 455.6 MB, free: 0.7812 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007884/0.2499, allocations: 0.6057 MB / 456.2 MB, free: 148 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007516/0.2507, allocations: 164.1 kB / 456.4 MB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.2511, allocations: 80.48 kB / 456.5 MB, free: 15.9 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2511, allocations: 0 / 456.5 MB, free: 15.9 MB / 430.1 MB Notification: Performance of Templates: time 0.2122/0.4633, allocations: 18.4 MB / 474.8 MB, free: 84.91 MB / 430.1 MB " [Timeout remaining time 660] 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 -s ida -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: 5.401506778085604]