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.001328/0.001328, allocations: 87.66 kB / 20.68 MB, free: 1.02 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.001648/0.001648, allocations: 165.8 kB / 23.95 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.437/1.437, allocations: 177 MB / 204.1 MB, free: 9.156 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 1.693e-06/1.693e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.54e-05, allocations: 2.281 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01077/0.0108, allocations: 8.238 MB / 333.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005456/0.01625, allocations: 2.397 MB / 335.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.01727, allocations: 31.19 kB / 335.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008891/0.01816, allocations: 351.2 kB / 336 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.01959, allocations: 0.5244 MB / 336.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001252/0.02084, allocations: 0.6741 MB / 337.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002826/0.02367, allocations: 2.429 MB / 339.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.02484, allocations: 0.7016 MB / 340.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.0266, allocations: 1.32 MB / 341.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009587/0.02756, allocations: 0.6778 MB / 342.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003381/0.02789, allocations: 280 kB / 342.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006477/0.02854, allocations: 351.8 kB / 343 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005004/0.02904, allocations: 0.5219 MB / 343.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007933/0.02984, allocations: 0.69 MB / 344.2 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003617/0.03345, allocations: 3.541 MB / 347.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.03346, allocations: 4 kB / 347.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.03346, allocations: 0 / 347.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.03349, allocations: 0 / 347.7 MB, free: 14.26 MB / 318.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.003916/0.03741, allocations: 1.905 MB / 349.6 MB, free: 12.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.03745, allocations: 11.98 kB / 349.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004082/0.03786, allocations: 191.8 kB / 349.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.03924, allocations: 0.7891 MB / 350.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004273/0.03966, allocations: 446.3 kB / 351.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002601/0.03992, allocations: 164.3 kB / 351.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003552/0.04348, allocations: 1.876 MB / 353.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.018e-05/0.04353, allocations: 11.95 kB / 353.1 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.04369, allocations: 63.98 kB / 353.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.04372, allocations: 40 kB / 353.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003725/0.04745, allocations: 1.534 MB / 354.7 MB, free: 7.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009396/0.05684, allocations: 5.014 MB / 359.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.05918, allocations: 0.8953 MB / 360.7 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.06033, allocations: 488.9 kB / 361.1 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.165e-05/0.06039, allocations: 13 kB / 361.1 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001511/0.0619, allocations: 0.8536 MB / 362 MB, free: 15.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.665e-06/0.0619, allocations: 0 / 362 MB, free: 15.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.03869/0.1006, allocations: 8.551 MB / 370.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.1008, allocations: 299.7 kB / 370.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.1021, allocations: 0.7893 MB / 371.6 MB, free: 5.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.1022, allocations: 53.7 kB / 371.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006264/0.1028, allocations: 0.68 MB / 372.4 MB, free: 4.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004209/0.1033, allocations: 440.3 kB / 372.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005349/0.1038, allocations: 247.5 kB / 373 MB, free: 4.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002396/0.104, allocations: 402.7 kB / 373.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002311/0.1063, allocations: 0.8003 MB / 374.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002762/0.1091, allocations: 1.315 MB / 375.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00427/0.1134, allocations: 1.611 MB / 377.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1134, allocations: 4 kB / 377.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005472/0.1188, allocations: 2.041 MB / 379.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.1189, allocations: 8 kB / 379.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.1189, allocations: 8 kB / 379.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005105/0.1194, allocations: 218.4 kB / 379.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.1213, allocations: 355.5 kB / 379.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004705/0.126, allocations: 4.428 MB / 384.2 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.1277, allocations: 168 kB / 384.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.1278, allocations: 51.98 kB / 384.4 MB, free: 8.281 MB / 350.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.0008352/0.1286, allocations: 399.4 kB / 384.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.1289, allocations: 103.3 kB / 384.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.1291, allocations: 125.8 kB / 385 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.1292, allocations: 15.94 kB / 385 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.1292, allocations: 11.92 kB / 385.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.1292, allocations: 3.984 kB / 385.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008596/0.1378, allocations: 3.824 MB / 388.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.1378, allocations: 8 kB / 388.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.139, allocations: 267.7 kB / 389.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000568/0.1396, allocations: 281.6 kB / 389.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.34e-05/0.1397, allocations: 39.98 kB / 389.5 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.1417, allocations: 2.06 MB / 391.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-05/0.1417, allocations: 15.94 kB / 391.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005526/0.1472, allocations: 2.394 MB / 393.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005779/0.1478, allocations: 263.1 kB / 394.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.148, allocations: 43.98 kB / 394.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.1492, allocations: 139.9 kB / 394.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003873/0.1496, allocations: 180.2 kB / 394.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.103e-05/0.1497, allocations: 43.98 kB / 394.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008314/0.1505, allocations: 0.5225 MB / 395.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1505, allocations: 4 kB / 395.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001225/0.1517, allocations: 343.9 kB / 395.5 MB, free: 12.77 MB / 366.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.001547/0.1533, allocations: 435.3 kB / 395.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004707/0.158, allocations: 1.889 MB / 397.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.158, allocations: 5.812 kB / 397.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.1605, allocations: 1.024 MB / 398.8 MB, free: 9.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.1617, allocations: 193.9 kB / 399 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006049/0.1677, allocations: 2.96 MB / 401.9 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007239/0.1684, allocations: 0.598 MB / 402.5 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007248/0.1692, allocations: 164.1 kB / 402.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004158/0.1696, allocations: 80.48 kB / 402.8 MB, free: 5.312 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1696, allocations: 4 kB / 402.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of Templates: time 0.03301/0.2026, allocations: 18.32 MB / 421.1 MB, free: 3.176 MB / 382.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 -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.105473577976227]