Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009474/0.0009474, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9555/0.9555, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 3.938 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.855e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01382/0.01385, allocations: 9.287 MB / 282.3 MB, free: 8.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007727/0.02158, allocations: 2.438 MB / 284.7 MB, free: 5.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000859/0.02243, allocations: 31.88 kB / 284.7 MB, free: 5.719 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003811/0.02625, allocations: 348.8 kB / 285.1 MB, free: 5.375 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.02732, allocations: 0.5267 MB / 285.6 MB, free: 4.844 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009542/0.02828, allocations: 0.6631 MB / 286.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004946/0.03322, allocations: 2.441 MB / 288.7 MB, free: 1.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009408/0.03417, allocations: 0.6944 MB / 289.4 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1418/0.176, allocations: 1.321 MB / 290.7 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.1772, allocations: 0.6946 MB / 291.4 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005057/0.1777, allocations: 279.6 kB / 291.7 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006809/0.1784, allocations: 350.9 kB / 292 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003348/0.1787, allocations: 0.5238 MB / 292.6 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008766/0.1796, allocations: 0.6934 MB / 293.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00182/0.1814, allocations: 1.642 MB / 294.9 MB, free: 16.53 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1814, allocations: 0 / 294.9 MB, free: 16.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1815, allocations: 0.6875 kB / 294.9 MB, free: 16.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.273e-05/0.1815, allocations: 1.062 kB / 294.9 MB, free: 16.53 MB / 266.7 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.002601/0.1841, allocations: 2.007 MB / 296.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1841, allocations: 10.12 kB / 296.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004211/0.1845, allocations: 318.3 kB / 297.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000861/0.1854, allocations: 0.793 MB / 298 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.1856, allocations: 441.6 kB / 298.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.1858, allocations: 162.2 kB / 298.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.1876, allocations: 1.363 MB / 300 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/0.1877, allocations: 6.969 kB / 300 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.671e-05/0.1878, allocations: 68.66 kB / 300 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.414e-05/0.1878, allocations: 36.78 kB / 300.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.1891, allocations: 0.7117 MB / 300.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004647/0.1938, allocations: 4.812 MB / 305.6 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000819/0.1946, allocations: 0.5642 MB / 306.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.1949, allocations: 246.9 kB / 306.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.259e-05/0.195, allocations: 17.16 kB / 306.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004498/0.1954, allocations: 0.6444 MB / 307.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 1.934e-06/0.1954, allocations: 0 / 307.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.007755/0.2032, allocations: 4.75 MB / 311.8 MB, free: 8.496 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.2032, allocations: 300.6 kB / 312.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005099/0.2037, allocations: 0.7049 MB / 312.8 MB, free: 7.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.999e-05/0.2038, allocations: 59 kB / 312.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.204, allocations: 0.7321 MB / 313.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.2042, allocations: 420.4 kB / 314 MB, free: 6.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/0.2045, allocations: 257.1 kB / 314.3 MB, free: 6.285 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.2046, allocations: 0.5703 MB / 314.8 MB, free: 5.703 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.2051, allocations: 351.8 kB / 315.2 MB, free: 5.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006285/0.2057, allocations: 0.956 MB / 316.1 MB, free: 4.199 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009411/0.2067, allocations: 0.9545 MB / 317.1 MB, free: 3.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.2067, allocations: 7.938 kB / 317.1 MB, free: 3.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001461/0.2081, allocations: 1.238 MB / 318.3 MB, free: 1.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.2081, allocations: 12 kB / 318.3 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.2082, allocations: 5.016 kB / 318.4 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003028/0.2085, allocations: 206.6 kB / 318.6 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000782/0.2092, allocations: 325.3 kB / 318.9 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/0.2118, allocations: 5.668 MB / 324.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.2124, allocations: 142.3 kB / 324.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.043e-05/0.2125, allocations: 52 kB / 324.7 MB, free: 11.2 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (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.0003264/0.2128, allocations: 249.8 kB / 325 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.213, allocations: 143.3 kB / 325.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2131, allocations: 129.7 kB / 325.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.2131, allocations: 12 kB / 325.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.2131, allocations: 0 / 325.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2131, allocations: 3.984 kB / 325.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/0.2165, allocations: 2.846 MB / 328.1 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.2165, allocations: 8 kB / 328.1 MB, free: 7.703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.217, allocations: 239.1 kB / 328.3 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000306/0.2173, allocations: 232.4 kB / 328.6 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.345e-05/0.2174, allocations: 39.98 kB / 328.6 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.2185, allocations: 2.661 MB / 331.3 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.2185, allocations: 14.94 kB / 331.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.2201, allocations: 1.547 MB / 332.8 MB, free: 2.676 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.2204, allocations: 247.1 kB / 333.1 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.2205, allocations: 43.98 kB / 333.1 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004472/0.221, allocations: 115.9 kB / 333.2 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.2212, allocations: 158.2 kB / 333.4 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.2212, allocations: 40 kB / 333.4 MB, free: 2.09 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003772/0.2216, allocations: 454.9 kB / 333.9 MB, free: 1.648 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2216, allocations: 0 / 333.9 MB, free: 1.648 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007739/0.2224, allocations: 332 kB / 334.2 MB, free: 1.324 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (110): * Single equations (assignments): 108 * 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.0008018/0.2232, allocations: 414.5 kB / 334.6 MB, free: 1.086 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.2247, allocations: 1.375 MB / 336 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.2247, allocations: 4 kB / 336 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005507/0.2253, allocations: 0.5415 MB / 336.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006805/0.2259, allocations: 218.4 kB / 336.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.2294, allocations: 2.803 MB / 339.5 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.2295, allocations: 261.4 kB / 339.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004224/0.23, allocations: 156 kB / 339.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.2302, allocations: 84.48 kB / 340 MB, free: 11.49 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2302, allocations: 0 / 340 MB, free: 11.49 MB / 298.7 MB Notification: Performance of Templates: time 0.02121/0.2514, allocations: 19.35 MB / 359.4 MB, free: 8.414 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3295530220493674]