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.001163/0.001163, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001828/0.002991, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001141/0.001141, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001711/0.002852, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9872/0.9872, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09281/1.08, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] 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 1.683e-06/1.683e-06, allocations: 0 / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.714e-05/1.883e-05, allocations: 6.25 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008041/0.00806, allocations: 8.967 MB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004893/0.01295, allocations: 2.394 MB / 250.9 MB, free: 7.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009734/0.01393, allocations: 31.88 kB / 250.9 MB, free: 7.727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006851/0.01461, allocations: 325 kB / 251.3 MB, free: 7.406 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.01562, allocations: 0.5304 MB / 251.8 MB, free: 6.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.01665, allocations: 0.6515 MB / 252.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002141/0.0188, allocations: 2.403 MB / 254.8 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001398/0.02019, allocations: 0.7184 MB / 255.6 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001686/0.02188, allocations: 1.414 MB / 257 MB, free: 1.605 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.023, allocations: 0.6895 MB / 257.7 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004272/0.02342, allocations: 276 kB / 257.9 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005259/0.02395, allocations: 343.9 kB / 258.3 MB, free: 316 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003132/0.02426, allocations: 415 kB / 258.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006101/0.02487, allocations: 0.5694 MB / 259.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.02664, allocations: 1.484 MB / 260.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.788e-05/0.02666, allocations: 0 / 260.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.02666, allocations: 0 / 260.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.169e-05/0.02672, allocations: 0 / 260.7 MB, free: 13.84 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.002797/0.02952, allocations: 2.184 MB / 262.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.02956, allocations: 15.89 kB / 262.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003674/0.02992, allocations: 337.8 kB / 263.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007119/0.03064, allocations: 0.5043 MB / 263.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.03086, allocations: 434.3 kB / 264.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.03102, allocations: 172.3 kB / 264.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.03229, allocations: 1.29 MB / 265.6 MB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.9e-05/0.03233, allocations: 11.94 kB / 265.7 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.624e-05/0.0324, allocations: 60 kB / 265.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.03242, allocations: 40 kB / 265.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007727/0.03319, allocations: 0.5246 MB / 266.3 MB, free: 8.047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004551/0.03774, allocations: 3.92 MB / 270.2 MB, free: 3.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.03837, allocations: 0.5232 MB / 270.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.03858, allocations: 200.4 kB / 270.9 MB, free: 3.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.03863, allocations: 16.98 kB / 270.9 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004777/0.03911, allocations: 0.5985 MB / 271.5 MB, free: 2.473 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 1.914e-06/0.03911, allocations: 0 / 271.5 MB, free: 2.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.1324/0.1715, allocations: 4.791 MB / 276.3 MB, free: 26.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.1715, allocations: 94.94 kB / 276.4 MB, free: 26.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005962/0.1721, allocations: 0.6156 MB / 277 MB, free: 25.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.903e-05/0.1722, allocations: 57.72 kB / 277.1 MB, free: 25.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.1725, allocations: 0.6136 MB / 277.7 MB, free: 25.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.1727, allocations: 418.7 kB / 278.1 MB, free: 25.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.173, allocations: 250.8 kB / 278.4 MB, free: 25.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1731, allocations: 417 kB / 278.8 MB, free: 24.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.1735, allocations: 239.2 kB / 279 MB, free: 24.94 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.1741, allocations: 0.7508 MB / 279.7 MB, free: 24.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008863/0.175, allocations: 0.7892 MB / 280.5 MB, free: 24.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/0.175, allocations: 2.562 kB / 280.5 MB, free: 24.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001247/0.1762, allocations: 0.8852 MB / 281.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.1762, allocations: 9.094 kB / 281.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1763, allocations: 6.719 kB / 281.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.1765, allocations: 150.6 kB / 281.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00098/0.1775, allocations: 397.6 kB / 282 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.1792, allocations: 3.816 MB / 285.8 MB, free: 20.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007007/0.1799, allocations: 146.7 kB / 285.9 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/0.18, allocations: 32.89 kB / 286 MB, free: 20.39 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 (167): * Single equations (assignments): 164 * 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.0003552/0.1803, allocations: 202.1 kB / 286.2 MB, free: 20.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.1805, allocations: 105.8 kB / 286.3 MB, free: 20.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.1806, allocations: 131.7 kB / 286.4 MB, free: 20.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1806, allocations: 15.44 kB / 286.4 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.897e-05/0.1806, allocations: 0.75 kB / 286.4 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.1806, allocations: 6.031 kB / 286.4 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.1833, allocations: 2.09 MB / 288.5 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.1833, allocations: 11.62 kB / 288.5 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007082/0.184, allocations: 294.3 kB / 288.8 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.1843, allocations: 123.9 kB / 288.9 MB, free: 19.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003688/0.1847, allocations: 298.6 kB / 289.2 MB, free: 19.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.409e-05/0.1847, allocations: 34.38 kB / 289.3 MB, free: 19.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007168/0.1854, allocations: 1.856 MB / 291.1 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.1855, allocations: 15.33 kB / 291.1 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.1866, allocations: 1.233 MB / 292.4 MB, free: 17.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.1867, allocations: 47.38 kB / 292.4 MB, free: 17.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003965/0.1871, allocations: 113.1 kB / 292.5 MB, free: 17.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.1873, allocations: 153.2 kB / 292.7 MB, free: 17.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-05/0.1873, allocations: 28.97 kB / 292.7 MB, free: 17.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002696/0.1876, allocations: 285.3 kB / 293 MB, free: 17.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1876, allocations: 0 / 293 MB, free: 17.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008722/0.1885, allocations: 345.7 kB / 293.3 MB, free: 17.1 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002385/0.1887, allocations: 178.6 kB / 293.5 MB, free: 17 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.1899, allocations: 1.061 MB / 294.5 MB, free: 16.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-05/0.1899, allocations: 19 kB / 294.6 MB, free: 16.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004741/0.1904, allocations: 465.6 kB / 295 MB, free: 16.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006083/0.191, allocations: 292.4 kB / 295.3 MB, free: 16.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.2012, allocations: 2.949 MB / 298.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.2014, allocations: 267.8 kB / 298.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006041/0.202, allocations: 153.4 kB / 298.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004605/0.2025, allocations: 251.7 kB / 298.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of SimCode: time 1.413e-06/0.2025, allocations: 8 kB / 298.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Templates: time 0.02372/0.2262, allocations: 20.66 MB / 319.6 MB, free: 8.895 MB / 282.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.0748045593500137]