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.001062/0.001062, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001558/0.00262, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001065/0.001065, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001444/0.002509, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.9847/0.9847, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08932/1.074, allocations: 53.88 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] 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.202e-06/1.202e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.005e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007221/0.007241, allocations: 9.102 MB / 254.3 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.01126, allocations: 2.561 MB / 256.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006479/0.01191, allocations: 31.88 kB / 256.9 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005775/0.01248, allocations: 352.8 kB / 257.2 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008755/0.01336, allocations: 0.5344 MB / 257.8 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008483/0.01421, allocations: 0.6669 MB / 258.4 MB, free: 276 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00176/0.01597, allocations: 2.43 MB / 260.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007564/0.01672, allocations: 0.7186 MB / 261.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.01788, allocations: 1.43 MB / 263 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005611/0.01844, allocations: 0.6934 MB / 263.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.01864, allocations: 280 kB / 264 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004169/0.01906, allocations: 355.8 kB / 264.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002521/0.01931, allocations: 419 kB / 264.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004034/0.01972, allocations: 0.5733 MB / 265.3 MB, free: 9.309 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.02085, allocations: 1.523 MB / 266.8 MB, free: 7.781 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.02086, allocations: 0 / 266.8 MB, free: 7.781 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.02087, allocations: 0 / 266.8 MB, free: 7.781 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.02088, allocations: 0 / 266.8 MB, free: 7.781 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.001957/0.02284, allocations: 2.223 MB / 269.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.02287, allocations: 16.92 kB / 269.1 MB, free: 5.508 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003154/0.02319, allocations: 337.8 kB / 269.4 MB, free: 5.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006226/0.02381, allocations: 0.5043 MB / 269.9 MB, free: 4.629 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/0.02405, allocations: 438.3 kB / 270.3 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.02421, allocations: 168.3 kB / 270.5 MB, free: 3.969 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.02536, allocations: 1.298 MB / 271.8 MB, free: 2.586 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.02539, allocations: 7.953 kB / 271.8 MB, free: 2.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.487e-05/0.02547, allocations: 60 kB / 271.9 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/0.02549, allocations: 44 kB / 271.9 MB, free: 2.477 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007098/0.0262, allocations: 0.4975 MB / 272.4 MB, free: 1.965 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1322/0.1584, allocations: 3.88 MB / 276.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/0.1592, allocations: 0.5175 MB / 276.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.1595, allocations: 181.2 kB / 277 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.698e-05/0.1595, allocations: 18.66 kB / 277 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.1601, allocations: 0.5921 MB / 277.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.364e-06/0.1601, allocations: 0 / 277.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.01025/0.1704, allocations: 4.774 MB / 282.4 MB, free: 11.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.1704, allocations: 92.61 kB / 282.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.1709, allocations: 0.6241 MB / 283.1 MB, free: 11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.171, allocations: 54.08 kB / 283.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002634/0.1713, allocations: 0.6208 MB / 283.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.1715, allocations: 427.1 kB / 284.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.1717, allocations: 249.9 kB / 284.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.1718, allocations: 414.1 kB / 284.8 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.1722, allocations: 234.8 kB / 285.1 MB, free: 9.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.1727, allocations: 0.7378 MB / 285.8 MB, free: 9.367 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007672/0.1734, allocations: 0.7926 MB / 286.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.1734, allocations: 1.438 kB / 286.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001006/0.1745, allocations: 0.8636 MB / 287.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1745, allocations: 9.906 kB / 287.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1745, allocations: 6.906 kB / 287.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002582/0.1747, allocations: 182.4 kB / 287.6 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008355/0.1756, allocations: 389 kB / 288 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.1769, allocations: 3.822 MB / 291.9 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000607/0.1775, allocations: 143.5 kB / 292 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.996e-05/0.1776, allocations: 39.28 kB / 292 MB, free: 5.391 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.0002529/0.1779, allocations: 204.1 kB / 292.2 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.178, allocations: 102.1 kB / 292.3 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.1781, allocations: 130.5 kB / 292.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.1781, allocations: 9.188 kB / 292.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.1781, allocations: 7.031 kB / 292.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1781, allocations: 6.094 kB / 292.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.1804, allocations: 2.038 MB / 294.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1804, allocations: 7 kB / 294.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/0.181, allocations: 292.5 kB / 294.8 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.1812, allocations: 123.5 kB / 294.9 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.1814, allocations: 228.7 kB / 295.2 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.1815, allocations: 34.47 kB / 295.2 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005502/0.182, allocations: 1.786 MB / 297 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/0.182, allocations: 17.47 kB / 297 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.1831, allocations: 1.167 MB / 298.2 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.57e-05/0.1832, allocations: 52.02 kB / 298.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000421/0.1836, allocations: 113.2 kB / 298.3 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.1838, allocations: 147.5 kB / 298.5 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.1838, allocations: 45.05 kB / 298.5 MB, free: 2.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001863/0.184, allocations: 300.5 kB / 298.8 MB, free: 1.988 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.184, allocations: 0 / 298.8 MB, free: 1.988 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006557/0.1847, allocations: 340.6 kB / 299.1 MB, free: 1.984 MB / 266.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.001134/0.1858, allocations: 0.5183 MB / 299.6 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009814/0.1868, allocations: 1.073 MB / 300.7 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.151e-05/0.1868, allocations: 16.5 kB / 300.7 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004734/0.1873, allocations: 0.5095 MB / 301.2 MB, free: 452 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.1884, allocations: 1.592 MB / 302.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.1988, allocations: 2.955 MB / 305.8 MB, free: 11.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001932/0.199, allocations: 269.2 kB / 306.1 MB, free: 11.53 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004366/0.1994, allocations: 156.3 kB / 306.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005014/0.1999, allocations: 268.4 kB / 306.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of SimCode: time 8.61e-07/0.1999, allocations: 4 kB / 306.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of Templates: time 0.02518/0.2251, allocations: 21.12 MB / 327.6 MB, free: 6.688 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.060606283135712]