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.0008028/0.0008028, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001095/0.001898, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007431/0.0007431, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001007/0.00175, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.044/1.044, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1002/1.144, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.963e-06/1.963e-06, allocations: 3.938 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.71e-05/1.907e-05, allocations: 5.688 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007543/0.007562, allocations: 9.09 MB / 253.8 MB, free: 5.074 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003745/0.01131, allocations: 2.546 MB / 256.4 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004231/0.01173, allocations: 35.81 kB / 256.4 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004914/0.01222, allocations: 352.8 kB / 256.7 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008546/0.01308, allocations: 0.5228 MB / 257.3 MB, free: 1.609 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006899/0.01377, allocations: 0.6708 MB / 257.9 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001697/0.01546, allocations: 2.43 MB / 260.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006676/0.01613, allocations: 0.7146 MB / 261.1 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009191/0.01705, allocations: 1.426 MB / 262.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005419/0.01759, allocations: 0.7012 MB / 263.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002091/0.0178, allocations: 280 kB / 263.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003705/0.01817, allocations: 351.7 kB / 263.8 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002536/0.01843, allocations: 419 kB / 264.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.01881, allocations: 0.5771 MB / 264.8 MB, free: 9.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.02015, allocations: 1.511 MB / 266.3 MB, free: 8.465 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.02016, allocations: 0 / 266.3 MB, free: 8.465 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.02016, allocations: 0 / 266.3 MB, free: 8.465 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.02018, allocations: 0 / 266.3 MB, free: 8.465 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.001851/0.02203, allocations: 2.215 MB / 268.5 MB, free: 6.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.02206, allocations: 8.031 kB / 268.5 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003108/0.02237, allocations: 349.8 kB / 268.9 MB, free: 5.848 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005761/0.02294, allocations: 0.5081 MB / 269.4 MB, free: 5.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/0.02315, allocations: 442.3 kB / 269.8 MB, free: 4.812 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.02329, allocations: 156.3 kB / 270 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.02443, allocations: 1.294 MB / 271.3 MB, free: 3.281 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/0.02446, allocations: 7.953 kB / 271.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.967e-05/0.02454, allocations: 68 kB / 271.3 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.02456, allocations: 36 kB / 271.4 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006958/0.02526, allocations: 0.4974 MB / 271.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1269/0.1522, allocations: 3.885 MB / 275.8 MB, free: 20.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009721/0.1532, allocations: 0.5178 MB / 276.3 MB, free: 20.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003351/0.1535, allocations: 176 kB / 276.4 MB, free: 20.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.522e-05/0.1536, allocations: 17.31 kB / 276.5 MB, free: 20.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.1542, allocations: 0.5934 MB / 277.1 MB, free: 19.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 3.617e-06/0.1542, allocations: 0.5312 kB / 277.1 MB, free: 19.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.01474/0.169, allocations: 4.783 MB / 281.8 MB, free: 19.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.169, allocations: 90.7 kB / 281.9 MB, free: 19.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007994/0.1698, allocations: 0.6242 MB / 282.6 MB, free: 19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/0.1699, allocations: 55.11 kB / 282.6 MB, free: 18.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003665/0.1703, allocations: 0.6133 MB / 283.2 MB, free: 18.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.1705, allocations: 427.2 kB / 283.6 MB, free: 18.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003681/0.1709, allocations: 245.7 kB / 283.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.171, allocations: 418.5 kB / 284.3 MB, free: 17.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.1715, allocations: 224 kB / 284.5 MB, free: 17.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006426/0.1722, allocations: 0.7455 MB / 285.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.1733, allocations: 0.7896 MB / 286 MB, free: 17.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.1733, allocations: 6.125 kB / 286 MB, free: 17.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001519/0.1748, allocations: 0.8707 MB / 286.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.1748, allocations: 8.062 kB / 286.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.1748, allocations: 7.906 kB / 286.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003642/0.1752, allocations: 172.4 kB / 287.1 MB, free: 16.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.1765, allocations: 401.1 kB / 287.5 MB, free: 16.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.1785, allocations: 3.815 MB / 291.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008778/0.1794, allocations: 146 kB / 291.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.1795, allocations: 42.31 kB / 291.5 MB, free: 13.41 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.0003408/0.1798, allocations: 204.7 kB / 291.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.18, allocations: 106.3 kB / 291.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.1801, allocations: 126.9 kB / 291.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.1801, allocations: 13.56 kB / 291.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.1801, allocations: 0 / 291.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.1801, allocations: 6.797 kB / 291.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.1825, allocations: 2.04 MB / 294 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/0.1825, allocations: 7.375 kB / 294 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005608/0.1831, allocations: 285.2 kB / 294.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.1833, allocations: 125.8 kB / 294.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002284/0.1835, allocations: 217 kB / 294.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.213e-05/0.1835, allocations: 44.48 kB / 294.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005444/0.1841, allocations: 1.789 MB / 296.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.1841, allocations: 17.64 kB / 296.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009225/0.185, allocations: 1.164 MB / 297.6 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.416e-05/0.1851, allocations: 48.11 kB / 297.7 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.1855, allocations: 115.1 kB / 297.8 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.1856, allocations: 154.1 kB / 297.9 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.1857, allocations: 39.62 kB / 298 MB, free: 9.664 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001714/0.1858, allocations: 287.1 kB / 298.2 MB, free: 9.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1858, allocations: 4 kB / 298.2 MB, free: 9.426 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005982/0.1864, allocations: 344.4 kB / 298.6 MB, free: 9.129 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.001044/0.1875, allocations: 0.5408 MB / 299.1 MB, free: 8.887 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008603/0.1884, allocations: 1.068 MB / 300.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.68e-05/0.1884, allocations: 16.5 kB / 300.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.1888, allocations: 0.5067 MB / 300.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.1896, allocations: 1.587 MB / 302.3 MB, free: 5.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009786/0.1994, allocations: 2.943 MB / 305.2 MB, free: 2.527 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.1995, allocations: 269.5 kB / 305.5 MB, free: 2.242 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004035/0.1999, allocations: 160.2 kB / 305.7 MB, free: 2.082 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/0.2004, allocations: 261.3 kB / 305.9 MB, free: 1.828 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2004, allocations: 0 / 305.9 MB, free: 1.828 MB / 266.7 MB Notification: Performance of Templates: time 0.02394/0.2243, allocations: 21.12 MB / 327 MB, free: 12.97 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.158122219145298]