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.001472/0.001472, allocations: 123.4 kB / 18.46 MB, free: 4.578 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.001462/0.001462, allocations: 192.3 kB / 21.4 MB, free: 1.648 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.477/1.477, allocations: 225.6 MB / 249.8 MB, free: 3.453 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.001517/0.001517, allocations: 55.91 kB / 366.8 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1146, allocations: 52.14 MB / 419 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01159/0.1262, allocations: 9.315 MB / 428.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005344/0.1316, allocations: 2.287 MB / 430.6 MB, free: 404 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.1329, allocations: 31.88 kB / 430.6 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009358/0.1339, allocations: 329 kB / 430.9 MB, free: 40 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.1354, allocations: 0.4997 MB / 431.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.1368, allocations: 0.6555 MB / 432.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002716/0.1395, allocations: 2.349 MB / 434.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001164/0.1407, allocations: 0.7521 MB / 435.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.142, allocations: 0.8568 MB / 436 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.1431, allocations: 0.8871 MB / 436.9 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000321/0.1435, allocations: 280 kB / 437.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004696/0.1439, allocations: 335.9 kB / 437.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004589/0.1444, allocations: 0.4987 MB / 438 MB, free: 8.867 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009907/0.1454, allocations: 0.9686 MB / 439 MB, free: 7.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003671/0.149, allocations: 3.363 MB / 442.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.149, allocations: 4 kB / 442.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.149, allocations: 0 / 442.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.961e-05/0.1491, allocations: 0 / 442.4 MB, free: 4.516 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004416/0.1535, allocations: 1.961 MB / 444.3 MB, free: 2.496 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.1536, allocations: 12.03 kB / 444.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003593/0.1539, allocations: 187.8 kB / 444.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.1553, allocations: 0.8463 MB / 445.4 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.1556, allocations: 236.7 kB / 445.6 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002537/0.1559, allocations: 167.9 kB / 445.8 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2795/0.4354, allocations: 1.679 MB / 447.4 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-05/0.4355, allocations: 5.219 kB / 447.4 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.4356, allocations: 64.38 kB / 447.5 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/0.4357, allocations: 36.22 kB / 447.5 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003331/0.439, allocations: 1.563 MB / 449.1 MB, free: 28.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009749/0.4487, allocations: 5.827 MB / 454.9 MB, free: 26.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.451, allocations: 0.8933 MB / 455.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.4522, allocations: 498.6 kB / 456.3 MB, free: 25.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.988e-05/0.4523, allocations: 9.578 kB / 456.3 MB, free: 25.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001353/0.4536, allocations: 0.658 MB / 457 MB, free: 25.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 3.016e-06/0.4537, allocations: 0 / 457 MB, free: 25.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03567/0.4893, allocations: 8.971 MB / 465.9 MB, free: 22.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.4894, allocations: 300.9 kB / 466.2 MB, free: 21.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.4908, allocations: 0.7898 MB / 467 MB, free: 21.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.491, allocations: 53.42 kB / 467.1 MB, free: 21.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.4915, allocations: 0.679 MB / 467.8 MB, free: 20.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/0.4918, allocations: 425.7 kB / 468.2 MB, free: 20.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005114/0.4923, allocations: 256.8 kB / 468.4 MB, free: 20.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.4925, allocations: 407.9 kB / 468.8 MB, free: 19.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00198/0.4945, allocations: 0.8112 MB / 469.6 MB, free: 19.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/0.4966, allocations: 1.132 MB / 470.8 MB, free: 18.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003641/0.5002, allocations: 1.651 MB / 472.4 MB, free: 17.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.5002, allocations: 2.375 kB / 472.4 MB, free: 17.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004923/0.5051, allocations: 2.07 MB / 474.5 MB, free: 16.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.5052, allocations: 11.91 kB / 474.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/0.5052, allocations: 6.375 kB / 474.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004579/0.5056, allocations: 180.2 kB / 474.7 MB, free: 16.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.5073, allocations: 354.4 kB / 475 MB, free: 16.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.5105, allocations: 4.817 MB / 479.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.5122, allocations: 163.8 kB / 480 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.5123, allocations: 49 kB / 480.1 MB, free: 11.49 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.0008608/0.5132, allocations: 384.4 kB / 480.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.5134, allocations: 116.9 kB / 480.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.5137, allocations: 137.2 kB / 480.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.5137, allocations: 15.56 kB / 480.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.028e-05/0.5137, allocations: 0 / 480.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.5137, allocations: 3.984 kB / 480.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007126/0.5208, allocations: 4.393 MB / 485.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.5208, allocations: 10.69 kB / 485.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.5219, allocations: 269 kB / 485.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004938/0.5224, allocations: 376.9 kB / 485.7 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.39e-05/0.5225, allocations: 33.88 kB / 485.8 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/0.5239, allocations: 2.281 MB / 488 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.5239, allocations: 11.81 kB / 488.1 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004257/0.5281, allocations: 2.495 MB / 490.6 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005636/0.5287, allocations: 328.2 kB / 490.9 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.5289, allocations: 47.98 kB / 490.9 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.5299, allocations: 143.8 kB / 491.1 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.5302, allocations: 164.2 kB / 491.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.523e-05/0.5303, allocations: 43.98 kB / 491.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006352/0.5309, allocations: 0.5303 MB / 491.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5309, allocations: 4 kB / 491.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001335/0.5322, allocations: 344 kB / 492.1 MB, free: 1.34 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: 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.0003076/0.5325, allocations: 186.9 kB / 492.3 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004029/0.5366, allocations: 1.933 MB / 494.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.5366, allocations: 6.141 kB / 494.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/0.5389, allocations: 0.9924 MB / 495.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.5402, allocations: 201.2 kB / 495.4 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006354/0.5465, allocations: 3.164 MB / 498.6 MB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000922/0.5474, allocations: 1.182 MB / 499.8 MB, free: 9.453 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005398/0.548, allocations: 83.44 kB / 499.9 MB, free: 9.371 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.548, allocations: 0 / 499.9 MB, free: 9.371 MB / 382.1 MB Notification: Performance of Templates: time 0.0486/0.5966, allocations: 36.39 MB / 0.5237 GB, free: 5.023 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.4601733291056]