Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 117 kB / 18.41 MB, free: 4.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 190.9 kB / 21.35 MB, free: 1.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 222.9 MB / 247.1 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 51.91 kB / 358.7 MB, free: 8.352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.117, allocations: 49.43 MB / 408.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01109/0.1281, allocations: 9.278 MB / 417.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005044/0.1332, allocations: 2.275 MB / 419.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.1344, allocations: 31.88 kB / 419.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008687/0.1353, allocations: 329 kB / 420 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001322/0.1366, allocations: 491.7 kB / 420.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1379, allocations: 0.6594 MB / 421.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00255/0.1404, allocations: 2.345 MB / 423.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001516/0.142, allocations: 1.115 MB / 424.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.1432, allocations: 0.8568 MB / 425.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.1443, allocations: 0.8832 MB / 426.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003156/0.1446, allocations: 276 kB / 426.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004702/0.1451, allocations: 331.9 kB / 427 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004558/0.1455, allocations: 0.4948 MB / 427.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009124/0.1465, allocations: 0.9725 MB / 428.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.225/0.3715, allocations: 3.35 MB / 431.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.3715, allocations: 4.781 kB / 431.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3716, allocations: 0 / 431.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.877e-05/0.3717, allocations: 0.9375 kB / 431.8 MB, free: 11.02 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004044/0.3757, allocations: 1.963 MB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3758, allocations: 10.62 kB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000299/0.3761, allocations: 188.8 kB / 433.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.3774, allocations: 0.8435 MB / 434.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002514/0.3776, allocations: 232 kB / 435 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002277/0.3778, allocations: 161.8 kB / 435.2 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003203/0.3811, allocations: 1.687 MB / 436.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.261e-05/0.3811, allocations: 3.781 kB / 436.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001552/0.3813, allocations: 62.06 kB / 436.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-05/0.3814, allocations: 40.45 kB / 437 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003554/0.3849, allocations: 1.562 MB / 438.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009309/0.3942, allocations: 5.837 MB / 444.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.3963, allocations: 0.9436 MB / 445.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.3974, allocations: 0.5314 MB / 445.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.999e-05/0.3975, allocations: 14.8 kB / 445.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.3987, allocations: 0.656 MB / 446.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.545e-06/0.3987, allocations: 3.188 kB / 446.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03396/0.4327, allocations: 8.967 MB / 455.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.96e-05/0.4328, allocations: 301.2 kB / 455.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.434, allocations: 0.7942 MB / 456.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001088/0.4341, allocations: 51.64 kB / 456.6 MB, free: 3.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.4345, allocations: 0.6721 MB / 457.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.4348, allocations: 436 kB / 457.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004547/0.4352, allocations: 244.1 kB / 457.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4354, allocations: 412.2 kB / 458.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/0.4373, allocations: 0.8109 MB / 459.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.4394, allocations: 1.131 MB / 460.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.4431, allocations: 1.655 MB / 461.9 MB, free: 76 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.4431, allocations: 1.531 kB / 461.9 MB, free: 76 kB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004973/0.4481, allocations: 2.068 MB / 464 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.4482, allocations: 14.44 kB / 464 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.4482, allocations: 6.125 kB / 464 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004503/0.4487, allocations: 189.5 kB / 464.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.4503, allocations: 353.2 kB / 464.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004807/0.4551, allocations: 4.799 MB / 469.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.457, allocations: 171.8 kB / 469.5 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.4572, allocations: 48 kB / 469.6 MB, free: 9.371 MB / 366.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 (168): * Single equations (assignments): 165 * 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.0008276/0.458, allocations: 383.2 kB / 469.9 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.4583, allocations: 115.3 kB / 470.1 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/0.4586, allocations: 134 kB / 470.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.4586, allocations: 16 kB / 470.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-05/0.4586, allocations: 4 kB / 470.2 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4586, allocations: 7.969 kB / 470.2 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008616/0.4673, allocations: 4.411 MB / 474.6 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.4673, allocations: 8 kB / 474.6 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.4685, allocations: 267 kB / 474.9 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006318/0.4691, allocations: 361 kB / 475.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.646e-05/0.4693, allocations: 42.89 kB / 475.3 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002108/0.4714, allocations: 2.286 MB / 477.6 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.4714, allocations: 10.62 kB / 477.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005333/0.4767, allocations: 2.5 MB / 480.1 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007515/0.4775, allocations: 328.3 kB / 480.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.4777, allocations: 44 kB / 480.5 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.4788, allocations: 143.8 kB / 480.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/0.4792, allocations: 168.5 kB / 480.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-05/0.4793, allocations: 43.98 kB / 480.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008257/0.4801, allocations: 0.5264 MB / 481.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.352e-06/0.4802, allocations: 0 / 481.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001399/0.4816, allocations: 354.8 kB / 481.7 MB, free: 12.92 MB / 382.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003669/0.4819, allocations: 182.3 kB / 481.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004682/0.4866, allocations: 2.052 MB / 483.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.4867, allocations: 0.5625 kB / 483.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002321/0.489, allocations: 1.04 MB / 484.9 MB, free: 9.703 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.4905, allocations: 205.3 kB / 485.1 MB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006588/0.4971, allocations: 3.162 MB / 488.3 MB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.4982, allocations: 1.178 MB / 489.5 MB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006414/0.4988, allocations: 87.44 kB / 489.6 MB, free: 4.922 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4988, allocations: 0 / 489.6 MB, free: 4.922 MB / 382.1 MB Notification: Performance of Templates: time 0.05215/0.551, allocations: 36.28 MB / 0.5135 GB, free: 0.707 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.560887200990692]