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.001027/0.001027, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001077/0.001077, allocations: 171.9 kB / 24.92 MB, free: 8.723 MB / 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.9718/0.9718, allocations: 177.1 MB / 205.3 MB, free: 5.109 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.523e-06/1.523e-06, allocations: 0 / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.986e-05/2.138e-05, allocations: 2.312 kB / 273.5 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008167/0.008189, allocations: 9.007 MB / 282.5 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005195/0.01338, allocations: 2.523 MB / 285 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.0145, allocations: 31.88 kB / 285 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000779/0.01528, allocations: 352.8 kB / 285.4 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.0165, allocations: 0.5267 MB / 285.9 MB, free: 4.676 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.0176, allocations: 0.6748 MB / 286.6 MB, free: 4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002189/0.01979, allocations: 2.437 MB / 289 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009719/0.02076, allocations: 0.7224 MB / 289.7 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1249/0.1457, allocations: 1.311 MB / 291 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00158/0.1472, allocations: 0.6987 MB / 291.7 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005975/0.1478, allocations: 280.7 kB / 292 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007584/0.1486, allocations: 352.4 kB / 292.3 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004139/0.149, allocations: 0.5246 MB / 292.9 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.1501, allocations: 0.6907 MB / 293.6 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002474/0.1526, allocations: 1.639 MB / 295.2 MB, free: 16.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1526, allocations: 0.5312 kB / 295.2 MB, free: 16.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1526, allocations: 2.406 kB / 295.2 MB, free: 16.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.039e-05/0.1527, allocations: 0 / 295.2 MB, free: 16.18 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.00345/0.1561, allocations: 1.882 MB / 297.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.1562, allocations: 11.97 kB / 297.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005122/0.1567, allocations: 265 kB / 297.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009322/0.1576, allocations: 0.5024 MB / 297.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002826/0.1579, allocations: 442.7 kB / 298.3 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.1581, allocations: 164.1 kB / 298.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.16, allocations: 1.282 MB / 299.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.724e-05/0.1601, allocations: 10.02 kB / 299.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.912e-05/0.1602, allocations: 66.14 kB / 299.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/0.1602, allocations: 37.22 kB / 299.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1613, allocations: 0.5037 MB / 300.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005221/0.1666, allocations: 3.87 MB / 304.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007238/0.1673, allocations: 0.5183 MB / 304.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002311/0.1675, allocations: 182.6 kB / 304.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.1676, allocations: 21.44 kB / 304.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004152/0.168, allocations: 0.5956 MB / 305.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 3.617e-06/0.168, allocations: 0 / 305.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.008971/0.177, allocations: 4.701 MB / 310.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.177, allocations: 300.9 kB / 310.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.1775, allocations: 0.6267 MB / 311.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.139e-05/0.1776, allocations: 57.73 kB / 311.2 MB, free: 9.879 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.1778, allocations: 0.6221 MB / 311.8 MB, free: 9.281 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.178, allocations: 417.1 kB / 312.2 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.1782, allocations: 251.2 kB / 312.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.1783, allocations: 412.8 kB / 312.9 MB, free: 8.316 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.1786, allocations: 222.8 kB / 313.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.179, allocations: 0.7392 MB / 313.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000603/0.1796, allocations: 0.7634 MB / 314.6 MB, free: 6.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1796, allocations: 4 kB / 314.6 MB, free: 6.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.0009149/0.1805, allocations: 0.8568 MB / 315.5 MB, free: 5.598 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1805, allocations: 8.844 kB / 315.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1805, allocations: 8 kB / 315.5 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.1808, allocations: 188.9 kB / 315.7 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007113/0.1815, allocations: 332.1 kB / 316 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.1829, allocations: 3.82 MB / 319.8 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000636/0.1835, allocations: 143.9 kB / 320 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.1836, allocations: 40 kB / 320 MB, free: 0.8906 MB / 266.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.0003412/0.1839, allocations: 199.6 kB / 320.2 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.1841, allocations: 103.8 kB / 320.3 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.623e-05/0.1841, allocations: 129.4 kB / 320.4 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.1842, allocations: 12 kB / 320.4 MB, free: 468 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.1842, allocations: 8 kB / 320.4 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.1842, allocations: 11.25 kB / 320.4 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.1868, allocations: 2.029 MB / 322.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.1868, allocations: 8 kB / 322.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005089/0.1873, allocations: 242 kB / 322.7 MB, free: 14.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002829/0.1876, allocations: 220.6 kB / 322.9 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.09e-05/0.1877, allocations: 35.98 kB / 323 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008309/0.1885, allocations: 1.791 MB / 324.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/0.1885, allocations: 19.73 kB / 324.8 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.1897, allocations: 1.157 MB / 325.9 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002669/0.19, allocations: 122.4 kB / 326.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.1901, allocations: 51.92 kB / 326.1 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/0.1905, allocations: 115.9 kB / 326.2 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.1907, allocations: 158.6 kB / 326.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.1908, allocations: 35.98 kB / 326.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002364/0.191, allocations: 284.5 kB / 326.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.191, allocations: 0 / 326.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008676/0.1919, allocations: 343.9 kB / 327 MB, free: 9.77 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.001129/0.193, allocations: 0.4924 MB / 327.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.1942, allocations: 1.051 MB / 328.6 MB, free: 8.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.23e-05/0.1942, allocations: 12.5 kB / 328.6 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/0.1947, allocations: 459.8 kB / 329 MB, free: 8.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.1953, allocations: 214.8 kB / 329.2 MB, free: 7.855 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.1988, allocations: 2.593 MB / 331.8 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.199, allocations: 253.4 kB / 332.1 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004773/0.1995, allocations: 152 kB / 332.2 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004764/0.2, allocations: 257.2 kB / 332.5 MB, free: 4.5 MB / 282.7 MB Notification: Performance of SimCode: time 1.843e-06/0.2, allocations: 0 / 332.5 MB, free: 4.5 MB / 282.7 MB Notification: Performance of Templates: time 0.02586/0.2258, allocations: 19.84 MB / 352.3 MB, free: 0.9531 MB / 298.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.18876627413556]